We are implementing deski reports which run on Free hand sql. Now there is a certain calculation which i want to be done in the front end.
Eg
Col A Col B ColC ColD ColE
CHX 1 45 20 05
CHX 1 15 35 45
CHX 0 10 10 05
Total ---- 50 45 45
ie Total (for column C) ---- (Sum of Column C where Column B is 1) - (Sum of Column C where Column B is 0)
where col A is
Col B is a
ColC, Col D, Col E are measures
Similarly for other columns too .
How do i do this in BO. Also I am breaking on ColumnA ie Totals are obtained for each in Column A.
Prompt help would be very much appreciated,
Thanks,
M
Appreciate the prompt reply jac,
but i tried putting it in and i get the Overall Total when i put the formula, not the difference Ie for ColC rather than getting 50 (45+15 - 10) I actually get 60 ( 45+15+10).
THe reason could be that i am breaking on the Column A and column C,D,E are deduped in the Free hand sql and this does not get accounted for when i am putting in the formula.
Now I found that i can get the SubTotal Col C when ColB = 1 and SubTotal Col C when ColB = 0 but these occur at the previous rows of Col C…ie
Subtotal AUS 1 9
Total AUS — 9
Change AUS — 9 —same as total flag is only one value
CAL 0 2
CAL 0 1
Subtotal CAL 0 3
Total CAL – 3
Change CAL – 3—same as total if only one flag value
“Change” value is what i require .
Further colC is deduped at the Total and Subtotal ,so now when i put in the formula i get 48 not 32 as required. Is there anyway to solve this?