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
Anonymous
Not applicable

Card with the same information as the Slicer

Hello everybody,

I'm using the information from the Card to bring up the information already filtered in Slicer.
However, I can't find any option to bring "All" when all slicers information is selected.


For example, in the case below, I would like the information "All" to show the Card instead of "Canada".

I can't find any kind of quick measure to define this.

 

 

Untitled.png

2 ACCEPTED SOLUTIONS

Hi @Anonymous ,

Please try this:-

Measure =
VAR result =
    CONCATENATEX ( VALUES ( table[Country] ), [Country], "," )
RETURN
    CALCULATE ( IF ( ISFILTERED ( table[Country] ), result, "ALL" ) )

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

PC2790
Community Champion
Community Champion

Hey @Anonymous ,

 

Try this:

 

ShowSelected = 
if(ISFILTERED(TableName[Country]),CONCATENATEX(Values(TableName[Country]),TableName[Country],","),"All")

 

Case 1: Only one country selected:

PC2790_3-1653318130238.png

 

Case 2: Multiple countries selected:

PC2790_1-1653318062674.png

Case 3: None selected:

PC2790_2-1653318098171.png

I hope this is what you are looking for.

View solution in original post

5 REPLIES 5
PC2790
Community Champion
Community Champion

Hey @Anonymous ,

 

Try this:

 

ShowSelected = 
if(ISFILTERED(TableName[Country]),CONCATENATEX(Values(TableName[Country]),TableName[Country],","),"All")

 

Case 1: Only one country selected:

PC2790_3-1653318130238.png

 

Case 2: Multiple countries selected:

PC2790_1-1653318062674.png

Case 3: None selected:

PC2790_2-1653318098171.png

I hope this is what you are looking for.

Anonymous
Not applicable

Legend!

Thank you!

Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

You could create a measure like this:-

Measure =
IF (
    SELECTEDVALUE ( table[Country] ) = BLANK (),
    "ALL",
    SELECTEDVALUE ( table[Country] )
)

 

BR,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

Hi Samantha, this works in part. 😅

When I select two or more countries, it keeps returning me as ALL.

BR



Hi @Anonymous ,

Please try this:-

Measure =
VAR result =
    CONCATENATEX ( VALUES ( table[Country] ), [Country], "," )
RETURN
    CALCULATE ( IF ( ISFILTERED ( table[Country] ), result, "ALL" ) )

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.