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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
dancarr22
Helper V
Helper V

Create subtable based on comma separated value in main table

Hello,

 

We are connecting to Dynamics 365 and - in several tables - we have multiselect pick lists.  i.e. When we enter a contact we can select multiple values of the 'contact type' for a given contact - example in table below.  John Smith is both a Salesperson and an Account Manager.

This contact field is displayed as a comma separated value in PBI table.  How can we break this out to display as a separate table?  We'd also want to have the contact name so can join back to main Contact table.  (In reality would use key/ID fields instead of name - thisis just for the example).

Appreciate any help you can provide.

 

 

Thanks,

Dan


PBI_Dynamics_CommaSeparated.PNG

1 ACCEPTED SOLUTION
HotChilli
Community Champion
Community Champion

Split the 'Contact Type' column on ','

Select the 'Contact Name' and Address columns.

Go to the Transform Menu.

Select 'Unpivot-> Unpivot other columns'

Tidy up the data

View solution in original post

2 REPLIES 2
HotChilli
Community Champion
Community Champion

Split the 'Contact Type' column on ','

Select the 'Contact Name' and Address columns.

Go to the Transform Menu.

Select 'Unpivot-> Unpivot other columns'

Tidy up the data

Thanks!  That worked exactly as needed!

Greatly appreciate your assistance.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.