Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I'm struggling with sorting a concatenated text value stored in a measure. I have a table of data used for voting statistics. One requirement that I'm dealing with is taking vote totals and displaying them in a concatenated string. The results are as shown...
I've acheived this view using the following DAX:
Anyone have any ideas? Can't seem to wrap my head around it. Unfortunately I cannot supply any data samples
Solved! Go to Solution.
Try using the order by argment in CONCATENATEX.
I think it works like this:
VAR ValueCounts =
SUMMARIZE (
'Supply Chain Committee Votes Details',
'Supply Chain Committee Votes Details'[VoteChoice],
"@Count", COUNTROWS ( 'Supply Chain Committee Votes Details' )
)
RETURN
CONCATENATEX (
ValueCounts,
FORMAT ( [@Count], "(#) " ) & 'Supply Chain Committee Votes Details'[VoteChoice],
" ",
[@Count], DESC
)
Thank you! That worked. I see where I was going wrong.
Try using the order by argment in CONCATENATEX.
I think it works like this:
VAR ValueCounts =
SUMMARIZE (
'Supply Chain Committee Votes Details',
'Supply Chain Committee Votes Details'[VoteChoice],
"@Count", COUNTROWS ( 'Supply Chain Committee Votes Details' )
)
RETURN
CONCATENATEX (
ValueCounts,
FORMAT ( [@Count], "(#) " ) & 'Supply Chain Committee Votes Details'[VoteChoice],
" ",
[@Count], DESC
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |