Help with column formula

I am trying to do an a calculation and having some trouble. The formula in my Average Daily Usage column is (Oil Usage / Run TIme Hours) * 24
I guess the formula is technically working when look at columns, but I want this formula to calculate for the subtotal columns when i select a range of dates. So the column in blue for Average Daily Usage should be 1.714 not 2.34. How do I accomplish this? Guess i might need to make some adjustments in ETL
Best Answers
-
Try this: (sum(Oil Usage) / sum(Run TIme Hours)) * 24
I think the aggregation in the beast mode will make it work correctly. Right now it's totaling the column for you instead of doing the calc for the full oil usage and run time hours.
0 -
Wouldn't the average be 0.58?
Just wrap your beastmode with AVG()
AVG((Oil Usage
/Run Time Hours
) * 24)Or change the aggregation type to Average for that field.
If I solved your problem, please select "yes" above
0
Answers
-
Try this: (sum(Oil Usage) / sum(Run TIme Hours)) * 24
I think the aggregation in the beast mode will make it work correctly. Right now it's totaling the column for you instead of doing the calc for the full oil usage and run time hours.
0 -
Wouldn't the average be 0.58?
Just wrap your beastmode with AVG()
AVG((Oil Usage
/Run Time Hours
) * 24)Or change the aggregation type to Average for that field.
If I solved your problem, please select "yes" above
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Data Connections
- 1.3K Connectors
- 309 Workbench
- 17 Cloud Integrations
- Data & ETL
- 2.3K Magic ETL
- 120 SQL DataFlows
- 667 Datasets
- Visualize & Apps
- 90 App Studio
- 198 Pro-code Components
- 2.6K Charting & Analyzer
- 873 Calculations & Variables (Beast Mode)
- AI & Data science
- 23 Domo AI & AI Chat
- 4 Managing AI
- 18 Jupyter Workspaces
- Automate
- 122 Workflows
- Alerts
- Distribute
- 118 Domo Everywhere
- 284 Reporting
- Manage
- 145 Governance & Security
- 489 APIs
- 11 Add-ins & Plugins
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 118 Community Announcements
- 5K Archive