Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi All,
I would like to create table that summarize my data:
| Name | Status | Code |
| Anna | Y | 1 |
| Anna | Y | 2 |
| Mark | Y | 3 |
| Anna | N | 4 |
| Anna | Y | 2 |
| Mark | Y | 3 |
to following format:
| Name | Codes |
| Anna | 1, 2 |
| Mark | 3 |
So the task is to create column thats joins distinct values with Status=Y from column Code to one String for each value in column Name.
Do you know is it possible to create using only DAX?
Solved! Go to Solution.
If you want to create a computed table, then use this (replace tbl with your table name)
SUMMARIZE(CALCULATETABLE(tbl, tbl[Status]="Y"),[Name],"Codes", CONCATENATEX(VALUES(tbl[Code]),[Code], ","))
If you want to create a computed table, then use this (replace tbl with your table name)
SUMMARIZE(CALCULATETABLE(tbl, tbl[Status]="Y"),[Name],"Codes", CONCATENATEX(VALUES(tbl[Code]),[Code], ","))
Thank you 🙂
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |