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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.