Division of Values
Hello Domo Ninjas - I'm trying to get a new value from a dataset, where I'm dividing 1 column by another. Its a strange way of measuring how much Sales is adding on Services to Product deals.
- I'm getting errors both in Beast Mode, when I try MOD(
ProdSales
,SvcsSales
) - And in DataFlows when I add a Calculator, attach it to the Dataset give a new column name, select the calculation type Division, select the 2 columns, and finally drag an output DataSet, name and save. When I run it, I get an error {{ ::getInvalidText(datasource) }}
Any advice would be great...I'm stuck
Thx,
Rich
Best Answers
-
Hi @major_ace if you are looking for a simple division, try this beast mode:
sum(`ProdSales`)/sum(`SvcsSales`)
2 -
Is your data clean? Meaning do you have values for all of your rows of data and are those values all in number format? That error message might indicate that Domo is trying to run a calculation on a text field.
If the data is clean, you could try
MOD(sum(`ProdSales`),sum(`SvcsSales`))
0
Answers
-
Hi @major_ace if you are looking for a simple division, try this beast mode:
sum(`ProdSales`)/sum(`SvcsSales`)
2 -
Is your data clean? Meaning do you have values for all of your rows of data and are those values all in number format? That error message might indicate that Domo is trying to run a calculation on a text field.
If the data is clean, you could try
MOD(sum(`ProdSales`),sum(`SvcsSales`))
0 -
No, some rows were discounted to 0 and some have no value, where the Product was sold with either a discount to 0 or no Services were sold at all.
0 -
Thank you both! I went with the un-nested version @MichelleH posted, and it worked great! For some reason, my earlier attempts at nesting were throwing errors.
0 -
@major_ace - the MOD() function is not the same as dividing two values. But, as long as you have the output you are looking for.
4
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive