Calculation In A Report

G

Guest

I have a report based on a table which is grouped by a field called Department.

I want the totals of each department as a percentage of the total number of
records

=count([department]) in the Department footer gives me the total of each
department. How can I express this as a percentage of the total number of
records in the table?
 
D

Duane Hookom

If "in the table" is the same as "in the entire report", add a text box to
the Report Header section:
Name: txtCountAll
Control Source: =Count([Department])
Then in your department footer, you can use:
Control Source: =Count([Department])/txtCountAll
 
G

Guest

That is great - thank-you very much - works EXACTLY as I want it to!!
Duane you rock

Duane Hookom said:
If "in the table" is the same as "in the entire report", add a text box to
the Report Header section:
Name: txtCountAll
Control Source: =Count([Department])
Then in your department footer, you can use:
Control Source: =Count([Department])/txtCountAll
--
Duane Hookom
MS Access MVP

MIckeyLove said:
I have a report based on a table which is grouped by a field called
Department.

I want the totals of each department as a percentage of the total number
of
records

=count([department]) in the Department footer gives me the total of each
department. How can I express this as a percentage of the total number of
records in the table?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top