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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Many to many relationships

Dear all,

I created an excel that holds the hierarchy: country, region and then product.

Then, for each year I created in one excel, monthly, weekly and daily production data. I plan on reporting two years, so 2022 and 2023. Those years have the same products, the same regions and the same countries. Maybe year 2022 can have one additional product than the year 2023.

What is the best way to be able to create a relationship between years? So that the PowerBI end user can filter through years, months and dates from a single filter?

Npro_2-1678278895211.png

 

Thanks in advance and have a nice day!

 

 

1 ACCEPTED SOLUTION
HughLa
Resolver IV
Resolver IV

Hi @Anonymous 

 

The best practice would be have all of those yearly, monthly and weekly tables in one table and create a date dimension table with dates from 2022 to 2023. Then have the relationship between the date table and your transactions table.

 

This will allow you to drill down and expand into the date periods.

 

Hope this makes sense.

Hugh

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@HughLa Do you maybe have a solution to creating relationships, for example:

Monthly 2022 and Monthly 2023 contain the same column called Daily production. Since I would like to create a table that would list both Daily production's  - I would need to drag and drop two different columns. How can I merge them, or create a relationship between them? 

Anonymous
Not applicable

Actually, I understood it better now and tried your version. It worked. Thank you!

Anonymous
Not applicable

@HughLa Thank you, I think I understand. But the biggest problem is that my daily table for year 2022 has around 40 000 rows. So I believe, combining a few years (plus every table has calculations) would be too much for Excel.

HughLa
Resolver IV
Resolver IV

Hi @Anonymous 

 

The best practice would be have all of those yearly, monthly and weekly tables in one table and create a date dimension table with dates from 2022 to 2023. Then have the relationship between the date table and your transactions table.

 

This will allow you to drill down and expand into the date periods.

 

Hope this makes sense.

Hugh

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors