Forum Discussion
Poovarasan
5 years agoFrequent Visitor
DAX Many to Many
I have a two tables with Many-To-Many relationship, Here's the screenshot for two tables
Table1:
Table2:
I need to create measure like this
Sum of rate = Sumx(Table1,IF(Table1'Year&month'>=Table2'Year&Month',Table1'Rate',0)
I have tried to use RELATED function here but not helping for this senario
10 Replies
- Samarth_18
Community Champion
- PoovarasanFrequent Visitor
- NidhiBhusari
Helper IV
Hi Poovarasan try changing the relationship between the two table to Many - To - One.
- PoovarasanFrequent Visitor
Hi, NidhiBhusari
Yeah, I tried but both table ID column has duplicate value when i try to change it Power BI will not accept Many-To-One relationship
Thanks
Poovarasan
- NidhiBhusari
Helper IV
Poovarasan Try to create a bridging table between two tables and then set relationship many - to - one.
or can you share sample file? Let me try once