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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.

Top Solution Authors