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.
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?
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?
- Jihwan_Kim3 years ago
Super User
Hi,
Thank you for your feedback.
I don't think it will work if the slicer is created in the visualization tab. In this case, I think table visualization has to be created, and this approach will be more suitable. But, because I do not know what types of slicer you are going to create, please try.
Thanks.
- pbiforum1233 years ago
Post Patron
Jihwan_Kim Thanks a lot for your help! Yes we need this table in the visual not in the query editor. In the visual they may have slicer like quarter, year, brand, etc...
Sorry if I did not explain the requirement cleary at first.
Any idea how this can be achieve in the visuals using the DAX?
Is it even achievable?