Forum Discussion
Comma separated value for same rank in table
- 3 years ago
Thank you for your feedback, and please check the below picture and the attached pbix file whether it suits your requirement.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new table.
New Table =
ADDCOLUMNS (
DISTINCT ( Data[Rank] ),
"@CompanyList", CALCULATE ( CONCATENATEX ( Data, Data[Company], ", " ) )
)
- pbiforum1233 years ago
Post 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_Kim3 years ago
Super 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- pbiforum1233 years ago
Post Patron
Jihwan_Kim Thanks a lot for this. I will check and let you know..
Since we are creating the the table in the Power BI itself will it work if we apply filter in the Slicer?