I need a grand total on the following formula (running totals will not work - it does not look at my conditions , so the running total is incorrect):
the name of the formula below is MeterUsage
IF COUNT ({work_order_test;1.Meter}, {work_order_test;1.EquipNumber})> 1
THEN
(IF (MAXIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}) -
MINIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}))> 0
THEN(MAXIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}) -
MINIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}))
ELSE 0.00)
ELSE
IF COUNT ({work_order_test;1.Meter}, {work_order_test;1.EquipNumber})= 1
THEN
(IF (MAXIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}) -
MINIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}))> 0
THEN(MAXIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}) -
MINIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}))
ELSE 0.00)
ELSE
MAXIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}) -
MINIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber})
the name of the formula below is MeterUsage
IF COUNT ({work_order_test;1.Meter}, {work_order_test;1.EquipNumber})> 1
THEN
(IF (MAXIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}) -
MINIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}))> 0
THEN(MAXIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}) -
MINIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}))
ELSE 0.00)
ELSE
IF COUNT ({work_order_test;1.Meter}, {work_order_test;1.EquipNumber})= 1
THEN
(IF (MAXIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}) -
MINIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}))> 0
THEN(MAXIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}) -
MINIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}))
ELSE 0.00)
ELSE
MAXIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber}) -
MINIMUM({work_order_test;1.Meter},{work_order_test;1.EquipNumber})