Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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!
Solved! Go to Solution.
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( ...))
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."
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( ...))
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
16 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
23 | |
11 | |
10 | |
10 | |
8 |