Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Select fiscal years in couple

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.

1 ACCEPTED SOLUTION
v-yinliw-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can try this method:

Because I don't know your data looks like, so I create some sample data to test.

vyinliwmsft_0-1667196726030.png

The second table is slicer.

vyinliwmsft_1-1667196738681.png

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:

vyinliwmsft_2-1667196917561.png

 

vyinliwmsft_3-1667196967811.png

The result is:

vyinliwmsft_4-1667197001190.png

vyinliwmsft_5-1667197011019.png

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.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

This is perfect, exactly what I wanted.

 

Thank you!

Carlo

v-yinliw-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can try this method:

Because I don't know your data looks like, so I create some sample data to test.

vyinliwmsft_0-1667196726030.png

The second table is slicer.

vyinliwmsft_1-1667196738681.png

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:

vyinliwmsft_2-1667196917561.png

 

vyinliwmsft_3-1667196967811.png

The result is:

vyinliwmsft_4-1667197001190.png

vyinliwmsft_5-1667197011019.png

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.

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.