Question : Applying group sum to higher level


I have a report in CR2008 where I'm applying a number of groupings and at the lowest grouping I'm calculating the number of orders met vs total orders grouped by month and charting the percentages.

-> percentage of orders met per month using:
sum({orders met},{date},"monthly")/sum({orders},{date},"monthly)

This seems to be working fine at city level but when I try to apply the same formula to the country group above, the formulas seem to break.

How do I summarize to the region and country levels while keeping the city level?


Answer : Applying group sum to higher level

Remove the quotes from:

set FileName="C:\Program Files\agent dir\agent.exe"

to be:

set FileName=C:\Program Files\agent dir\agent.exe

since we quote the variable in:

for %%A in ("%FileName%") do (

we don't need them in the set, and they will cause a problem.

Also, try adding the following ECHO in front of the IF statement, like:

    ECHO B=[%%B], MatchDate=[%MatchDate%]    
    if "%%B"=="%MatchDate%" exit /b

so we can see what the dates are it's comparing

Random Solutions  
programming4us programming4us