Hi guys, I have a query that is trying to calculate a tax amount based on invoice value, but is variable depending on a customer tax code.
So if a customer has tax code A,( this info is stored in the customer table) then tax is 17.5%, if tax code is X then it is zero but i still need to show both record in the output.
Tried this, forget the calculation just simplified it for reading
:IIF([taxcode]=A,([value]+17.5%),value)
Value being the invoice total from my invoice table. So if the tax code is =A i want the calculation done if not i want just the value from the invoice table.
It don't work! Any tips very welcome.
Thanks in advance.
So if a customer has tax code A,( this info is stored in the customer table) then tax is 17.5%, if tax code is X then it is zero but i still need to show both record in the output.
Tried this, forget the calculation just simplified it for reading
:IIF([taxcode]=A,([value]+17.5%),value)
Value being the invoice total from my invoice table. So if the tax code is =A i want the calculation done if not i want just the value from the invoice table.
It don't work! Any tips very welcome.
Thanks in advance.
