Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
in a simple matrix visual I want to display comparative sales figures YoY (or better FY on previous FY). In order to avoid weird results I would like the user to select in a top slicer just one FY and then the system selects that FY and the previous one. Practically the user selects FY22 but the systems understands FY22 and FY21. I suppose there are multiple ways to realise this but any easy one coming to your mind?
Thanks,
C.
Solved! Go to Solution.
Hi @Anonymous ,
You can try this method:
Because I don't know your data looks like, so I create some sample data to test.
The second table is slicer.
Measure =
IF (
SELECTEDVALUE ( Slicer[FY] )
<= SELECTEDVALUE ( 'Table'[Year] ) + 1
&& SELECTEDVALUE ( Slicer[FY] ) >= SELECTEDVALUE ( 'Table'[Year] ),
1,
0
)
To show all data, I create a index column:
The result is:
Is this what you expect?
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is perfect, exactly what I wanted.
Thank you!
Carlo
Hi @Anonymous ,
You can try this method:
Because I don't know your data looks like, so I create some sample data to test.
The second table is slicer.
Measure =
IF (
SELECTEDVALUE ( Slicer[FY] )
<= SELECTEDVALUE ( 'Table'[Year] ) + 1
&& SELECTEDVALUE ( Slicer[FY] ) >= SELECTEDVALUE ( 'Table'[Year] ),
1,
0
)
To show all data, I create a index column:
The result is:
Is this what you expect?
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
51 | |
39 | |
26 |
User | Count |
---|---|
84 | |
57 | |
45 | |
44 | |
36 |