Forum Discussion
Crossfiltering / Measure / Many-to-many with a bridge table
Dear Members of the Power BI Community
I am stock with the following case, hopefully somebody can give me a hint.
Initial situation
I have a dimCalender table and a second table with events "Eventtable". The goal is to filter the Eventtable respectively the time period by the date. So far so easy, each event has a start and end date. To avoid a many to many relationsship, I created a bridge table as a calculated table with the DAX-Code below:
All trials so far ended in the message that a measure is not able to show several values. But out of my actual understanding I have the feeling that this is more out of a lack of skills from my side than from dax and the possibilities from DAX.
Thanks for your support and tipps
Mike
4 Replies
- amitchandak
Super User
Anonymous , the Bridge table should be on 1 side not many.
What you need here? See if the blog or attached file can help
- AnonymousNot applicable
Hi amitchandak
Unfortunately this is not what I am looking for. The goal is visual table with the values "Start Date", "End Date" and "Title". What I am looking for is a possibility to switch the filtering from m:1 to a bidirectional relationship. The examples you attached in your comment have the target to calculate the amount of days. My goal is to have the dates and the title filtered by the dimTable.
Best regardsMichael
- johnt75
Super User
Set the relationship between the bridge table and the event table to be bidirectional. That way the filters will flow from the date table to the event table but they will not flow in the other direction as the relationship from date to bridge remains single directional
- AnonymousNot applicable
Hi johnt75
Unfortunately not possible because of circular dependencies with another table. Like I already mentioned there must be a solution with the function crossfilter or a function with a similar behaviour.
Best regards
Mike