Beast Mode Not Allowing Card to Save - AVG SLA BEAST CALCULATION, HELP?
Hi,
I previously created a table card where I was able to add the beast mode below but when I needed to make an edit I was unable to save as it gave the Unable to Save your card contact your Domo Support Team. Below is the table card I am trying to save:
The beast mode for AVG SLA used. When I delete this beast mode I am able to save once again.
SEC_TO_TIME(AVG(TIME_TO_SEC(TIMEDIFF(`closedDate`,`createdDate`))))
Below is how the data looks. I just want to calculate the difference between Created and Closed dates and displaying it as hours to get the AVG SLA by Ticket Type since I am trying to create a KPI Report which reflects totals and not individual records.
Can someone please help with the beast mode... maybe an alternate way to do this?
Answers
-
For 'best practices' if you have a derived column like timediff (closeddate, created date), because the values are on the same row, you should create that column in ETL .
That said, to address your question, simplify. there's no reason for the two nested sec_to_time functions
SEC_TO_TIME(AVG( TIMEDIFF(`closedDate`,`createdDate`)))
Things to confirm when you're building beast modes.
What does each function output? What is the result of TimeDiff? (is it the number of seconds or minutes? I literally do not know, but you should) The reason it's important is b/c you have to know if you can take the avg. of the thing you're outputting.
what's the result of the avg function? (i mean ... that's dependent of TIMEDIFF) and then, can your sec_to_time() function convert that successfully?
when you're trying to save your beast mode, if it doesn't save,
1) make sure it validates
2) try giving it a new name.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Hi @Shumilex
Have you also tried using a different function to get the time difference in seconds like UNIX_TIMESTAMP?
SEC_TO_TIME(AVG(UNIX_TIMESTAMP(`closedDate`) - UNIX_TIMESTAMP(`createdDate`)))
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
Hi,
@jaeW_at_Onyx The beast mode saves - but adding the beast mode as a field in the pivot table card is when it doesn't allow the card itself to save. The beast mode validates and I have tried renaming several time with no change. I even tried it without double nesting and it does not allow it to save.
I created the time diff column and it displays the results I want hh:mm:ss, however when adding the field to the table it is displayed as a count - with no way of deselecting this.
I really just want the date diff/time diff between Created and Closed Dates but displayed as an average time hh:mm:ss format. This is to display the average time it takes to resolve a specific ticket type.
@GrantSmith I did try your formula and it gave the same results and the same issue with being unable to save the card.
Thanks so far but still having the issue...
0 -
@Shumilex , IF beast modes only allow you to COUNT it implies that the value being output is TEXT. You can't take the average of text.
Try just
AVG(UNIX_TIMESTAMP(`closedDate`))
and a separate beast mode
AVG(UNIX_TIMESTAMP(`createdDate`))
Given what you've described, i'll bet there are some cases where the row is returning NULL in one of the two columns.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0
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
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 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