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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

conditionally hiding filter

Hello experts,

I have a requirement where if I select one filter, the other filter should be greyed out.

 

Year Month  Year Week
202011  202045
202010  202040
202009  202040
202009  202039

 

Year Week 202040 falls both in October and September
Year Week being cascade to Year Month, will not give correct data for Year Week 202040 (as it will split in both Sep and Oct)
Is there any option in the filter where if Year Month is selected, Year Week will be greyed out and if Year Week is selected Year Month would be greyed out

 

Thank you in advance.

 

Best regards,

Manish Kumar

 

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

Hi  @Anonymous ,

 

I have a workaround.

Though it is hard to make another filter grayed out,you can make it blank,when the other slicer is selected.

Create 2 measures as below:

Measure = IF(ISFILTERED('Table 2'[Year Month]),BLANK(),MAX('Table 3'[Year Week]))
Measure 2 = IF(ISFILTERED('Table 3'[Year Week]),BLANK(),MAX('Table 2'[Year Month]))

Then create 2 slicers and put the 2 measures in the filter field>"is not blank">apply.

v-kelly-msft_0-1607655719879.png

Finally you will see:

v-kelly-msft_1-1607655736587.pngv-kelly-msft_2-1607655744868.pngv-kelly-msft_3-1607655754468.png

For the related .pbix file,pls see attached.

 

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

I have a workaround.

Though it is hard to make another filter grayed out,you can make it blank,when the other slicer is selected.

Create 2 measures as below:

Measure = IF(ISFILTERED('Table 2'[Year Month]),BLANK(),MAX('Table 3'[Year Week]))
Measure 2 = IF(ISFILTERED('Table 3'[Year Week]),BLANK(),MAX('Table 2'[Year Month]))

Then create 2 slicers and put the 2 measures in the filter field>"is not blank">apply.

v-kelly-msft_0-1607655719879.png

Finally you will see:

v-kelly-msft_1-1607655736587.pngv-kelly-msft_2-1607655744868.pngv-kelly-msft_3-1607655754468.png

For the related .pbix file,pls see attached.

 

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

 

amitchandak
Super User
Super User

@Anonymous , You can do it using bookmark and button. Not using slicer

https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.