G
Guest
I'm using below expression to calculate the revenue of a given volume.
However I can't get Access to calculate accoring to below. The IIf statement
works in the sense that when the volume is below Volume Level 5 the
expressions returns 0 but otherwise it doesn't return anything. Is there
anything apparently wrong with this expression?
=IIf([Vol 2006 Q1]>[Volume Level 5];((([Vol 2006 Q1]-[Volume Level
5])*[Price Interval 5-])+(([Volume Level 5]-[Volume Level 4])*[Price Interval
4-5])+(([Volume Level 4]-[Volume Level 3])*[Price Interval 3-4])+(([Volume
Level 3]-[Volume Level 2])*[Price Interval 2-3])+(([Volume Level 2]-[Volume
Level 1])*[Price Interval 1-2])+(([Volume Level 1])*[Price Interval 0-1]));0)
As I will continue to build such expressions over a period of time to
calculate volume discounts I also wonder if there are any limitations in
Access with regard to this that I should aware about.
Many thanks in advance / Johan Belfrage
However I can't get Access to calculate accoring to below. The IIf statement
works in the sense that when the volume is below Volume Level 5 the
expressions returns 0 but otherwise it doesn't return anything. Is there
anything apparently wrong with this expression?
=IIf([Vol 2006 Q1]>[Volume Level 5];((([Vol 2006 Q1]-[Volume Level
5])*[Price Interval 5-])+(([Volume Level 5]-[Volume Level 4])*[Price Interval
4-5])+(([Volume Level 4]-[Volume Level 3])*[Price Interval 3-4])+(([Volume
Level 3]-[Volume Level 2])*[Price Interval 2-3])+(([Volume Level 2]-[Volume
Level 1])*[Price Interval 1-2])+(([Volume Level 1])*[Price Interval 0-1]));0)
As I will continue to build such expressions over a period of time to
calculate volume discounts I also wonder if there are any limitations in
Access with regard to this that I should aware about.
Many thanks in advance / Johan Belfrage