Calculation shows same number on every line

Maja

New member
Local time
Today, 13:58
Joined
Aug 26, 2010
Messages
6
Good morning,

I created two fields with calculations using the Expression Builder. However, both fields are returning the same number (in one case a percentage) for every line of the report. Formula #1 is: =Sum([Q -B and P Percentage]![B&P Actual Cost]/[Q - B and P Percentage]![Total Value]) - which is giving a 4.7% result on every line. Formula #2 is: =Sum([Q -B and P Percentage]![B&P Actual Cost]/[Q - B and P Percentage]![B&P Est Cost]) - which is giving the same dollar figure on every line.

Can anyone tell me what I've done wrong and how to fix it?

Many thanks,

maja
 
Depends whre you have the calculation. Is it in your detail section? You may ned to create the calculation in your underlying query and then refer to it in your report.
 
Yes, the formulas are in the detail section of the report. Will they work if I move them to the query?
 
Ok, I put all the calculations into the query and it worked....with 1 exception. I need to do the following calculation on 2 of the sums I put in the query to get the percentage field: B&P Actual / Total Value. However, when I create the expression in the report, nothing is showing up.
 

Users who are viewing this thread

Back
Top Bottom