I have a module Lead
I have following field in this module:
- name
- source (specific option fields from select type field)
- channel (specific option fields from select type field)
- phone_number
- amount
- call_status (option of answered, missed if channel=‘Call’)
- lead_time
- appointment_status (unscheduled, scheduled, completed)
- location
I have to power a dashboard with filter option of multi select location, date range (lead_time)
for selected filter I have to provide with the following chart metrics:
-
Lead count per source, per channel
-
Sum of Lead amount per source
-
Lead Conversion Count (appointment_status non empty) per source, per channel
-
Tracked Leads Count (Leads with phone_number non empty)
-
Call Status count per source where channel=‘Call’
i.e Answered count, Missed count -
Also I have to group by bucket size from user input option of (week, month, day, year) for by grouping bucket on column lead_time :
I. Total Lead Count per bucket
II. Tracked Lead Count per bucket (Leads with phone_number non empty)
III. Total Lead Conversion count per bucket (appointment_status non empty)
IV. Total Lead production per bucket sum(amount) per bucket
How can I power these metrics in single API call if not possible how to minimize the API calls for these metrics independent of each Section