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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
mds123
Frequent Visitor

Does anyone have a recommendation for dealing with many to many relationships and dates?

The tables I have are:

  • A generic date table that lists every date and what year, quarter, month it's in.
  • An item master table that lists the individual items we sell.
  • A daily order table that lists the date and what items were sold.
  • A budget table that lists the item, month, and how many we would like to sell in that in that month. 

My goal is to compare actuals vs budget. However when I try to establish relationships with the date table for the budget table I get a many to many relationship and I worry about introducing duplicates and having wrong calculations. I'm guessing this is a common task people use Power Bi to solve, does anyone have a recommendation? 

 

1 ACCEPTED SOLUTION

If you are joining by the name of the month, then yes, you'll get that kind of relationship. I would suggest you in that case to create a generic end/start date for your months, for example, January -> 01/01/2023 or 31/01/2023 and use that column as the key to the relationship. My recommendation is to add that date from the source, if not possible, I can share you some tips on how to create it from scratch from Power Query.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
ray_aramburo
Super User
Super User

Date to Budget is a 1 to many relationship, it shouldn't be many to many. Check if you have any duplicate dates on the date table and delete them through Power Query. 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





The budget is by the month not the individual date so it causes many to many. 

If you are joining by the name of the month, then yes, you'll get that kind of relationship. I would suggest you in that case to create a generic end/start date for your months, for example, January -> 01/01/2023 or 31/01/2023 and use that column as the key to the relationship. My recommendation is to add that date from the source, if not possible, I can share you some tips on how to create it from scratch from Power Query.





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.