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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
mstone3
Helper III
Helper III

DAX Logical Function for All Selected

Hello,

 

Is there a DAX function that will return a logical true/false based on whether or not all slicer options are selected?  I.E. if all slicer options are selcted (all selected), result = TRUE.  If not all options are selected = FALSE.

 

Thanks!

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @mstone3 ,

 

yes, the function is called ISCROSSFILTERED.

The following measure will return a TRUE or FALSE if a specific column is filtered or not:

IsFiltered = ISCROSSFILTERED( mySlicerTale[SlicerColumn] )

 

This you can use then in other measures (IF( ISCROSSFILTERED( ...))

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Function? No. But a combination of functions - yes. Assuming the slicer can't have any filtering applied to itself, that is, no measure filters it via the Filter pane and assuming that the slicer holds data from one column only from table T, what you can do is write this measure:

 

[All Entries Selected] =
var SelectedEntriesCount =
    DISTINCTCOUNT( T[SlicerColumn] )
var TotalEntriesCount =
    CALCULATE(
        DISTINCTCOUNT( T[SlicerColumn] ),
        REMOVEFILTERS( T )
    )
return
    SelectedEntriesCount
        = TotalEntriesCount

 

Of course, if you had a measure filtering the slicer it would also be possible to write such a measure but it would be a bit more complex. It would also require defining what is meant by "all entries selected."

selimovd
Super User
Super User

Hey @mstone3 ,

 

yes, the function is called ISCROSSFILTERED.

The following measure will return a TRUE or FALSE if a specific column is filtered or not:

IsFiltered = ISCROSSFILTERED( mySlicerTale[SlicerColumn] )

 

This you can use then in other measures (IF( ISCROSSFILTERED( ...))

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.