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
Miruthan
Advocate II
Advocate II

SELECTEDVALUE with Slicer Selection

Hi Experts,

 

I need guidance on SEELECTEDVALUE, I have Slicer and Mulitiple card,  I want to show the selection of slicer in the card. I used SELECTED VALUE, but always shows false option.

 

Selected = SELECTEDVALUE(Product[Name], "No Selection").

 

What wrong I am doing here.

1 ACCEPTED SOLUTION

Unfortunately SELECTEDVALUE does not suppor that. From:

 

https://msdn.microsoft.com/en-us/library/mt842608.aspx

 

Term Definition
columnName The name of an existing column, using standard DAX syntax. It cannot be an expression.
alternateResult (Optional) The value returned when the context for columnName has been filtered down to zero or more than one distinct value. When not provided, the default value is BLANK().

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

6 REPLIES 6
Greg_Deckler
Super User
Super User

I'm not sure what you mean by Multiple card (multi-row card?). It may have something to do with your data, but I have tested this with text, numeric and date data types in a multirow card. It will return the alternate result if you select multiple items. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler Sorry for the confusion,I meant  Multi row card visual. Let me put in simple way, I want to display the Multiple(more than one) Selected value from Slicer in Card.

Unfortunately SELECTEDVALUE does not suppor that. From:

 

https://msdn.microsoft.com/en-us/library/mt842608.aspx

 

Term Definition
columnName The name of an existing column, using standard DAX syntax. It cannot be an expression.
alternateResult (Optional) The value returned when the context for columnName has been filtered down to zero or more than one distinct value. When not provided, the default value is BLANK().

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler  I found the solution ,

 

Selected = "Selected Product: " & IF(NOT(ISFILTERED(Product[Name])),"All",

CONCATENATEX(ALLSELECTED(Product[Name]),Product[Name],","))

Great👍

Nice one!


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.