The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Hi @Anonymous ,
kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.
User | Count |
---|---|
74 | |
70 | |
39 | |
30 | |
28 |
User | Count |
---|---|
104 | |
95 | |
51 | |
48 | |
46 |