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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
roytap
Helper I
Helper I

How to apply Year slicer value to a visualization filter

Hi,

 

I have a Year slicer with the following value 2018, 2017, 2016 etc.....

 

In my report, there are 4 visualization and 3 of them are based on the year slicer to produce the visualization results. The last visualization is a Matrix with the Year as column field. I want this visualization to show the selected year, year-1 and year-2 data in the Matrix. I cannot multi-select the year in the slicer selection as the other 3 visualizations will show aggregate value of all the selected year if i do so. 

 

How can i call the Year slicer value and perform a filter using the value is equal or less than OR value between to get my desired end result in the Matrix without impacting other visualizations? How can i get the dynamic selected slicer year to be used in my visualization filter?

 

Thanks.

 

 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@roytap,

You can create two year slicers to achieve the above reuqirement. Please follow the steps below.

1. Click on the first Year slicer, turn on Edit interactions. Then choose None for the second slicer and for the Matrix visual, choose Filter for the other three visuals.
1.JPG

2. Click on the second Year slicer, choose None for the first year slicer and for the other three visuals, choose filter for the Matrix visual.
2.JPG

This way, select value in the first year slicer to filter the three visuals and select multiple years in the second Year slicer to filter the Matrix visual.

Regards,
Lydia

Community Support Team _ Lydia Zhang
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

3 REPLIES 3
v-yuezhe-msft
Employee
Employee

@roytap,

You can create two year slicers to achieve the above reuqirement. Please follow the steps below.

1. Click on the first Year slicer, turn on Edit interactions. Then choose None for the second slicer and for the Matrix visual, choose Filter for the other three visuals.
1.JPG

2. Click on the second Year slicer, choose None for the first year slicer and for the other three visuals, choose filter for the Matrix visual.
2.JPG

This way, select value in the first year slicer to filter the three visuals and select multiple years in the second Year slicer to filter the Matrix visual.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the tips. 

 

So i will need to create 2 year filters. This cannot be achieve with using only 1 year filter. This could confuse the user when there are 2 years filter on a single report.

@roytap,

It is not possible to achieve your requirement by using a single year slicer.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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