Forum Discussion
Lily36876
4 years agoHelper II
How to do like SQL JOIN in dax
Hi I have two table data model like pic below, I want to create a column at left table ,count by [ShopNo] and Gds[QtyTot] from right table , meaning for A shop Product A have Owe 3qty for customer ...
tamerj1
4 years agoCommunity Champion
Hi Lily36876
please try
OweQty =
SUMX (
FILTER (
'Owe Orders',
'Owe Orders'[ShopNo] = EARLIER ( 'Sho Inventory'[ShopNo] )
&& 'Owe Orders'[GdsNO] = EARLIER ( 'Sho Inventory'[GdsNO] )
),
'Owe Orders'[QtyTot]
)- Lily368764 years agoHelper II
Hi Thanks For your Reply,I think I got success!!!