MTD & MTD Last Year Beastmode that calculate the ratio

verytiredgirl
Member
in Beast Mode
so I have a beast mode that calculates the ratio of committed orders
- % committed count = SUM(CASE WHEN
% complete
> 0 THEN 1 ELSE 0 END) / COUNT(Order #
)
but I want to create a Beast Mode to calculate the same ratio but just for this MTD, so I tried this, but it return 0
- CASE
- WHEN YEAR(CURDATE()) = YEAR(MONTH_END_DATE) AND MONTH(CURDATE()) = MONTH(MONTH_END_DATE)
- THEN
- % committed count
- ELSE 0
- END
Tagged:
0
Answers
-
@verytiredgirl If you haven't already, I suggest reading @GrantSmith's write up on this topic: https://community-forums.domo.com/main/discussion/53481/a-more-flexible-way-to-do-period-over-period-comparisons
0
Welcome!
It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign InWelcome!
It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign InCategories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 660 Datasets
- 117 SQL DataFlows
- 2.2K Magic ETL
- 816 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 84 App Studio
- 46 Variables
- 778 Automate
- 190 Apps
- 482 APIs & Domo Developer
- 83 Workflows
- 23 Code Engine
- 41 AI and Machine Learning
- 20 AI Chat
- 1 AI Playground
- 2 AI Projects and Models
- 18 Jupyter Workspaces
- 412 Distribute
- 120 Domo Everywhere
- 281 Scheduled Reports
- 11 Software Integrations
- 145 Manage
- 141 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 115 Community Announcements
- 4.8K Archive