Skip to main content
Solved

How to get 'totals' row on pivot table

  • Sep 17, 2026 3:47 PM UTC
  • 5 replies
  • 140 views

Forum|alt.badge.img+6

I am using a Pivot table to summarize student attendance records by month. The pivot table pulls from an ‘attendance’ table in which each record is a class session, and the students present are listed in a linked field.

 

The pivot table has rows of student names, and columns of class session dates. (screenshot attached). “1” indicates that student was present. Grey bar indicates absent.

 

I’m using these settings not exactly as intended, but this way makes the formatting most legible for staffmembers who aren’t versed in AirTable. 

 

Is it possible to display a total # students in each class session?

 

When I select ‘show totals’ in the pivot table settings, it shows the total # records, which doesn’t always equal the total # students present (See screenshot)

 

I’ve created a rollup field which calculates this number, but I can’t integrate that field into the pivot table. 

 

Any solutions

much appreciated.

 

 

Best answer by TheTimeSavingCo

Ahh, yeah, assuming you’re doing a ‘Count’ of the Values, then Airtable’s returning the total number of records for each date, which is 1, and so it’s actually working as intended there I’m afraid

If I were you I’d set up a new table where each record represents a single student for a single day, and then create an automation to automatically populate that table whenever the Fillout form gets submitted.  This’ll give you the data structure that the Pivot table expects and it’ll show up the way you like


As a kinda clunky workaround, you could try creating a formula field to output the text ‘Total’, a Count field to output the number of students, and another Pivot table under your existing one like so?

I’ve updated the original base with this as well

View original

5 replies

TheTimeSavingCo
Forum|alt.badge.img+32

Hm, could you perhaps share some screenshots of your table setup with some example data?

If it helps, I was able to generate a Pivot table that looks like this and you can find it here

And here’s how the data looks:


Forum|alt.badge.img+6
  • Author
  • Inspiring
  • Sep 18, 2026 1:05 PM UTC

​@TheTimeSavingCo Thanks for your response. My data is set up differently, since teachers add the attendance data through a Fillout Form. Each class session is one record. Screenshot below:

 

 

 

I suppose I could consider restructuring the data so it matches your example above. But I’d rather not...

 

 


TheTimeSavingCo
Forum|alt.badge.img+32

Ahh, yeah, assuming you’re doing a ‘Count’ of the Values, then Airtable’s returning the total number of records for each date, which is 1, and so it’s actually working as intended there I’m afraid

If I were you I’d set up a new table where each record represents a single student for a single day, and then create an automation to automatically populate that table whenever the Fillout form gets submitted.  This’ll give you the data structure that the Pivot table expects and it’ll show up the way you like


As a kinda clunky workaround, you could try creating a formula field to output the text ‘Total’, a Count field to output the number of students, and another Pivot table under your existing one like so?

I’ve updated the original base with this as well


Forum|alt.badge.img+6
  • Author
  • Inspiring
  • Sep 22, 2026 6:36 PM UTC

Thanks, I’m working on that automation and running into some questions I’ll post in a separate thread.


TheTimeSavingCo
Forum|alt.badge.img+32

Roger that!  If it helps, I’ve updated the original base with the automation and here’s how it looks in action: