I am trying to use DSum in a calculated control in a report to work out a variance.
The report is running off a standard select query over 2 crosstab queries and is as follows.
=DSum("1","BHtest1CrossQueryRep","LD"='AOP')
I am trying to get the Sum of field [1] in query [BHtest1CrossQueryRep] where [LD] = AOP
When I run it like this it works fine.
=DSum("1","BHtest1CrossQueryRep"
so it seems to be my criteria selection that is screwed up.
I eventually want it to be something like this
=(DSum("1","BHtest1CrossQueryRep","LD"='AOP')-(DSum("1","BHtest1CrossQueryRep","LD"='ACT'))/(DSum("1","BHtest1CrossQueryRep","LD"='ACT'))
to give me a % difference.
If anyone can help or suggest a better solution I would be greatful.
Cheers
The report is running off a standard select query over 2 crosstab queries and is as follows.
=DSum("1","BHtest1CrossQueryRep","LD"='AOP')
I am trying to get the Sum of field [1] in query [BHtest1CrossQueryRep] where [LD] = AOP
When I run it like this it works fine.
=DSum("1","BHtest1CrossQueryRep"
so it seems to be my criteria selection that is screwed up.
I eventually want it to be something like this
=(DSum("1","BHtest1CrossQueryRep","LD"='AOP')-(DSum("1","BHtest1CrossQueryRep","LD"='ACT'))/(DSum("1","BHtest1CrossQueryRep","LD"='ACT'))
to give me a % difference.
If anyone can help or suggest a better solution I would be greatful.
Cheers