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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Thennarasu_R
Responsive Resident
Responsive Resident

How to Set Condition in Slicer

Hi Team  !

I have one queries in Slicer .

We 2 year column from different table and have a relation ship both table 
1st slicer is Year1 2nd slicer is Year2
Refference Pic :

Thennarasu_R_0-1677648411470.png

My Requirement is 
if I select the year in slicer1 It will return a year2 Selected year and before year only will come..


If i selected a year in slicer year1 now i got in year2 slicer only selected year value .

Thennarasu_R_0-1677648614763.png

 





How to do that one?



Thanks,
Thennarasu.


1 ACCEPTED SOLUTION
HassanAshas
Helper V
Helper V

If I understood you correctly, what you are trying to accomplish is you don't want to filter the Year2 Slicer, upon selection in the Year1 Slicer. 

 

You can very easily achieve this using Edit Interactions. 

 

Click on the Year1 Slicer. 

Now go to "Format" and Turn on "Edit Interactions" 

 

HassanAshas_0-1677649373708.png

 

 

Then simply click on Turn off interaction button on the Year2 Slicer 

HassanAshas_1-1677649411515.png

 

Now, whenever you will select a Year from Year1, Year2 Slicer will not be filtered because the interactions are off. 

 

View solution in original post

2 REPLIES 2
HassanAshas
Helper V
Helper V

If I understood you correctly, what you are trying to accomplish is you don't want to filter the Year2 Slicer, upon selection in the Year1 Slicer. 

 

You can very easily achieve this using Edit Interactions. 

 

Click on the Year1 Slicer. 

Now go to "Format" and Turn on "Edit Interactions" 

 

HassanAshas_0-1677649373708.png

 

 

Then simply click on Turn off interaction button on the Year2 Slicer 

HassanAshas_1-1677649411515.png

 

Now, whenever you will select a Year from Year1, Year2 Slicer will not be filtered because the interactions are off. 

 

datafi3nd
Frequent Visitor

Maybe create (or generate) an additional table like:

 

Year, YearsAvailable

2014,2014

2014,2013

2015,2015

2015,2014

 

Do a relationship between YearsAvailable and your date table's year column. Relationship will be many to many with single direction from new table to date table. 

 

On your first slicer put Year (from your new table) and on second YearsAvailable.

 

I didn't test but it should filter both slicer2 and your date table with year selected and the previous year.

 

Would love to see other ways to achieve this.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.