Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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. |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 44 | |
| 41 | |
| 36 | |
| 21 |
| User | Count |
|---|---|
| 176 | |
| 120 | |
| 106 | |
| 77 | |
| 52 |