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

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.

Reply
A9kurs
Frequent Visitor

Need help in mapping and showing multiple values if exists

Hi Everyone,

 

Need help , I have two table ID and PM , In ID table there are two columns and "Item" & "Item Desc". Items are unique in this table.

PM table has columns "Item" & Co .  In this there are duplicate Items and some of them have diffrent Co . I want to show Items from ID table and co from PM table but if there are multiple Co then show them by comma seprated.

 

ID:

Item Item Desc
100dadsd
105sadd
110asdd
115dsad
120dasd
125adsda
130wsad
135uy
140j
145fdget
150ewrtwe

 

PM:

Item Co
100220
100420
105220
105420
105421
105422
105423
110220
110420
110421
110422
115220
120220
125420
125220
125420
125421
130422
130423
130220
135420
135421
135422
135220
140421
145422
150220

 

Output: 

 

Item Item DescCo
100dadsd220 , 420
105sadd220,420,421,422,423
110asdd220,420,421,422
115dsad220
120dasd220
125adsda220,420,421
130wsad220,422,423
135uy220,420,421,422
140j421
145fdget422
150ewrtwe220

 

please help and appreciate if you can send Pbix.

 

Thanks in advance.

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@A9kurs 

Assuming the tables are joined on Item, you can use a measure like this.

 

Co List = IF ( HASONEVALUE ( 'ID'[Item] ), CONCATENATEX ( DISTINCT(PM[Co]),PM[Co],", ") )

 

jdbuchanan71_0-1683731395679.png

I have attached my sample file for you.

 

View solution in original post

1 REPLY 1
jdbuchanan71
Super User
Super User

@A9kurs 

Assuming the tables are joined on Item, you can use a measure like this.

 

Co List = IF ( HASONEVALUE ( 'ID'[Item] ), CONCATENATEX ( DISTINCT(PM[Co]),PM[Co],", ") )

 

jdbuchanan71_0-1683731395679.png

I have attached my sample file for you.

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.