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
firstch
Helper III
Helper III

Dax for check if slicer is select all

Hi all please help me how to  write dax for check , if the slicer is select all show "-" ,if not show [measure]

 

thank you in advance

Best Regard
firstch

3 REPLIES 3
firstch
Helper III
Helper III

Hi @amitchandak can i modify your dax with this ,

firstch_0-1662083898854.png

 

best regard
firstch

amitchandak
Super User
Super User

@firstch , assume Column is used in slicer 

Measure 1=

var _check = calculate(isfiltered(Table[Column]) , allselected())

return

if(_check, [Measure], blank())

 

or

 

Measure 1=

var _check = calculate(isfiltered(Table[Column]) , allselected())

return

if(_check, [Measure] & "" , "-")

Hi @amitchandak 
currently my dax cant track all selected filter event 

firstch_1-1662086288013.png

firstch_2-1662086354094.png

 

Best Regard 
firstch

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.

Top Solution Authors