How to see Average calls per Minute over the last 30 days?
I am importing data using a Federated Snowflake dataset. The dataset contains the following columns that I will use:
Call ID - the calls unique identifier
Date/Time - What time the call came in (dd/mm/yyyy - hh:mm:ss)
Call type - a category that states what the call was about
I am trying to see our average calls per minute when looking that the last 30 days. I can display this data when I am only looking at what came in during the last hour by counting the 'Call ID' column and then using 'Call Type' as a series:
But when I try to Avg(Count('Call ID')) using a beast mode (so that I can average the number of calls that came in each minute) it comes back with an error "we can't process this at this time..."
I imagine that I just don't know what I am doing. With it being a Federated Snowflake dataset, I don't believe I can do anything with the data via ETL, etc.
Best Answer
-
Ok, that's doable. You will need to do the following
- Make sure you have a field that only have the Time Minutes for the day.
- I see you have Date/Time
- Extract the Time from it in this format hh:mm (do not include the seconds)
- You will have 1,440 points for each 24hrs
- This formula should do the job TIME_FORMAT(`Date/Time`, '%h:%i')
- This beastmode just created , use it as your x-axis
- Keep your column Date/time in the settings to plot Last 30 days or Last 31 days and exclude the current day (filter it out)
- Calculate the Average
- in your case do, Count(Distinct `CallId`) / Count(Distinct DATE(`Date/Time`))
- dont divide by 30, dividing by Count(Distinct DATE(`Date/Time`)) will give you more flexibility in case you want to toggle between different time ranges... last 30days , last week , current month to date etc
- You now have the 2 main points to fire up your chart
- You can add 'Call Type' in the series but honestly, it will look like a mess even just without the series it is already too many data points plotted that create a lot of noise (consider using maybe 10 minute intervals of even 30 minutes, it will still tell you what the activity is during those times of a day)
- also consider using the 'Call type' either as a quick filter or a card only for that call type that you can put next to each other.
I hope all this help you
Domo Arigato!
**Say 'Thanks' by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem as 'Accepted Solution'2 - Make sure you have a field that only have the Time Minutes for the day.
Answers
-
Hi @thwartted
You can't aggregate an aggregate in a normal beast mode. You'd need to utilize an ETL to aggregate your data with a count by whatever grouping you wish and then use that dataset to calculate the average in the beast mode in your card (or alternatively just calculate the average after your count aggregation in your ETL)
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
@GrantSmith Domo doesn't allow for ETL's with Federated Snowflake datasets. Are there other solutions outside of ETL?
0 -
what are you expecting to see as far as visualization?
Are you trying to plot in a chart the average of calls per minute by call type for 30days ? that would be a long x axis with 43,200 minutes (there is 43,200 minutes in 30days)
or
you just want the single value (average calls per minute) by call type ?
in this case wouldn't it just be the count(distinct CallIds in 30days) / 43200 ?
Domo Arigato!
**Say 'Thanks' by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem as 'Accepted Solution'0 -
@Godiepi I am wanting to take the average traffic for each minute for the past 30 days. So I would see the day plotted out by minute and each minute would be an average of that minute over the past 30 days.
That way I could see at 2:01pm what our average traffic looks like for that minute over the past 30 days.
0 -
Ok, that's doable. You will need to do the following
- Make sure you have a field that only have the Time Minutes for the day.
- I see you have Date/Time
- Extract the Time from it in this format hh:mm (do not include the seconds)
- You will have 1,440 points for each 24hrs
- This formula should do the job TIME_FORMAT(`Date/Time`, '%h:%i')
- This beastmode just created , use it as your x-axis
- Keep your column Date/time in the settings to plot Last 30 days or Last 31 days and exclude the current day (filter it out)
- Calculate the Average
- in your case do, Count(Distinct `CallId`) / Count(Distinct DATE(`Date/Time`))
- dont divide by 30, dividing by Count(Distinct DATE(`Date/Time`)) will give you more flexibility in case you want to toggle between different time ranges... last 30days , last week , current month to date etc
- You now have the 2 main points to fire up your chart
- You can add 'Call Type' in the series but honestly, it will look like a mess even just without the series it is already too many data points plotted that create a lot of noise (consider using maybe 10 minute intervals of even 30 minutes, it will still tell you what the activity is during those times of a day)
- also consider using the 'Call type' either as a quick filter or a card only for that call type that you can put next to each other.
I hope all this help you
Domo Arigato!
**Say 'Thanks' by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem as 'Accepted Solution'2 - Make sure you have a field that only have the Time Minutes for the day.
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive