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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
dparkinson
Advocate I
Advocate I

Extracting a field with multiple values to a new table.

This is related to my previous question and I'm wondering if there is a better way to do things.

 

Basically I have a database that stores data with muliple values in the same field, so for example, one record in the database will have multiple categories associated to it.  There is a lookup table, but I'm not sure how best to return the information in a usable way.

 

I'm thinking that it might be best to extract the values to a separate table, that way I can use the values for cross filtering / slicers etc.

 

Example tables:

 

 

Example Orders TableExample Orders TableLookup TableLookup Table

 

I'm wondering if I could create a table with a many-to-many relationship so it might look like this:

 

 

Example OrderCategories TableExample OrderCategories TableExample RelationshipExample Relationship

 

 

My questions are:

- do you think this would be overall beneficial?

- how do I create the new OrderCategories table from the existing Orders and Lookup tables?

 

 

 

Many thanks for any assistance.

Kind regards,

D.

 

 

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @dparkinson,

 

Yes, creating the OrderCategories table seems a better solution here.

 

And you can use the Split Column by Delimiter to Rows option in Query Editor to create the OrderCategories table.

 

1. Duplicate Order/Things table in Query Editor.

duplicate.PNG

2. Right click on the Categories/Thing Companies column, and choose Split Column by Delimiter.

split.PNG

3. Select "Comma", "Split into Rows" on the popup tab.

split2.PNG

4. Filter out Blank rows.

filterrows.PNG

5. Click Close&Apply.

close.PNG

 

Final relationship.

relation.PNG

 

Here is the modifed pbix file for your reference. Smiley Happy

 

Regards

View solution in original post

1 REPLY 1
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @dparkinson,

 

Yes, creating the OrderCategories table seems a better solution here.

 

And you can use the Split Column by Delimiter to Rows option in Query Editor to create the OrderCategories table.

 

1. Duplicate Order/Things table in Query Editor.

duplicate.PNG

2. Right click on the Categories/Thing Companies column, and choose Split Column by Delimiter.

split.PNG

3. Select "Comma", "Split into Rows" on the popup tab.

split2.PNG

4. Filter out Blank rows.

filterrows.PNG

5. Click Close&Apply.

close.PNG

 

Final relationship.

relation.PNG

 

Here is the modifed pbix file for your reference. Smiley Happy

 

Regards

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.