Help

Re: How can I create a line chart of record counts over time?

Solved
Jump to Solution
209 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Aaron_Cole
5 - Automation Enthusiast
5 - Automation Enthusiast

I want to create a chart that shows record counts of a table over time.  In our case, we have a table of clients and want to show how the total number of clients has changed over time.  I have a "Created time" column and I can use the COUNT formula to get the current number of clients, but I'm not sure how to get that COUNT over time.

Any ideas?

1 Solution

Accepted Solutions

Hey @Aaron_Cole!

According to your description, you currently have a Clients table. Even if you have also created a Created Date field on it, that will not be enough to "aggregate" the count of clients per day. Airtable does not work like a spreadsheet.

In order to solve your issue:
1. As @TheTimeSavingCo mentioned, you need to create yet another table -in his example, it is called "Record Counts", or you could also call it "Days".
2. On this new table, you'll want to have the primary field (that of the far left) to be a "Date" field where you will have one record, with its corresponding date, for every single day of the year(s).
3. Also on this new table, you'll have to create a "Clients" field (which should be a "Link to another record" field type).
4. Now, for linking all historic clients to their corresponding date, you'll have to copy all values from the "Created Date" field, and paste it on the field which links the Clients table with the Dates table. In this way, all existing records will be automatically linked.
5. Now on your Dates table, create a new field called "Count" (of field type Count), which should count all linked records linked to the clients table.
6. On your chart, you'll have field "Date" (primary field) as X axis, and Count field as y axis.

For last, for automatically creating new dates, and linking new clients to such dates, you can use an automation as suggested by @TheTimeSavingCo.

Please let me know if this helps!

Mike, Consultant @ Automatic Nation 

See Solution in Thread

4 Replies 4

I think you'd need to have a table dedicated to storing this data, and you'd populate it with a scheduled automation like so:

Screenshot 2024-11-08 at 11.47.08 AM.png
---
For the historical stuff, I think I'd create a conditional count field to get the data to populate the table manually

Hey @Aaron_Cole!

According to your description, you currently have a Clients table. Even if you have also created a Created Date field on it, that will not be enough to "aggregate" the count of clients per day. Airtable does not work like a spreadsheet.

In order to solve your issue:
1. As @TheTimeSavingCo mentioned, you need to create yet another table -in his example, it is called "Record Counts", or you could also call it "Days".
2. On this new table, you'll want to have the primary field (that of the far left) to be a "Date" field where you will have one record, with its corresponding date, for every single day of the year(s).
3. Also on this new table, you'll have to create a "Clients" field (which should be a "Link to another record" field type).
4. Now, for linking all historic clients to their corresponding date, you'll have to copy all values from the "Created Date" field, and paste it on the field which links the Clients table with the Dates table. In this way, all existing records will be automatically linked.
5. Now on your Dates table, create a new field called "Count" (of field type Count), which should count all linked records linked to the clients table.
6. On your chart, you'll have field "Date" (primary field) as X axis, and Count field as y axis.

For last, for automatically creating new dates, and linking new clients to such dates, you can use an automation as suggested by @TheTimeSavingCo.

Please let me know if this helps!

Mike, Consultant @ Automatic Nation 

Aaron_Cole
5 - Automation Enthusiast
5 - Automation Enthusiast

Thank you.  That makes sense logically, now to implement 🙂 

Hmm, this outputs a count of Client records created per day, right?  I was thinking we wanted a total count of Client records that existed per day?