Forum Discussion
Anonymous
1 year agoNot applicable
Help - Show when data doesnt match
Hi, Could you please create me a powerbi measure to filtre data to only show sales order numbers where the warehouse doesnt match the po numbers warehouse putting a Y for Mismatched and N for ma...
- 1 year ago
you can try this
Column =var _w=maxx(FILTER(Purchasing,Purchasing[Purchase order number ]=SalesOrdersItems[PO Number ]&&SalesOrdersItems[Order Number]=Purchasing[Sales Order number ]),Purchasing[Warehouse])return if( _w=SalesOrdersItems[Warehouse ],"Y","N")pls see the attachment below
Anonymous
1 year agoNot applicable
Hi, I got an error: The syntax for 'return' is incorrect. (DAX(maxx(FILTER(Purchasing,Purchasing[Order Number]=SalesOrdersItems[PO Number]&&SalesOrdersItems[Order Number]=Purchasing[Sales Order No]),Purchasing[Warehouse])return if( _w=SalesOrdersItems[Warehouse],"Y","N"))).
Anonymous
1 year agoNot applicable
Hi Anonymous ,
I reproduced your error below.
Your problem is that the var definition is missing. After adding "var _w=" and it worked.
Hope it helps.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.