Forum Discussion
Miruthan
Advocate V
8 years agoSELECTEDVALUE 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. Sel...
- 8 years ago
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().
Greg_Deckler
Community Champion
8 years agoUnfortunately 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(). |
Miruthan
Advocate V
8 years agoHi Greg_Deckler I found the solution ,
Selected = "Selected Product: " & IF(NOT(ISFILTERED(Product[Name])),"All",
CONCATENATEX(ALLSELECTED(Product[Name]),Product[Name],","))
- Greg_Deckler8 years ago
Community Champion
Nice one!
- ranahamza3 years agoFrequent Visitor
Great👍