Forum Discussion
AliceW
Power Participant
4 years agoNatural Left Outer Join in DAX?
Hello everyone, This should be simple, but I can't find a solution, so I turn to you, kind strangers :0) I need to merge two tables using NATURALLEFTOUTERJOIN. I need this in DAX instead of PowerQu...
- 4 years ago
Try this:
Left Outer = var SPLITTABLE = SELECTCOLUMNS(Splits,"Opp ID",Splits[Opp ID]+0,"Split Owner", Splits[Split Owner]) var PRODTABLE = selectcolumns(Products,"Opp ID", Products[Opp ID]+0,"Parent Product", Products[Parent Product]) return NATURALLEFTOUTERJOIN(PRODTABLE,SPLITTABLE)Outcome as below:
AliceW
Power Participant
4 years agoI have the same data type for the column I wish to use as a joiner... Not sure about the meaning of 'data lineage'...
PC2790
Community Champion
4 years agoTry this:
Left Outer =
var SPLITTABLE =
SELECTCOLUMNS(Splits,"Opp ID",Splits[Opp ID]+0,"Split Owner", Splits[Split Owner])
var PRODTABLE =
selectcolumns(Products,"Opp ID", Products[Opp ID]+0,"Parent Product", Products[Parent Product])
return
NATURALLEFTOUTERJOIN(PRODTABLE,SPLITTABLE)
Outcome as below:
- AliceW4 years ago
Power Participant
Thank you so much, PC! Not sure why that pesky +0 was needed to 'break the lineage', but it works!!
- udayravi3 years agoNew Member
Hi,
Suppose, Performed left outer join Table having one more column like Id.
The Id Column should be join with more than one table. is it possible ?
I believe it perform join with one table only.