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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
psilos24
Helper I
Helper I

How to show that none values are selected on a filter

I'm trying to show in a card what values are selected from a filter. The card should display the words selected.

In case all are selected it should display "ALL" and in case none is selected display "NONE". I have found the following solution which works https://community.powerbi.com/t5/Desktop/Text-field-to-show-the-selected-filter/m-p/251023/highlight...

However, when none is selected it still displays "ALL".How can I make it display "NONE"? 

1 ACCEPTED SOLUTION
nandukrishnavs
Community Champion
Community Champion

@psilos24 

 

Try this 

 

Measure =
VAR _count =
    CALCULATE (
        DISTINCTCOUNTNOBLANK ( 'Table'[Column1] ),
        ALL ( 'Table'[Column1] )
    )
VAR _countinscope =
    DISTINCTCOUNTNOBLANK ( 'Table'[Column1] )
VAR _result =
    IF (
        ISFILTERED ( 'Table'[Column1] ),
        IF (
            _count = _countinscope,
            "All",
            CONCATENATEX (
                'Table',
                [Column1],
                ","
            )
        ),
        "None"
    )
RETURN
    _result

 

1.JPG2.JPG3.JPG4.JPG



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

View solution in original post

5 REPLIES 5
nandukrishnavs
Community Champion
Community Champion

@psilos24 

 

Try this 

 

Measure =
VAR _count =
    CALCULATE (
        DISTINCTCOUNTNOBLANK ( 'Table'[Column1] ),
        ALL ( 'Table'[Column1] )
    )
VAR _countinscope =
    DISTINCTCOUNTNOBLANK ( 'Table'[Column1] )
VAR _result =
    IF (
        ISFILTERED ( 'Table'[Column1] ),
        IF (
            _count = _countinscope,
            "All",
            CONCATENATEX (
                'Table',
                [Column1],
                ","
            )
        ),
        "None"
    )
RETURN
    _result

 

1.JPG2.JPG3.JPG4.JPG



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

Thank you @nandukrishnavs  it works perfectly but what if the "select all" option is on?

dax
Community Support
Community Support

Hi @psilos24 , 

I think "select all" might not work, based on my test, I find that the IsFiltered can't  distinguish the difference between allselect and unselect". So I suggest you need to disbale this option.

Best Regards,
Zoe Zhi

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

@psilos24  Try that, it should work.



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

amitchandak
Super User
Super User

@psilos24 , you can use is filtered or hasonevalue

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

if(isfiltered(Table[A]),Table[A],"None")

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.