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

Help with a Percentage formula's in group footers 1

Status
Not open for further replies.

cyreports

Programmer
May 12, 2010
89
US
In my report, I have 3 Grouping Levels:

Group 1 - ApptDate
Group 2 - Resource
Group 3 - Financial Class

In each group footer, I am doing a Distinct Count of AppointmentId. What I need to do is calculate percentages and unsure how. In my Group 2 footer, I would like to have the percentage based off the Group 1 total. In my Group 3 footer, I would need the % based of the Group 2 total. In my Group 1 Footer, I would need the percentage based off the Total Distinct count. Does this make sense? Any help is appreciated.

 
//Grp3 footer:
distinctcount({table.apptID},{table.finclass})%distinctcount({table.apptID},{table.resource})

//Grp2 footer:
distinctcount({table.apptID},{table.resource})%distinctcount({table.apptID},{table.apptdate})

//Grp1 footer:
distinctcount({table.apptID},{table.apptdate})%distinctcount({table.apptID})

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top