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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

ISFILTERED to set conditional slicer

Hi community,

 

I have folloed the steps in this post

https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/#comment-87248

It almost achieved everything I want except for a small issue...

 

I am trying to build a report with a simple Matrix and 3 slicers, and scenario like

 

Initially, there's no visual shows up (Except for 3 slicer, say, Division, Year, Month) until a slicer (Division) is selected. 

When there's nothing seleced, display a message by Card saying 'You must select...'

Message = IF( ISFILTERED('Table'[Column]),"","You must first select a Operating Division from the filter to see the results")

 

I implemented the steps like create a measure "Check Filter" = CALCULATE(IFIISFILTERED('Table'[column]),1,0))

and a Measure "MakeTransparent" = IF(ISFILTERED('Table'[Column]),"#FFFFFF00","White") this is set for conditional formating the background color of Card.

 

These all worked fine; the only thing is, when the slicer is set to "Select All", it shows the Message.

I guess it's because the CheckFilter does not recognize the "ALL" so it make it looks like none filter applied. 

 

How should I do to make the "Select All" display all the values? 

 

Thank you!

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

Hi, @Anonymous 

According to your description and document link, I also followed the blog to do the same demo as yours, then I got the same problem.

Then I found that when I turn off the “Select all” option, and select all manually, the card chart can display the correct value, like this:

v-robertq-msft_0-1611128125313.png

 

v-robertq-msft_1-1611128125316.png

 

Then I understand the problem is caused by the “select all” button. After some test, I figured out a method to solve this problem, you can try my steps:

  1. Create a Slicer table:
Slicer =

UNION ( ROW ( "Category", "Select all" ), DISTINCT ( 'Table'[Category] ) )
  1. Create these measures:
Check Filtered =

IF(ISFILTERED(Slicer[Category]),

IF(

    SELECTEDVALUE('Slicer'[Category])="Select all",1,

    IF(

        MAX('Table'[Category]) in ALLSELECTED(Slicer[Category]),1,0)),0)
Make Transparent =

      IF(

         ISFILTERED('Slicer'[Category]),

         "#FFFFFF00",

         "White"

      )
Message =

   IF(

      ISFILTERED('Slicer'[Category]),

      "",

      "You must first select a Product Category from the slicer to see the results"

   )
  1. Change the filter on the Matrix like this:

v-robertq-msft_2-1611128125318.png

 

And you can get what you want, like this:

v-robertq-msft_3-1611128125320.png

You can download my test pbix file here

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description and document link, I also followed the blog to do the same demo as yours, then I got the same problem.

Then I found that when I turn off the “Select all” option, and select all manually, the card chart can display the correct value, like this:

v-robertq-msft_0-1611128125313.png

 

v-robertq-msft_1-1611128125316.png

 

Then I understand the problem is caused by the “select all” button. After some test, I figured out a method to solve this problem, you can try my steps:

  1. Create a Slicer table:
Slicer =

UNION ( ROW ( "Category", "Select all" ), DISTINCT ( 'Table'[Category] ) )
  1. Create these measures:
Check Filtered =

IF(ISFILTERED(Slicer[Category]),

IF(

    SELECTEDVALUE('Slicer'[Category])="Select all",1,

    IF(

        MAX('Table'[Category]) in ALLSELECTED(Slicer[Category]),1,0)),0)
Make Transparent =

      IF(

         ISFILTERED('Slicer'[Category]),

         "#FFFFFF00",

         "White"

      )
Message =

   IF(

      ISFILTERED('Slicer'[Category]),

      "",

      "You must first select a Product Category from the slicer to see the results"

   )
  1. Change the filter on the Matrix like this:

v-robertq-msft_2-1611128125318.png

 

And you can get what you want, like this:

v-robertq-msft_3-1611128125320.png

You can download my test pbix file here

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

I think this is not possible, because from DAX point of view "Select All" and not filtered is the same.

 

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors