Hi, I need to make a report which need to calculate with two different prices.
Price 3,33 USD for the first 10000 trx within a month
Price 2,22 for 10001 - 20001 trx within same month
Price 1,11 for 20001 + trx within the same month
I have tried following:
|accum Trx as Accum_trx |EVAL Charge=if(Accum_trx <10000,3.33, if(Accum_trx>10001 AND Accum_trx<20001,2.22, 1.11))
If Accum_trx are
3444
7000
9500
10500
the search will calculate 9500*3.33
and 10500 minus 9500 = 1000*2.22
I need to calculate 500 * 3.33 and 500 * 2.22 instead.
How do I accomplish this?