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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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