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
jokkegian
Frequent Visitor

many to many relationship

does someone know a solution for this many to many relationship?

Every column in the 2 tabels is many to many.

I find no solution for this. I will also filter these 2 tabels together.many.PNG

1 ACCEPTED SOLUTION

It might pay to keep company as a separate lookup table as you may have companies that can appear in multiple regions/countries.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

5 REPLIES 5
Phil_Seamark
Employee
Employee

Hi @jokkegian

 

Create a separate table with every unique possible Type.  And link the two existing tables to it and use the new table in slicers (will filter both tables on the many side).

 

Repeat for other columns as necessary.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hi @Phil_Seamark 

Thank you for your answer, it works.

But now if i filter first on country and then on regions then i see all the regions in the table (not only the regions from the selected country)

How can i fix this?

 

 

Why not combine the Country and Region into a single table with two columns.

 

I assume every region belongs to a country.

 

Make sure the regions in your new lookup table is unqiue and create a relationship between Region and your other tables.  Then you can slicer on country, or region in your new table and it will make more sense.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

@Phil_Seamark great!

Now i will also filter on company and a company occurs serveral times in a region and country

It might pay to keep company as a separate lookup table as you may have companies that can appear in multiple regions/countries.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

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.