Trying to get different values into the pivot table

Below is the code I am using in Beast mode. I want the "Not" metrics to be divided by MM to give me a value, and the MLR to be divided and the rest of the metrics to be total values.
The pivot table is giving me total values.
SUM(CASE
WHEN MOS_Year
= 2023 THEN
CASE
WHEN Metric
= 'Member Month' THEN MM
WHEN Metric
= 'MLR' THEN COST_MLR
/ REV_MLR
WHEN Metric
= 'Shared Savings Dollars' THEN PAID
ELSE
CASE WHEN Metric
NOT IN ('MLR', 'Shared Savings Dollars') THEN PAID
/ MM
END
END
END)
Best Answer
-
You may want to try this update, if it doesn't work it might be helpful to share a screenshot of your pivot table so that we can see how it's configured:
CASE
WHEN MOS_Year = 2023 AND Metric = 'Member Month' THEN SUM(MM)
WHEN MOS_Year = 2023 AND Metric = 'MLR' THEN SUM(COST_MLR) / SUM(REV_MLR)
WHEN MOS_Year = 2023 AND Metric = 'Shared Savings Dollars' THEN SUM(PAID)
WHEN Metric NOT IN ('MLR', 'Shared Savings Dollars') THEN SUM(PAID)/ SUM(MM)
END1
Answers
-
You may want to try this update, if it doesn't work it might be helpful to share a screenshot of your pivot table so that we can see how it's configured:
CASE
WHEN MOS_Year = 2023 AND Metric = 'Member Month' THEN SUM(MM)
WHEN MOS_Year = 2023 AND Metric = 'MLR' THEN SUM(COST_MLR) / SUM(REV_MLR)
WHEN MOS_Year = 2023 AND Metric = 'Shared Savings Dollars' THEN SUM(PAID)
WHEN Metric NOT IN ('MLR', 'Shared Savings Dollars') THEN SUM(PAID)/ SUM(MM)
END1
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 664 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 825 Beast Mode
- Visualize
- 2.6K Charting
- 88 App Studio
- 46 Variables
- Automate
- 196 Apps
- 486 APIs & Domo Developer
- 94 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 119 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 143 Governance & Security
- 11 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive