I am trying to find each line item of type "Return", and multiply the quantity by -1 if true, by +1 if false.
I am using the following expression in my databand filter:
Code: Select all
IIF((Table1.InvHistoryTypesInvHistoryType == "Return"), ((Decimal)Table1.InventoryHistoryQuantityChange * (-1)), ((Decimal)Table1.InventoryHistoryQuantityChange * (+1)))
What cast am I missing or doing wrong?
Thanks,
David