Struggling to Find an overall percentage

Hi, new to domo and in particular beastmode, hoping someone can help.
I have a KPI dashboard consisting of 30 plus customers and i want to find out the percentage of overall customers that meet or overachieve their KPI attainment each month. For example, if I have 10 customers and 5 meet or overachieve kpi then I'd like to see a card showing 50%.
I've been using this formula (SUM(Attained
) / MAX(KPI
)) * 100 which shows me percentage of KPI attainment at the individual client level, see screenshot attached.
When i try to use the following formula
( COUNT(DISTINCT CASE WHEN SUM(`Attained`) >=MIN(`KPI`) THEN
`Source` END
) /COUNT(DISTINCT `Source`)) *100
I get a an error, can anyone help?
Thanks
Best Answer
-
Okay so they would have to hit their attainment for all of their KPI's to count as attained?
For example:
Customer A has 2 rows of data. In one row they attained and in one they didn't - overall as a customer have they hit their KPI? Would they be a 0 or a 1 in the numerator?
Customer B has 2 rows of data. In both they attained. Would they be a 1 in the numerator? A 2 wouldn't make sense to me since they only count once in the denominator. Or would they be a 2 over a 2 in the denominator?
If I solved your problem, please select "yes" above
0
Answers
-
Are there multiple rows per customer? Or a single row per customer?
If single row per customer, the beastmode would be:
SUM(CASE WHEN (`Attained`/`KPI`) >= 1 THEN 1 ELSE 0 END) / COUNT(DISTINCT `Customer ID`)
If I solved your problem, please select "yes" above
0 -
Hi there,
Multiple rows per customer
0 -
Okay so they would have to hit their attainment for all of their KPI's to count as attained?
For example:
Customer A has 2 rows of data. In one row they attained and in one they didn't - overall as a customer have they hit their KPI? Would they be a 0 or a 1 in the numerator?
Customer B has 2 rows of data. In both they attained. Would they be a 1 in the numerator? A 2 wouldn't make sense to me since they only count once in the denominator. Or would they be a 2 over a 2 in the denominator?
If I solved your problem, please select "yes" above
0
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 813 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 81 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive