Hi everyone,
I'm tracking daily ad performance data (Meta Ads) in Airtable and displaying it in an Interface. Each row represents one day for one ad set, containing raw metrics like Spend, Impressions, Clicks, and Conversions.
The problem:
I need to display metrics like CPM, CPC, and CTR for flexible date ranges (sometimes 2 days, sometimes 70 days, always varying). However, Airtable Interfaces only offer "Average" as an aggregation option, which gives mathematically incorrect results for these metrics.
For example: The correct CPM for a period should be (Total Spend / Total Impressions) × 1000, not the average of daily CPMs.
What I've tried:
I can display "Sum" for Spend and "Sum" for Impressions separately, but there's no way to divide these two aggregated values within the Interface to get the correct CPM.
My question:
Is there any native Airtable workaround to calculate formulas based on aggregated/summarized values in an Interface? Or a way to pass the current Interface filter to a script that calculates the correct values?
I know external tools like Jet Admin can solve this, but I'd prefer to stay within Airtable if possible.
Thanks for any ideas!
