ssas

OLAP Error while Processing

大兔子大兔子 提交于 2019-12-11 05:21:51
问题 I am new to OLAP, and figured out how to make a cube and process it. However, when i play with it too much, i eventually come up against this error: Errors in the OLAP storage engine: The attribute key cannot be found: Table: dbo_v_MYEntities, Column: uniqueId, Value: 2548. Errors in the OLAP storage engine: The record was skipped because the attribute key was not found. Attribute: Unique Id of Dimension: v MY Entities from Database: Test Cube New, Cube: MYdm MyApp - Views, Measure Group: v

MDX Statement Returning Nothing

北城余情 提交于 2019-12-11 04:55:19
问题 I have a Dimension called ExDimension with 1 single attribute called ExAttribute . I currently have 2 members in that dimension along with the unknownmember with data for it. When I run the following MDX, I get nothing back and I don't understand why. Can anyone give me a direction on where to look? SELECT { [ExDimension].[ExAttribute].CHILDREN } DIMENSION PROPERTIES [ExDimension].[ExAttribute].[Attribute Code], [ExDimension].[ExAttribute].[Company], [ExDimension].[ExAttribute].[Is Current],

SSAS - Format String not applied

孤街醉人 提交于 2019-12-11 04:36:22
问题 Having issues getting the Format String applied. Running SSDT in VS2013 and deploying to SQL Server 2014. Settings Result Excel also doesn't display the selected format. Is there anything I am missing? 回答1: Answer found on technet. This is because the new cube browser control used in SSDT (unlike the old cube browser used for earlier versions of BIDS/SSAS) does not display the formatted value, it just displays the raw, unformatted value only. Testing in Excel reveiled format strings being

How can I find out the datatype of measures in MDX?

天大地大妈咪最大 提交于 2019-12-11 04:23:55
问题 I am new to Microsoft SQL Server Analysis Services and MDX. How can I find out the datatype of measures in MDX? The measures I am trying to find the datatype for are defined using a WITH clause which as I understand means that it is possible for each measure to have multiple datatypes. 回答1: How about the TypeName function: WITH Member [Measures].[My Type] as TypeName([Measures].[My Other Measure]) Etc... You are correct that each cell can be a different type of you have a calculations. 回答2:

Why is remove from role members not working?

独自空忆成欢 提交于 2019-12-11 04:22:06
问题 https://docs.microsoft.com/en-us/dotnet/api/microsoft.analysisservices.rolemembercollection.remove?view=analysisservices-dotnet For some reason, this is not working properly. I keep reconnecting the server and checking if the ID gets removed and its not! $ssasInstance = "<ssas instance name>" $accountName= "<domain\user>" Import-Module SqlServer [Microsoft.AnalysisServices.Server]$SSASserver = New-Object ([Microsoft.AnalysisServices.Server]) $SSASserver.Connect($ssasInstance) $role=

MDX query to calculate measure with AND condition by members from same dimension

自闭症网瘾萝莉.ら 提交于 2019-12-11 04:12:15
问题 I have cube within OLAP database (SSAS 2012) where [Persons], [Dates] (date of order), [Categories] (category of item within order) are dimensions and [Orders], [OrdersCategories] are fact tables. [OrdersCategories] is many-to-many table to connect orders with categiries. Using query: SELECT {[Measures].[Orders Distinct Count]} ON COLUMNS, {[Persons].[Id].Children} ON ROWS FROM [DB] WHERE ( {[Dates].[Id].&[2015-06-11T00:00:00] : [Dates].[Id].&[2015-06-17T00:00:00]}, {[Categories].[Id].&[10],

OLAP cube design reference for a IT support business [closed]

徘徊边缘 提交于 2019-12-11 03:57:41
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . We are designing a dimensional model for an IT support business. There are cases (some call them tickets or incidents) with different statuses (feels like an SCD type II dimension) We also need to consider the count of cases and SLA time duration as measures. Before going into

SSAS cubes as OData feed

微笑、不失礼 提交于 2019-12-11 03:57:19
问题 As Excel PowerPivot supports Odata feeds, I'm looking for some technical solution to expose SSAS cubes as OData feeds. Are there any known ways/frameworks of achieving this? EDIT: I need to be able to slice and dice data coming from the cubes through a client application (in this case Excel). OData feeds as a data source is a requirement as well. SSRS report exposed as OData is not an option, since it is rigid and has a consistent form. 回答1: I would use Reporting Services (SSRS). SSRS is

Calculated Member for the TOTAL of a measure for multiple Dimensions

邮差的信 提交于 2019-12-11 03:51:53
问题 I am trying to TOTAL a measure with a calculated measure AS CALCULATE; CREATE MEMBER CURRENTCUBE.[Measures].[Total On Hand Amount] AS ([Warehouses].[Warehouses].[All],[Measures].[On Hand Amount]), FORMAT_STRING = "#,#", VISIBLE = 1; This is working when I have warehouse Dimension selected but I want to make it dynamic so that it would work for any other dimensions/hierarchies as well without them being added to the code. Any help is appreciated!! 回答1: I think you want to use Root CALCULATE;

Difference in results while using .CHILDREN and .ALLMEMBERS in an MDX statement

匆匆过客 提交于 2019-12-11 03:35:45
问题 I have two almost similar MDX queries, in one I am using .CHILDREN and in other .ALLMEMBERS. First one returns no rows, the second one returns two. Please help me in understanding why! Query 1 select [Measures].[Claim As Of - Count] on 0, [Accident Date].[Year].allmembers on 1 from [AW Cube] where [Accident Date].[Year-Quarter-Month-Date].[Year].&[2010] ---2 rows Query 2 select [Measures].[Claim As Of - Count] on 0, [Accident Date].[Year].children on 1 from [AW Cube] where [Accident Date].