Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have an "Orders" table which shows order lines.
I do not have an Order Header table.
Each [OrderNumber] may have multiple rows in the "Orders" table, representing different items from different departments.
"Orders" is related to "Department" on a DepartmentKey with a many to 1 relationship.
So I can create a visual that looks as follows.
Orders[OrderNumber] | Department[DepartmentDesc]
00001 | dept1
00001 | dept2
00001 | dept3
00002 | dept2
00002 | dept3
How can I create a measure such that each order only appears once and the results look as follows?
Orders[OrderNumber] | DeptListMeasure
00001 | dept1,dept2,dept3
00002 | dept2,dept3
I tried experimenting with CONCATENATEX but if I create the following measure in my Orders table, it shows every possible department after each order instead of only the departments that are part of each order.
DeptListMeasure = CONCATENATEX(RELATEDTABLE('Department'),'Department'[DepartmentDesc],",")
Solved! Go to Solution.
@Karl-D , if tables are already joined , try like
DeptListMeasure = CONCATENATEX(values('Department'),'Department'[DepartmentDesc],",")
or like
DeptListMeasure = CONCATENATEX( Summarize('Orders','Department'[DepartmentDesc]),[DepartmentDesc] ,",")
@amitchandak to the rescue again! Thanks so much. The second one with the Summarize is what I needed.
DeptListMeasure = CONCATENATEX( Summarize('Orders','Department'[DepartmentDesc]),[DepartmentDesc] ,",")
@Karl-D , if tables are already joined , try like
DeptListMeasure = CONCATENATEX(values('Department'),'Department'[DepartmentDesc],",")
or like
DeptListMeasure = CONCATENATEX( Summarize('Orders','Department'[DepartmentDesc]),[DepartmentDesc] ,",")
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 10 | |
| 10 | |
| 9 | |
| 8 |