Forum Discussion
Rearrange table by grouping values in columns
Hi arthur_mq
I'm not sure how to "number each item" but sorting is handled with CONCATENATEX's optional parameters. Can you explain this numbering?
(I would probably wait to see what Ashish_Mathur can come up with using a Power Query approach since this CONCATENATEX() usage is very limited and mainly for display purposes.)
Hi gmsamborn
I modified the DAX formula to add a number to each item and sort them, but the sorting is not working. Any ideas?
Vertical List_M =
CONCATENATEX(
'Table',
" (" & FORMAT(RANKX('Table', 'Table'[Item],,ASC), "0") & ") "& 'Table'[Item] & UNICHAR(10) & UNICHAR(10)
)
- gmsamborn2 years agoSuper User
Hi arthur_mq
Would something like this help?
Vertical List_M = CONCATENATEX( 'Table', " (" & FORMAT( RANKX( 'Table', 'Table'[Item], , ASC ), "0" ) & ") " & 'Table'[Item], UNICHAR( 10 ), -- Separator (otpional) , -- Sorting expression (optional) ASC -- Sorting direction (optional) )I'm not sure that will work and am pretty much out of ideas. Like I mentioned earlier, this method has limited usefulness.