Forum Discussion
Hide/ Unhide slicers
Hi All,
I have 3 slicers as Year, Month, Week.
So, if i select year then Month slicer will show and year slicer will hide. And same as if i select month then Week slicer will show and month will hide. If i don't select anything it will show only year slicer.
Anyone knows how to do that ?
- Anonymous3 years ago
Hi krishb1414 ,
Please try the following steps:
Select the "Selection Pane" option from the "View" tab in the ribbon.
In the "Selection Pane", select the slicer that you want to hide (e.g. Month slicer).
In the "Visualizations" pane, select the "Format" tab.
Expand the "General" section and turn on the "Data" option.
In the "Data" section, select the "fx" button next to the "Visibility" option.
In the "fx" dialog box, enter the following formula:
=IF(ISFILTERED(Year), TRUE, FALSE)This formula checks if the Year slicer is filtered. If it is filtered, it returns TRUE, which means that the Month slicer will be visible. If it is not filtered, it returns FALSE, which means that the Month slicer will be hidden.
Click "OK" to close the "fx" dialog box.
repeat the above steps to the week slicer:
=IF(ISFILTERED(month), TRUE, FALSE)How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ RongtieIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- AnonymousNot applicable
Hi krishb1414 ,
Please try the following steps:
Select the "Selection Pane" option from the "View" tab in the ribbon.
In the "Selection Pane", select the slicer that you want to hide (e.g. Month slicer).
In the "Visualizations" pane, select the "Format" tab.
Expand the "General" section and turn on the "Data" option.
In the "Data" section, select the "fx" button next to the "Visibility" option.
In the "fx" dialog box, enter the following formula:
=IF(ISFILTERED(Year), TRUE, FALSE)This formula checks if the Year slicer is filtered. If it is filtered, it returns TRUE, which means that the Month slicer will be visible. If it is not filtered, it returns FALSE, which means that the Month slicer will be hidden.
Click "OK" to close the "fx" dialog box.
repeat the above steps to the week slicer:
=IF(ISFILTERED(month), TRUE, FALSE)How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ RongtieIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- SamDecideomFrequent Visitor
Hello Anonymous ,
I'm not able to find "Expand the "General" section and turn on the "Data" option.", could you post a screen please?