Forum Discussion
arthur_mq
2 years agoFrequent Visitor
Rearrange table by grouping values in columns
Hi, I have a table that list items by date (ItemsTable below). Each date lists more than one item. I want to rearrange this table by grouping the dates in columns with their items listed below (Ite...
arthur_mq
2 years agoFrequent Visitor
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)
)
gmsamborn
Super User
2 years agoHi 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.