
Originally Posted by
June7
This is easiest done on a report using Sorting & Grouping features with aggregate calcs in group and report footer sections.
Otherwise, need to do several queries and join the queries. Or nested subquery. So do aggregate query to get the total attendance, grouped as appropriate - maybe by account number or yrmo or whatever you are trying to get percentage of. Then join that query to other dataset, maybe an aggregate grouped by student and account number. This will put the total for each account next to each student/account total and now you can do a calculated field for the percentage.