Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to calculate grand totals

Status
Not open for further replies.

dev777

Technical User
Dec 8, 2009
24
US
Hi,

I have two groups
Group I - Program
Group II - Type

2007 ratio -> {Val.2007Total}/{Val.2007Count}
2008 ratio -> {Val.2008Total}/{Val.2008Count}

My report looks like this,
----------------------------------------------------
Program Type 2007 ratio 2008 ratio
----------------------------------------------------
Physical Claim 70% 55%
Pending 70% 45%

Marketing Claim 60% 85%
Pending 60% 70%

Totals Claim ?? ??
Pending ?? ??


So, what i did in report footer is
For Claim -> If Uppercase({Val.Type})= "CLAIM" THEN
{Val.2007Total}/{Val.2007Count}

For Pending -> If Uppercase({Val.Type})= "PENDING" THEN
{Val.2007Total}/{Val.2007Count}


But am getting 0% (zeros)

Please reply..

Thanks


 
Create formulas like this:

//{@2007tot}:
if Uppercase({Val.Type})= "CLAIM" THEN
{Val.2007Total}

//{@2007cnt}:
if Uppercase({Val.Type})= "CLAIM" THEN
{Val.2007Count}

//{@Total2007}:
sum({@2007tot})%sum({@2007cnt})

Create similar formulas for "Pending" for 2007 and then create a second set of claim and pending formulas for 2008.

-LB
 
NO, Its not working..
Its also displaying 0(zeros)..
 
Have you tried increasing the decimals and clicking on the % icon?

-LB
 
Please show me what you did in trying to implement my suggestion, as it should work. Show the content of the formulas you used.

-LB
 
Its working..
I apologise for da mess..
I wrote
if Uppercase({Val.Type})= "CLAIM" THEN
Sum({Val.2007Count}) // instead of {Val.2007Count}


Its working fine now... I rectified it...

Thank you very much...
 
You mean you changed it to remove the summary? Because you can't use the summary in the conditional formula and get the correct result.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top