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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
vishalcmehta
Regular Visitor

comma seperated ids - convert to names based on a mapping from a different table

Hi,

 

I have a Table A, which lists comma seperated ids. In a seperate Table B, we have a mapping between ID and app names. Is there a way I can convert comma seperated ids into app names as shown in the expected output below?

 

Table A:

 

seqNum

appID

a

2,3

b

1

c

1,3,4

 

Table B:

 

appID

appName

1

yahoo

2

google

3

hotmail

4

outlook

 

Expected Output:

Table A

seqNum

appID

appName

a

2,3

google,hotmail

b

1

yahoo

c

1,3,4

yahoo,hotmail,outlook

 

1 ACCEPTED SOLUTION
camargos88
Community Champion
Community Champion

Hi @vishalcmehta ,

 

I've created this file as an example: Download PBIX 

 

I hope it helps,

 

If you consider it as a solution, please mark as a solution and kudos.

Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hi @vishalcmehta ,

 

Additional to camargos88's reply, please refer to Concatenate, Merge or Combine multiple rows into one value - Power Query for Power BI

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

camargos88
Community Champion
Community Champion

Hi @vishalcmehta ,

 

I've created this file as an example: Download PBIX 

 

I hope it helps,

 

If you consider it as a solution, please mark as a solution and kudos.

Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.