Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Karl-D
Helper I
Helper I

Build Order Summary using CONCATENATEX?

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],",")

 

 

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Karl-D , if tables are already joined , try like

 

DeptListMeasure = CONCATENATEX(values('Department'),'Department'[DepartmentDesc],",")

 

or like

 

DeptListMeasure = CONCATENATEX( Summarize('Orders','Department'[DepartmentDesc]),[DepartmentDesc] ,",")

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Karl-D
Helper I
Helper I

@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] ,",")

 

amitchandak
Super User
Super User

@Karl-D , if tables are already joined , try like

 

DeptListMeasure = CONCATENATEX(values('Department'),'Department'[DepartmentDesc],",")

 

or like

 

DeptListMeasure = CONCATENATEX( Summarize('Orders','Department'[DepartmentDesc]),[DepartmentDesc] ,",")

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.