Forum Discussion
pbiforum123
3 years agoPost Patron
Comma separated value for same rank in table
We have created the table with Rank like below. What Client is expecting is below. Instead of showing multiple rows for the same rank they want show only one row for the companies with s...
- 3 years ago
Thank you for your feedback, and please check the below picture and the attached pbix file whether it suits your requirement.
pbiforum123
3 years agoPost Patron
Jihwan_Kim We dont have Rank as a column. In our case it is a measure. In your case you are having it as a column?
Jihwan_Kim
3 years agoSuper User
Hi,
I tried to create a sample pbix file like below.
Please check whether it suits your requirement, or please share your sample pbix file's link with the desired result, and then I can try to look into it.
The below is for creating a new table.
New Table =
VAR _ranktable =
ADDCOLUMNS ( Data, "@Rank", RANKX ( Data, Data[Value],, DESC, DENSE ) )
VAR _newtable =
ADDCOLUMNS (
SUMMARIZE ( _ranktable, [@Rank] ),
"@CompanyList",
CONCATENATEX (
FILTER ( _ranktable, [@Rank] = EARLIER ( [@Rank] ) ),
Data[Company],
", "
)
)
RETURN
_newtable