Forum Discussion
many to many relationship
- 8 years ago
It might pay to keep company as a separate lookup table as you may have companies that can appear in multiple regions/countries.
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.
- jokkegian8 years agoFrequent Visitor
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?
- Phil_Seamark8 years ago
Microsoft Employee
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.
- jokkegian8 years agoFrequent Visitor
Phil_Seamark great!
Now i will also filter on company and a company occurs serveral times in a region and country