Forum Discussion
How to filter on a field shared between tables
User7664 , One option is merge these tables into one.
https://radacad.com/append-vs-merge-in-power-bi-and-power-query
The second is to create a Date Table and common region table and any other common table required and use the tables
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
refer- https://www.sqlbi.com/articles/the-importance-of-star-schemas-in-power-bi/
- User76645 years ago
Helper I
Thanks Amit,
I watched your video, very helpful! I wouldnt have thought of using distinct and union. I will work on this tomorrow.
I do have two questions tho.
- How would a many to many relationship work? Would it not work at all in this case? In your example if you did a many to many relationship on CityID would it not work?
- Are there any cleaner options (that dont involve merging the tables)? If you have 5 or so items that are common on all the tables that is 5 additional tables that need to be created. It will just end up been quite messy.
Thanks again. Great video and great help!
- v-jingzhang5 years ago
Community Support
Hi User7664
There are some videos about many-to-many relationships that may be helpful.
Is MANY TO MANY, too many? | Power BI many to many relationships explained - YouTube
Looking at Power BI Many to Many - YouTube
Document:
Many-to-many relationships in Power BI Desktop - Power BI | Microsoft Docs
In my practise, sometimes many-to-many relationship will cause some confusions in calculation so I will check the result manually to ensure it is working well when I apply it in my model. What's more, you need to pay attention to the cross-filter direction in relationships. It will also influence the result.
Usually the Dim tables (or bridge tables) only contain distinct values and will not occupy too much data size.