ssas-2012

How to create a separate measure group for the distinct count

眉间皱痕 提交于 2021-01-27 06:53:19
问题 I am adding distinct order count measure to the cube. I have to place it in a separate measure group for better performance When I click on "new measure group" button, I am presented with a dialog box "select a table from the source view" . My Facts_sales table is not on the list. because the table is already used by other measure group "Facts_sales". How could I create a new measure group for the distinct count measure? 回答1: Just create a new measure in the group referencing the fact table

ssas mdx line quantity divided by SUM

走远了吗. 提交于 2020-01-06 13:29:31
问题 How do I create the new column in MDX? The dimensions selected are not important. I just want the line amount / sum for the data selected. I am not an mdx expert... Current code below : CREATE MEMBER CURRENTCUBE.[Measures].[Weight] AS IIF([Measures].[Sales Line Amount AC Budget hidden] <> 0, Divide([Measures].[Sales Line Amount AC Budget hidden] ,AGGREGATE(Root(),[Measures].[Sales Line Amount AC Budget hidden])),NULL), VISIBLE = 1 , ASSOCIATED_MEASURE_GROUP = 'Sales Forecast' ; Hi they are

How to get a COUNT of NON-NULL members in a set with some conditions?

*爱你&永不变心* 提交于 2019-12-12 04:53:33
问题 To give you a slight background to the problem, there are certain "users" who do certain "tasks" which are categorized into various types; one such type being "DSR". The requirement I am faced with is to find how many requests of type DSR the userid 033343 worked on for each month of year 2013. What I would be needing is to get the count of the members in set of all the distinct requests a user (Userid = 033343) worked on in the year = 2013 and for the Request Type = DSR. Below is what I

How market growth for each product under that particular market would be same?

会有一股神秘感。 提交于 2019-12-12 00:36:52
问题 I have All_Product hierarchy in All_product dimension. strength-->product-->market I want calculation for product growth and market growth on monthly basis((current-prev)/prev). I used scripts to calculate product growth (wrt product) and market growth (wrt market) which working fine but how to show for market growth with respect to each product. eg: market growth for each product under that particular market will be same example: I have market m1 and under market m1 having products p1,p2 and

SSAS Dimension Data Permissions not applied to measures when the dimension is not selected when querying the cube

孤街醉人 提交于 2019-12-11 07:43:25
问题 I am quite new to SSAS, so please forgive me if there is an obvious answer to my question - I have done a lot of research today and cannot find the answer myself. I am trying to apply Dimension Data security (in a SSAS DB role that I have created) to my SSAS 2012 cube. Essentially, what I am trying to do is that users assigned to the role that I have created, should not be able to see any data for a specific dimension member. So, when I edit the cube in SSDT (SQL Server Data Tools or Visual

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].

MDX - NON EMPTY function faster?

浪尽此生 提交于 2019-12-11 02:53:05
问题 I was under the assumption that NON EMPTY clause must be avoided whenever possible. So, I was in for a shock when I accidentally found that it actually made the query much faster! Sample this: select [Measures].[Count Of Requests] on 0, ([Client].[Client Number].children , [Date].[Year].children) on 1 from [MyCube] --19 seconds on a hot cache select [Measures].[Count Of Requests] on 0, non empty ([Client].[Client Number].children , [Date].[Year].children) on 1 from [MyCube] --5 seconds on a

SSAS - relationship/granularity

╄→гoц情女王★ 提交于 2019-12-10 17:27:42
问题 I have 2 fact tables with a measure group each, Production and Production Orders. Production has production information at a lower granularity (at the component level) productionorders has information at a higher level (order level with header quantities etc.). I have created a surrogate key link between the two tables on productionorderid. As soon as I add Prod ID (from productiondetailsdim) to the pivot table it blats out the actual qty (from prod order measure group) and I cannot combine