The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello
I have the data below:
A, 1
A, 2
A, 3
B, 1
B, 2
How can I specify the array for Column2 per value of Column1 and output it into a comma separated string in ascending order?
I.e.:
A; 1,2,3
B; 1,2
Thanks!
Solved! Go to Solution.
@Anonymous
Measure =
CONCATENATEX ( DISTINCT ( Table1[Col2] ), Table1[Col2], ",", Table1[Col2], ASC )
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Hi @Anonymous
1. Place Col1 on a table visual
2. Place this measure in the visual
Measure =
CONCATENATEX ( DISTINCT ( Table1[Col2] ), Table1[Col2], "," )
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Thanks, what is the orderby expression for ascending order please?
@Anonymous
Measure =
CONCATENATEX ( DISTINCT ( Table1[Col2] ), Table1[Col2], ",", Table1[Col2], ASC )
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |