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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Remove slicer selection when no data


Hi Experts, I just want to ask help on how to remove the selection of slicer,  When I select January from the month filter, and then switch to the year filter, January stays selected. How can I remove the month selection when I choose a year? Any help would be appreciated.

ddelacruz_1-1720565307101.png

 

 

 

 

 

Thanks, 

 

Dale

 

 

 

1 ACCEPTED SOLUTION

Hi again 🙂
There are a few alternatives that i can suggest :

1. guide the user to click on the reset slicer , like :

Ritaf1983_0-1720587203281.pngRitaf1983_1-1720587229389.png

2. You can add button clear slicers like :

Ritaf1983_2-1720587671143.pngRitaf1983_3-1720587686365.png

3. Move from the slicers and just create 2 pages with the wanted granularity instead + page navigator like :

Ritaf1983_4-1720588001903.pngRitaf1983_5-1720588042423.png

*** All the options can be created with much better design there are just drafts to show the logic

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

6 REPLIES 6
Ritaf1983
Super User
Super User

Hi @Anonymous 
The short answer is that if the first slicer interacts with the second, the user should remove the month's selection before changing the "main" slicer, there is no option to clear it automatically.
To suggest alternatives, it can help to see the data example and to understand what you are trying to achieve.

please share a pbix or some dummy data that keeps the raw data structure with expected results. It should help us clarify your scenario and test the coding formula.

How to Get Your Question Answered Quickly  

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

Hi @Ritaf1983 

 

Here is the sample scenario:

 

1. "Select 'By Month' in the Filter Slicer, and then choose 'January' in the Month Slicer."

 

ddelacruz_1-1720580456261.png

2. When switching to "By Year," I want the month slicer to reset or REMOVE the selection since there is no data. 

 

ddelacruz_2-1720580898571.png

 

The expected output should be like this: 

ddelacruz_3-1720581127138.png

 

Here is the sample Dataset

sample_dataset.pbix 

 

 

 

Thanks, 

Dale

 

 

Hi again 🙂
There are a few alternatives that i can suggest :

1. guide the user to click on the reset slicer , like :

Ritaf1983_0-1720587203281.pngRitaf1983_1-1720587229389.png

2. You can add button clear slicers like :

Ritaf1983_2-1720587671143.pngRitaf1983_3-1720587686365.png

3. Move from the slicers and just create 2 pages with the wanted granularity instead + page navigator like :

Ritaf1983_4-1720588001903.pngRitaf1983_5-1720588042423.png

*** All the options can be created with much better design there are just drafts to show the logic

pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

Thanks for this alternatives 😘

Happy to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

if there theres any other alternative , it would be helpful

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors