OK. I need to create a query
I need the following values:
unit price * quantity * (100 - "column discount value" * 0,01) * ("column portion value" * 0,01) = total price
But this is not possible:
Select T0.[Price] * T0.[Quantity] * (100 - T0.[Blocknum] * 0,01) * (T0.[Importlog] * 0,01) = total price
From RDR1 T0 INNER JOIN ORDR T1 ON T0.DocEntry = T1.DocEntry
Where T0.Linetotal = $[$4.0.0]
We don't need regular [Blocknum] and [Importlog]. So we can need it for our calculation.
How can it solve?
Thanks in advance!