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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.