Forum Discussion
Card shows multiple selections rather than just one
- 5 years ago
Hi Anonymous
Create a measure as:
Measure = CONCATENATEX( VALUES('Table'[Number]), CALCULATE( MAX('Table'[Number]), 'Table'[Alphabet] IN FILTERS('Table'[Alphabet])),"," )Here is the output:
Here is the demo, please try it: Card shows multiple selections rather than just one
Best Regards,
Link
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous , Create measure like these and use
Measure = if( countx(allselected(Table), Table[Alphabet]) >1, "Multiple Selected", "Single Selected")
Value selected
concatenatex(allselected(Table), Table[Alphabet] , " , ")
concatenatex(Table, Table[Alphabet], " , ")
Hi is it possible to show the number (i.e 1 or 2) instead of 'single selected'. Thanks
- amitchandak5 years ago
Super User
Anonymous ,
this will give number
so use this
countx(allselected(Table), Table[Alphabet])
or create any combination
Measure =
var _cnt = countx(allselected(Table), Table[Alphabet])
return
if( _cnt >1, _cnt & "" , "Single Selected")
- Anonymous5 years agoNot applicable
hi i realized that using countx is wrong as countx counts duplicates as well. Is there a way so that even though A and B are selected, the card will display "1" instead. Thanks
- amitchandak5 years ago
Super User
Anonymous , distinctcount(Table[Alphabet]) , should do in that case