Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello all,
I'm working on a model with a related date and fact table and a report with a single select slicer for fiscal year. I have created cumulative measures for totals which filter on <= selectedfiscalyear and work fine.
However, I also have a user requirement to show the individual items from the selected fiscal year or before on a map. Because of the relationship between date and fact tables, a single year works fine, but not sure how to show cumulative individual results. Has anyone encountered this situation before?
I suppose I could just forget the cumulative measures and set the slicer to multi-select so the users would need to select all years they want. But then they could select non-contiguous years like FY 2022 and FY2024.
Appreciate any ideas you have.
Solved! Go to Solution.
@djurecicK2 Basically you construct the measure so that it returns 1 for every row that you want to show. Then you use the Filters pane to filter to 1. So basically:
Selector Measure =
VAR __SFY = SELECTEDVALUE('Fiscal'[FiscalYear])
VAR __FY = MAX('Fiscal'[FiscalYear])
VAR __Result = IF(__FY <= __SFY,1,0)
RETURN
__Result
Hi @Greg_Deckler ,
Thank you for your reply. I'm not quite sure how that would work, since I'm looking to show non-aggregated values (location), but I will look into it.
Thanks,
DJ
@djurecicK2 Basically you construct the measure so that it returns 1 for every row that you want to show. Then you use the Filters pane to filter to 1. So basically:
Selector Measure =
VAR __SFY = SELECTEDVALUE('Fiscal'[FiscalYear])
VAR __FY = MAX('Fiscal'[FiscalYear])
VAR __Result = IF(__FY <= __SFY,1,0)
RETURN
__Result
@djurecicK2 Perhaps try using a Complex Selector: The Complex Selector - Microsoft Power BI Community
User | Count |
---|---|
83 | |
77 | |
70 | |
69 | |
54 |
User | Count |
---|---|
106 | |
96 | |
90 | |
79 | |
68 |