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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JustinDoh1
Post Prodigy
Post Prodigy

How to modify this to show all values when filter selects ALL

Sorry. I am posting this again because I did not get the solution from my last post which I started asking from last Friday.

 

I have my latest PBIX file here.

 

What I am trying to do is, when ALL Locations are selected, I would like all three visuals show up, but current DAX would

not do it or I am not sure if there is any way to make it work with PowerBI.

JustinDoh1_0-1734637633462.png

I have three individual DAX for each of threes (ALI, ARB & AVI).

Examples (for ALI and ARB, skipping for AVI):

JustinDoh1_1-1734637829893.png

JustinDoh1_2-1734638041826.png

 

How do I make it work to have all three visuals would show the characters when user selects ALL three locations?

 

Thanks.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,  @JustinDoh1 
Thanks for reaching out to the Microsoft fabric community forum.

The issue you are currently facing is primarily due to the ISFILTERED() function always returning true, even when the location column filter is not clicked. Therefore, we can resolve this issue by using a new table as a slicer:

 

1.Firstly, you need to create a new calculated table to be used as a slicer, and ensure that this new table has no relationships with other tables:

vlinyulumsft_0-1734673900229.png

Z-Table = VALUES('tblScore'[Location])

vlinyulumsft_1-1734673943188.png

vlinyulumsft_2-1734673943189.png

2.Secondly, create the following measures and replace the card visual objects accordingly:

ALI1 = 
IF (
    ISFILTERED ( 'Z-Table'[Location] ),
    IF (
        CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ALI" ),
        "ALI",
        ""
    ),
    ""
)

ARB1 = 
IF (
    ISFILTERED ( 'Z-Table'[Location] ),
    IF (
        CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ARB" ),
        "ARB",
        ""
    ),
    ""
)
AVI1 = 
IF (
    ISFILTERED ( 'Z-Table'[Location] ),
    IF (
        CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "AVI" ),
        "AVI",
        ""
    ),
    ""
)

vlinyulumsft_3-1734674001946.png

 

 

vlinyulumsft_4-1734674001948.png

3.Next, create the following measures to be used as filters for the table visual objects:

FILTER = 
IF (
    ISFILTERED ( 'Z-Table'[Location] ),
    IF ( MAX ( 'tblScore'[Location] ) IN VALUES ( 'Z-Table'[Location] ), 1, 0 ),
    0
)

 

vlinyulumsft_5-1734674032724.png

4.Here's my final result, which I hope meets your requirements.

 

vlinyulumsft_6-1734674032725.png

vlinyulumsft_7-1734674049212.png

 

 

vlinyulumsft_8-1734674049212.png

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

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

3 REPLIES 3
Anonymous
Not applicable

Hi,  @JustinDoh1 
Thanks for reaching out to the Microsoft fabric community forum.

The issue you are currently facing is primarily due to the ISFILTERED() function always returning true, even when the location column filter is not clicked. Therefore, we can resolve this issue by using a new table as a slicer:

 

1.Firstly, you need to create a new calculated table to be used as a slicer, and ensure that this new table has no relationships with other tables:

vlinyulumsft_0-1734673900229.png

Z-Table = VALUES('tblScore'[Location])

vlinyulumsft_1-1734673943188.png

vlinyulumsft_2-1734673943189.png

2.Secondly, create the following measures and replace the card visual objects accordingly:

ALI1 = 
IF (
    ISFILTERED ( 'Z-Table'[Location] ),
    IF (
        CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ALI" ),
        "ALI",
        ""
    ),
    ""
)

ARB1 = 
IF (
    ISFILTERED ( 'Z-Table'[Location] ),
    IF (
        CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ARB" ),
        "ARB",
        ""
    ),
    ""
)
AVI1 = 
IF (
    ISFILTERED ( 'Z-Table'[Location] ),
    IF (
        CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "AVI" ),
        "AVI",
        ""
    ),
    ""
)

vlinyulumsft_3-1734674001946.png

 

 

vlinyulumsft_4-1734674001948.png

3.Next, create the following measures to be used as filters for the table visual objects:

FILTER = 
IF (
    ISFILTERED ( 'Z-Table'[Location] ),
    IF ( MAX ( 'tblScore'[Location] ) IN VALUES ( 'Z-Table'[Location] ), 1, 0 ),
    0
)

 

vlinyulumsft_5-1734674032724.png

4.Here's my final result, which I hope meets your requirements.

 

vlinyulumsft_6-1734674032725.png

vlinyulumsft_7-1734674049212.png

 

 

vlinyulumsft_8-1734674049212.png

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

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

 

@Anonymous I think this should work. I will try and let you know if there is any issue (from my manager). Thanks!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.