Forum Discussion
augustindelaf
Impactful Individual
7 years agodisplay multiple elements with SELECTEDVALUE
Hello, I am using the DAX measure SELECTEDVALUE to display the value of a column that is filtered in a table visual. But I can't find a way to display multiple elements. For instance, if "Fr...
- 7 years ago
hi, augustindelaf
Try this formula:
Selected PDLs= CONCATENATEX ( VALUES ( Data[Nationality] ) , [Nationality] , ",")
Best Regards,
Lin
- 7 years ago
augustindelaf Please try this in your measure..
MonthSelection = VAR _Count = COUNTROWS(VALUES(_Date[Month])) VAR _Concat = CONCATENATEX(VALUES(_Date[Month]),[Month],",") RETURN IF(_Count>2,"Multiple Selection",_Concat)
OwenAuger
Super User
7 years agoHello Augustin,
I think CONCATENATEX is going to do what you want. CONCATENATEX iterates over a table and concatenates a text expression evaluated for each row of the table. In particular, you can use CONCATENATEX with VALUES to concatenate distinct values from a column.
You could write a measure like this to create a comma-separated string of Nationality values.
SelectedNationalities =
CONCATENATEX (
VALUES ( data[Nationality] ),
", "
)
Is that what you were looking for?
Regards,
Owen