Forum Discussion
Totals issues
Measure not working as expected, Totals and subtotals for Prior Year WTD Calculation doesn't work on Totals and Subtotals
SalesAmtPY:=
VAR DateRange =
FILTER (
ALL ( 'DimDate' ),
'DimDate'[AdjustedYearNumber]
= VALUES ( 'DimDate'[AdjustedYearNumber] ) - 1
&& CONTAINS (
VALUES ( 'DimDate'[AdjustedWeekofYearNumber] ),
'DimDate'[AdjustedWeekofYearNumber], 'DimDate'[AdjustedWeekofYearNumber]
)
&& CONTAINS (
VALUES ( 'DimDate'[AdjustedWeekofYearandDayofWeekNumber] ),
'DimDate'[AdjustedWeekofYearandDayofWeekNumber], 'DimDate'[AdjustedWeekofYearandDayofWeekNumber]
)
)
RETURN
IF (
ISBLANK ( [SalesAmt] ),
BLANK (),
CALCULATE ( 'FactSales'[SalesAmt], DateRange, ALL ( DimStatus[StatusDescription],DimStatus[Status] ) )
)
I'm ignoring filter on Status column in the measure this is because the status will change over time Last year status was "o" and for current year it is "c" I should ignore the status and in the report and show SalesAmt and SalesAmtPy on one line which is working fine, but when I use it with as Status in Slicer the Totals and SubTotals in Matrix report doesn't change and it shows the same value, how to make slicer option work on this measure ? here are the screenshots.
1 Reply
- v-piga-msftResident Rockstar
Hi Anonymous ,
I cannot see your screenshots, please check if there is something wrong.
In addition, to understand your scenario better, please share some data sample which could reproduce your scenario and your desired output so that we could help further on it.
Best Regards,
Cherry