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
fva6937
Frequent Visitor

Group and Subgroup table using non unique values

Sorry, couldn't even figure it out the correct vocabulary to ask 😞

 

I have a product table from the server that looks like this:

Product TableProduct Table

Group, Subgroup, and Subsubgroup are separate tables used to characterize the product.

 

Group TableGroup Table

Subgroup TableSubgroup TableSubsubgroup TableSubsubgroup Table

I'm not able to relate all of them due to the non-unique values. (there is no empty cell)

Any thoughts on how to make this work? 🙂 

 

 

 

1 ACCEPTED SOLUTION
MarkLaf
Super User
Super User

Add calculated columns that concatenate the IDs to get keys you can create a relationship on. If the IDs might be more than 1-digit ever, be sure to add delimiters.

 

I.e.

 

Subgroup Key = [Group ID]&"|"&[Subgroup ID]

Subsubgroup Key = [Group ID]&"|"&[Subgroup ID]&"|"&[Subsubgroup ID]

Note that you shouldn't have a problem creating relationship to the Group table with just [Group ID] - it's only the other two you have to do the above for.

 

View solution in original post

3 REPLIES 3
MarkLaf
Super User
Super User

Add calculated columns that concatenate the IDs to get keys you can create a relationship on. If the IDs might be more than 1-digit ever, be sure to add delimiters.

 

I.e.

 

Subgroup Key = [Group ID]&"|"&[Subgroup ID]

Subsubgroup Key = [Group ID]&"|"&[Subgroup ID]&"|"&[Subsubgroup ID]

Note that you shouldn't have a problem creating relationship to the Group table with just [Group ID] - it's only the other two you have to do the above for.

 

It worked! Thanks!!

 

The IDs are two digits. How do I add delimiters?

The example DAX I provided is already inserting | as delimiters. That's the '&"|"&' portion between the column references.

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.