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

Show Values with Select All when using filtered function

Hi , 

 

I am using 

Measure = CALCULATE ( IF ( ISFILTERED ( TERM[TermName]), 1, 0 ), ALLSELECTED ( CUSTOMERTABLE ) )
 
to show blank values in visual when nothing is selected. I set the visual filter to "1" and it works for the selected filter. However, when I click "select all" the visual is still blank - how do I fix this?
1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous  

This is the expected behavior if you are using the default slicer in Powerbi Desktop. 

46.png

Based on my test,when the slicer ‘select all’ is checked, it is actually equivalent to ‘nothing is selected’. This is by design, it just makes the slice appear to be in an all-selected state.

Therefore, when you use isfiltered to force the visual  to show blank values when ‘nothing is selected’, the visual also show blank values when 'all selected' is checked.

 

As a workaround, you can try to use  Hierarchical filter.

35.png

48.png

 

Best Regards,
Community Support Team _ Eason

 

View solution in original post

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous  

This is the expected behavior if you are using the default slicer in Powerbi Desktop. 

46.png

Based on my test,when the slicer ‘select all’ is checked, it is actually equivalent to ‘nothing is selected’. This is by design, it just makes the slice appear to be in an all-selected state.

Therefore, when you use isfiltered to force the visual  to show blank values when ‘nothing is selected’, the visual also show blank values when 'all selected' is checked.

 

As a workaround, you can try to use  Hierarchical filter.

35.png

48.png

 

Best Regards,
Community Support Team _ Eason

 

PhilipTreacy
Super User
Super User

Hi @Anonymous 

Try this

Measure = CALCULATE( IF( ISBLANK(SELECTEDVALUE('TERM'[TermName])) && DISTINCTCOUNT('TERM'[TermName]) = COUNTROWS(ALL('TERM')),0,1), ALLSELECTED( CUSTOMERTABLE))

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

Hi Phil, 

 

Thank you for your reply. This solution does not show a blank visual when there is nothing filtered. Could you help with troubleshooting

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.