I have a issue where I want to sum a specific rows in a table and not others
E.g.
Start Table
Col1 Col2 Col3 Col
25 25 100 200
27 27 100 200
26 25 100 200
25 25 100 200
Add if statement to remove row where Col1 <> Col 2
Col1 Col2 Col3 Col
25 25 100 200
27 27 100 200
26 25
25 25 100 200
Now I want to insert a sum
Col1 Col2 Col3 Col
25 25 100 200
27 27 100 200
26 25
25 25 100 200
-
- 300 600
But Busines Objects wants to show
Col1 Col2 Col3 Col
25 25 100 200
27 27 100 200
26 25
25 25 100 200
-
- 400 800
I have tried creating a flag if col 1 = col 2 then 1 else 0 and then tried to use this flag as a where in the sumeg sum col3 where flag = 0.
Doesn’t work
Any Suggestions ???
Grizzly-Law (BOB member since 2004-07-01)