Quantcast
Viewing all articles
Browse latest Browse all 1341

Calculated Measure LFL Grand Total

Hi I have a cube that has Products, Store,Date,Sales Type.I have two calculated measureMature Sales This YearSales Last YearThe Mature Sales Measure uses Parallel Period, CREATE MEMBER CURRENTCUBE.[Measures].[Mature Net Sales This Year] AS CASE WHEN ( [Measures].[Mature Net Sales Value], PARALLELPERIOD ([01 - Date].[Calendar].[Financial Year], 0, [01 - Date].[Calendar].CurrentMember)) =0 THEN NULL ELSE ( [Measures].[Mature Net Sales Value], PARALLELPERIOD ([01 - Date].[Calendar].[Financial Year], 0, [01 - Date].[Calendar].CurrentMember)) I have a measure that shows Sales Last YearCREATE MEMBER CURRENTCUBE.[Measures].[Net Sales Last Year] AS iif ([Measures].[Mature Net Sales This Year] >0, --case when [Measures].[Mature Net Sales This Year] >0 then sum (EXISTING [Measures].[Net Sales Value], PARALLELPERIOD ([01 - Date].[Calendar].[Financial Year], 1, [01 - Date].[Calendar].CurrentMember) ), null ), FORMAT_STRING = "#,##.00", NON_EMPTY_BEHAVIOR = { [Measures].[Mature Net Sales Value] }, VISIBLE = 1 , DISPLAY_FOLDER = 'LFL Measures' , ASSOCIATED_MEASURE_GROUP = '01- Sales' ; END , FORMAT_STRING = "#,#.00", NON_EMPTY_BEHAVIOR = { [Measures].[Mature Net Sales Value] }, VISIBLE = 1 , DISPLAY_FOLDER = 'LFL Measures' , ASSOCIATED_MEASURE_GROUP = '01- Sales' ; The issue is the displaying of Grand Total if I filter the dimensions by and attribute (Select Few Products etc) the grand total displays correct, the moment I use select all attribute from any dimension the grand Total displays the wrong value.The Grand Total is not filtering out the shops that did not have mature sales this year.FYI - The business logic is if there are mature sales this year for the selected period, show last years sales.Many ThanksDan

Viewing all articles
Browse latest Browse all 1341

Trending Articles