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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PatrickPerovan
Frequent Visitor

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 @PatrickPerovan ,

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 @PatrickPerovan ,

 

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 @PatrickPerovan ,

 

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.

PatrickPerovan
Frequent Visitor

Legend!

Thank you!

Samarth_18
Community Champion
Community Champion

Hi @PatrickPerovan ,

 

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

Hi Samantha, this works in part. 😅

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

BR



Hi @PatrickPerovan ,

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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