Simple Mathematical Equations in Domo
Hello, I am trying to do simple addition, multiplication, and division equations using static variables or numbers in Domo. What is the best and easiest way to go about doing this?
Using variables gives me "An issue has occurred during processing. We are unable to complete the request at this time." Using manually typed-out numbers in a Beast Mode gives me incorrect values.
Answers
-
You can do this in either a Beast Mode in a card or a Formula Tile in a Magic ETL.
`Column` * 3.1415926535
What does you example beast mode look like?
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
Thank you @GrantSmith for the quick reply. The difficulty lies with referencing a column. I have two unlinkable and somewhat dirty datasets that our team is working to correct, but the numbers are all there. I want to get MMR using the following logic (imagine the title says MMR, not Avg revenue per acc):
EDIT: I should also specify that the "avg revenue per account" part of this calculation takes into account the whole period, the accounts in a given period takes into account a single month.
0 -
@hunter_brown Be sure to use ` around your column names instead of an apostrophe so that it knows you are referencing a column. They way you have it now, Domo thinks you are trying to perform a mathematical operation on strings
0 -
Yes I understand that, thank you for making sure. I am not trying to reference columns. I want to use manually entered numbers as a sort of "snapshot" instead of referencing specific columns. I have to take the amount of accounts from one dataset and the revenue figures from a different one, without any way to link the two.
0 -
@hunter_brown Is this data time-bound? If so, could you not link your datasets by month?
0 -
Yes the data is time bound. One is a dataset via email, and the other is a live warehouse. The email dataset records the entirety of revenue for a single date, while the live warehouse is continuously updated.
The issue is that due to nonexistent accountability mechanisms in the recording of our datapoints from the emailed dataset, that some transactions are recorded all at once instead of in their proper dates. For example, someone would think to themselves, "Why does it matter if I record 1k of revenue in the current month of July if they are all for the same billing code?"
From the above situation, some of our revenue could be misattributed to July instead of June.
These may be able to be linked using dates but I do not know how to transform multiple days, months, and years from the live warehouse and compare it to the emailed dataset. Would it account for years as well? Should I use a date scaffold?0 -
Is there no way to do "(2+1)/2" in Domo? This is my main question for future knowledge even if there is another way to solve this problem.
0 -
@hunter_brown To answer your question, what you are describing should work in beast mode. What are you getting instead?
0 -
Whoops, hold on, I used an incorrect example. Give me a moment.
0 -
I believe I figured out the issue, it was in fact the aggregation. When summarizing using real numbers, you have to change the aggregation to an average rather than a sum to get the accurate numbers.
0 -
@hunter_brown if you using mathematical functions in beast mode, its advisable to aggregate* the columns in the calculation.
*: The aggregation function depends on what you are trying to calculate.
1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive