cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Miruthan Regular Visitor
Regular Visitor

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

Accepted Solutions
Super User
Super User

Re: SELECTEDVALUE with Slicer Selection

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().

I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

5 REPLIES 5
Super User
Super User

Re: SELECTEDVALUE with Slicer Selection

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. 


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Miruthan Regular Visitor
Regular Visitor

Re: SELECTEDVALUE with Slicer Selection

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.

Super User
Super User

Re: SELECTEDVALUE with Slicer Selection

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().

I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

View solution in original post

Miruthan Regular Visitor
Regular Visitor

Re: SELECTEDVALUE with Slicer Selection

Hi @Greg_Deckler  I found the solution ,

 

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

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

Super User
Super User

Re: SELECTEDVALUE with Slicer Selection

Nice one!


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 266 members 3,058 guests
Please welcome our newest community members: