Forum Discussion
rainchong7401
3 years agoHelper III
Find Matching from Multiple Relationship Table
Hi Guys, I'm new to Power BI I hope anyone of you could help me out. Table 1 is my item ordered quantity. Table 2 is my transaction table which need to make sure quantity is received correctly...
tamerj1
3 years agoCommunity Champion
Hi rainchong7401
I guess the two tables are related one-many? If so please use
Partial delivery =
VAR RelatedTable2 =
RELATEDTABLE ( Table2 )
RETURN
IF (
SUMX ( RelatedTable2, Table2[Received Quantity] ) = Table1[Received Quantity],
MAXX ( RelatedTable2, Table2[Partial delivery date] )
)rainchong7401
3 years agoHelper III
Hi Tamerj,
This is many many relationship.
Table 1 primary key is SO
Table 2 primary key is SO too.
- tamerj13 years agoCommunity Champion
rainchong7401
Should also work