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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
gbarr12345
Post Partisan
Post Partisan

Relationship issue

Hi there,

 

I have data in excel that I've imported into Power BI.

 

The only issue is that both of the data is transactional data and I need them to connect.

 

The only relationship I can only do is a Many to Many which I know isn't reliable.

 

gbarr12345_0-1724205022999.png

 

 

Can anybody help me in fixing the relationships please if possible?

 

I have attached the sample PBIX and sample data I created which mirrors the data I was provided (with different headings and numbers of course). Please see below:

 

PBIX - https://drive.google.com/file/d/10yZDO4Q7RqrIw02WPlZ0fglhcrtiMpCi/view?usp=drive_link

 

Excel - https://docs.google.com/spreadsheets/d/1ot6UL-7Hmbz0YHxxDhxSMaOMYyAKj3lb/edit?usp=drive_link&ouid=11...

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @gbarr12345 

o answer your question, it's necessary to understand the logic behind what you're trying to do, as it’s not clear at this moment.

On a technical level, the tables appear to have the same structure, so it’s unclear why you’re not performing a union (combining them vertically with a classified column if they represent different actions). The many-to-many relationships that have been created are due to the lack of a unique key for each table. Technically, you could address this by creating a bridge table, but that’s only part of the solution, as it’s not clear what you’re trying to achieve logically.

More information about many-to-many and bridges tables is here :

https://www.youtube.com/watch?v=aPLaun-tTgQ

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @gbarr12345 

o answer your question, it's necessary to understand the logic behind what you're trying to do, as it’s not clear at this moment.

On a technical level, the tables appear to have the same structure, so it’s unclear why you’re not performing a union (combining them vertically with a classified column if they represent different actions). The many-to-many relationships that have been created are due to the lack of a unique key for each table. Technically, you could address this by creating a bridge table, but that’s only part of the solution, as it’s not clear what you’re trying to achieve logically.

More information about many-to-many and bridges tables is here :

https://www.youtube.com/watch?v=aPLaun-tTgQ

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Thanks very much for your help Rita! Much appreciated!

Happy to help☺️

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.