Percentage Calculation
Hi -
I am trying to find the % of one column of items compared to another. Specifically, the percentage of "online appointments" (a filtered option of "all appointments") compared to "all orders submitted". I cannot figure out the formula.
Previously, when figuring out the % of online scheduled appointments compared to all scheduled appointments I used the below formula:
case
when sum( case when `appt_source` = 'ONLINE' then 1 end)
/ sum(1) is NULL then 0
ELSE sum( case when `appt_source` = 'ONLINE' then 1 end)
/ sum(1)
end
However, online / offline appointments were a part of the same column of data. I'm not sure how to replicate this method with 2 columns. Thanks!
Answers
-
Hi @chrissy ,
You are basically there. I think you just need to move your "sum" to the front of the line. Here's a video I made for you showing you how to do so: https://www.loom.com/share/d57f4594c62245d5b3a4f3fcf5dd22a8
John Le
You're only one dashboard away.
More video solutions at: https://www.dashboarddudes.com/pantry
John Le
You're only one dashboard away.
Click here for more video solutions:
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
- 33 Predict
- 13 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