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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

% Of a field

Status
Not open for further replies.

KeertanaCR

Programmer
Oct 11, 2006
68
US
Hi All,

I have a report which is grouped by a field A. In this report i have a field B ( count of C calculated from Stored Proc). I need another field in the report which should be
% of B for each record. Which Means % of B ( with the total B)

So, I write a formula (B/sum(B,A))*100 to get the %of B.
Now I also need count of this % of B field.

Any ideas to solve this issue.

Thanks for ur help

Keertana
 
Please show some sample data. What do you mean by:

I also need count of this % of B field.

...since the count of the % of B will the same as the count of any field in the group. Do you mean you want to group and count by the value of % of B?

-LB
 

Sorry Sorry,

I need sum of this %of B field

Thank you
Mamata
 
Well, but the sum of B % of sum(B,A) will always be 100% at the A group level--no need to calculate.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top