Forum Discussion
How to Set Condition in Slicer
- Anonymous3 years ago
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"
Then simply click on Turn off interaction button on the Year2 Slicer
Now, whenever you will select a Year from Year1, Year2 Slicer will not be filtered because the interactions are off.
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.