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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Kk6
Frequent Visitor

Slicer Clear based on another slicer selection

i have two slicer. ex country and division . if i select contry and it division in filter. then if i clear the country. i need to clear division also. but now Sub slicer of division is not cleared. how to achive this.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Kk6,

AFAIK, current power bi does not support to use slicer to effect other filter selections. Perhaps you can try to use bookmark to create a bookmark to restore filter selections.

Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @Kk6,

AFAIK, current power bi does not support to use slicer to effect other filter selections. Perhaps you can try to use bookmark to create a bookmark to restore filter selections.

Create report bookmarks in Power BI to share insights and build stories - Power BI | Microsoft Learn
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
saud968
Responsive Resident
Responsive Resident

You can try this -  https://docs.microsoft.com/en-us/power-bi/create-reports/power-bi-slicer-hierarchy-multiple-fields OR

Using DAX (Power BI only):

Go to the Modeling tab.
Click on New Measure.
In the formula bar, enter the following formula:
ClearSelection =
VAR selectedCountry = SELECTEDVALUE('Table Name'[Country])
RETURN
IF(ISBLANK(selectedCountry),
ALLSELECTED('Table Name'[Division]),
SELECTEDVALUE('Table Name'[Division])
)
Replace "Table Name" with the actual name of your table.
Click OK.
Go to the Format Pane for the division slicer.
Under General, set Selection Mode to Single.
Under Visualizations, set Default value to the newly created ClearSelection measure.


Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!



Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.