Forum Discussion
Andrey28
6 years agoRegular Visitor
IF OR Statement
Hello, I have a pretty simple question. I am using Query editor to add a Custom column to my table. This column is called "True cost" and adjusts costs based on the Warehouse code by a factor of ...
- 6 years ago
Thanks. Looks like it worked. I just need to repeat each time [Warehouse Code] = before "or".
Ashish_Mathur
6 years agoSuper User
Hi,
Try this M code
=if [Warehouse Code] = "XXX" or "YYY" or "ZZZ" then [Total Transacted Cost]/2.5 else [Total Transacted Cost]
Hope this helps.
Andrey28
6 years agoRegular Visitor
Thanks. Looks like it worked. I just need to repeat each time [Warehouse Code] = before "or".
- Ashish_Mathur6 years agoSuper User
Yes, i missed that. You are welcome.