I'm trying to create a calculated measure that gets the filtered total on each row (to be used in additional calculated measures).More Info:e.g. Let's say I set some filters on my cube/pivottable and then pull in the Sales Date hierarchy (year, quarter, month, date) onto rows and I pull Inventory Count as a valueThen I expand Sales Date to Month and I filter Sales Date to show year 2013.Now I want to pull a new calculated measure "TOTAL Inventory Count" into values and I want it to show the TOTAL of 2013 on each row.If I was using Excel, I could use some form of GetPivotData, but I'm actually not using excel, we use a 3rd party viewer, so this won't work for me.I've tried creating a Scoped measure, e.g.:[quote] CREATE MEMBER CURRENTCUBE.[Measures].[TOTAL Inventory Count] AS Sum([Measures].[Inventory Count]), FORMAT_STRING = "#,#", NON_EMPTY_BEHAVIOR = { [Inventory Count] }, VISIBLE = 1; SCOPE([TOTAL Inventory Count],[Sales Date].[Sales Date].MEMBERS); THIS = Sum([Measures].[Inventory Count],[Sales Date].[Sales Date].[All]); END SCOPE; [/quote]But this returns the TOTAL, Total Inventory Count for All Sales Dates, I want the total for only 2013 (the selected filtered which the user could change)See attachment (with slightly different names) - I want all Total TGW Count values to have the Grand Total from TGW Count - when The row labels have been filtered.Please help?! Any Suggestions?!Thank you, Megan
↧