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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
I_NeedMorePower
Helper III
Helper III

Relations help

Hello Power community!

 

I want to create a 1 to * relation between two tables. for example the tables are:

Table 1: Items (YearID, BranchID, ItemID)

Table 2: Trasactions (YearID, BranchID, ItemID)

 

The relation should be Items 1 --------- > * Transactions

but the issue is, when I try to create the relation, it becomes many-to-many.

The reason for that is, in Items table, there is a field called YearID and BranchID. In each year and in each branch, the item IDs can be re-inserted each year and in each branch....So the item ID is not unique in its own table ITEM....

The same thing in TRANSACTIONS table, there is a YearID and BranchID.

 

So in order to workaound this issue, what should I do?

Should I create a new columns in each table with YearID + BranchID + ItemID and create the relation using it?

or should import the Year Table and Branch table and create multiple relations?

 

I have several tables in my dataset with this issue, so I don't know if I sould go with creating new columns as keys for the relations.

 

Any tips would be appreciated 🙂

 

Thanks in advance!

1 REPLY 1
AnthonyTilley
Solution Sage
Solution Sage

In my opinon i would have suggsted the concat colunms approach you mentioned. and join the two colunms. but this is only really suitable if you are using only these two tables and they are small data sets

 

If you will later want to beable to filter or calculate based on the year table or Branch table then you will need these tables anyway so would be best to go down the prefered route and bring these tables in and use them as a bridging table between your two tables above.

 

I always try to follow a rule that the least amount of calculated colunms is probabaly the best approuch 





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

Proud to be a Super User!




Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.