I have a report that is grouped by Emp and Weeks
I have created a formula that calculated an average.
@vpg
sum ({@SalesVol}, {PAYABLES_LEDGER.PAY_WK})/Count ({@in period counter}, {PAYABLES_LEDGER.PAY_WK})
This works fine and calculates correctly for all emp
The problem is in my @sumavg...
Hi LB,
Group 1 Emp_Id in Main report and sub report
Group 2 @Week in Main and Sub
tourb in main report located in GF3 Main: WhilePrintingRecords;Shared numberVar tourb := Count ({@in period counter}, {PAYABLES_LEDGER.PAY_WK})
totala in sub located in GF3 Main: WhilePrintingRecords;Shared...
New Problem:
I thought I solved the problem but now I my new formula field is adding the @test value for each employee.
Emp 1 vpgpass $ 1288.
Emp 2 @vpgpass $3446.
should be $2158. but this is adding 1288. to 2158. to get a value of 3446.
@test= whileprintingrecords;
shared currencyvar test...
I lB,
I was able to add an additional sub report and pull the next second record to get my value. It takes the report longer to run but worked.
Thanks for your help!
MaryBeth
MaryBeth
Ian,
vpg:
whileprintingrecords;
shared Currencyvar totala;
shared numbervar tourb;
currencyvar VPG;
VPG := if tourb = 0 then 0 else totala/tourb;
VPG
i have this in the sub looking at the main report field totala and tourb
Thanks, Mary
MaryBeth
Unfortunately no.
I added an additional footer and placed it there and it still picks up only the second record for a total.
Here's my formula for vpgpass in subreport:
whileprintingrecords;
shared currencyvar vpgpass := {@VPG}
here's the one in my main report avgvpg...
have a report with a subreport. The sub report is grouped by empid and payweek. the main report is also grouped the same way. I created a formua in the sub that passes to the main. On the main report it calculates correctly for each empid and payweek.
My problem is when I try to add the...
I have a report with a subreport. The sub report is grouped by empid and payweek. the main report is also grouped the same way. I created a formua in the sub that passes to the main. On the main report it calculates correctly for each empid and payweek.
My problem is when I try to add the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.