P&L % of sales

Hello,
I have a p&l that breaks out all balances by line item. I am trying to show this cards values as a % of the top line item 'Manufactured'
How would I go about creating this beastmode to do this functionality?
For example: 2023 Jan shows 2.3 for manufactured. If Warranty cost was .5 then I would like to see .5/2.3 on the warranty cost row. 21.7%
Thanks
Best Answer
-
Changing the format for a single row can be tricky, and doing so might have end up behaving unexpectedly for Totals and Subtotals.
You could in theory do this by having a beast mode which you'll use as your value that does the text formatting, something like:
CASE WHEN `Line Item` = 'WARRANTY COST' THEN CONCAT(`part_1`,'/',`part_2`) ELSE `regular_text` END
Where Part 1 would be whatever formula you use to calculate the .5 and part 2 the formula for the manufactured value (which you'll most likely need to write using FIXED as it'll relate the items from a different
Line Item
0
Answers
-
Changing the format for a single row can be tricky, and doing so might have end up behaving unexpectedly for Totals and Subtotals.
You could in theory do this by having a beast mode which you'll use as your value that does the text formatting, something like:
CASE WHEN `Line Item` = 'WARRANTY COST' THEN CONCAT(`part_1`,'/',`part_2`) ELSE `regular_text` END
Where Part 1 would be whatever formula you use to calculate the .5 and part 2 the formula for the manufactured value (which you'll most likely need to write using FIXED as it'll relate the items from a different
Line Item
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 665 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 827 Beast Mode
- Visualize
- 2.6K Charting
- 90 App Studio
- 46 Variables
- Automate
- 198 Apps
- 488 APIs & Domo Developer
- 97 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
- 145 Governance & Security
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive