Monthly Average
Hi,
I want to create a Table Chart to show the service level by month for this Fiscal Year.
I've created a calculation to get the service level --> (1-(SUM(`Lost Sales`)/(SUM(`Lost Sales`)+SUM(`Sales`))))*100
And now I want to calculate the Monthly Average of Service Level
In a line chart, I can manage it with date selection (graph by month), but with table chart, this option is not available, so this is a calculation I've created for Service Level AVG in January 2019 but it's not working (I didn't get any result):
case when CONCAT(MONTH(`Date`),YEAR(`Date`))=12019 then AVG(1-(SUM(`Lost Sales`)/(SUM(`Lost Sales`)+SUM(`Sales`))))end
Is that the correct way to do that ot there's other solution?
Thanks in advance.
Comments
-
Hello Judit, Is there a reason why you would need to do the case statement for only the January month?
I would think you would want to create the beast mode for the Service Level, and then another beast mode for the Month/Year. Then you would end up with an average that displays along side the month label. This offers the advantage of being able to apply the date filters to the card with Domo instead of being locked in a beast mode which may be confusing to an end user.
If this doesn't answer the question, I would be curious if you could share some example data and an example of what you expect the output of the beast mode to be.
**Say "Thanks" by clicking the heart 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.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 295 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 97 SQL DataFlows
- 608 Datasets
- 2.1K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 711 Beast Mode
- 50 App Studio
- 39 Variables
- 668 Automate
- 170 Apps
- 446 APIs & Domo Developer
- 45 Workflows
- 7 DomoAI
- 34 Predict
- 14 Jupyter Workspaces
- 20 R & Python Tiles
- 391 Distribute
- 111 Domo Everywhere
- 274 Scheduled Reports
- 6 Software Integrations
- 116 Manage
- 113 Governance & Security
- Domo Community Gallery
- 31 Product Releases
- 9 Domo University
- 5.3K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 103 Community Announcements
- 4.8K Archive