Forum Discussion
Kmcdonald
4 years agoHelper III
IF Statement between Two Tables
Hi, I've got two tables, one is my transaction in MYOB and the other freight pick up details. The problem I've got is that, my freight sometimes has more than on order in the consignment and I n...
- 4 years ago
Hi, Kmcdonald ;
You could create a column as follows:
Column = var _1=[SO Number] return MAXX( CALCULATETABLE( VALUES('Freight'[Actual Pickup Date]), CONTAINSSTRING('Freight'[Sender References],_1)) ,[Actual Pickup Date])The final output is shown below:
Or create a measure as follows:
Measure = MAXX( CALCULATETABLE( VALUES('Freight'[Actual Pickup Date]), CONTAINSSTRING('Freight'[Sender References],MAX('MYOB'[SO Number]))),[Actual Pickup Date])The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
4 years agoSuper User
Kmcdonald , You can create a new column like in the transaction
maxx(filter(MYOB , MYOB [sender reference] = transaction[sender reference] && MYOB [SO Number] = transaction[SO Number] ) , MYOB[Actual Pickup Date])