Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |