FIXED () in Magic ETL?
'MTD' /
SUM(
CASE
WHENClass 3
= 'Sales'
THENAmount
ELSE 0
END
)
FIXED ()
I have this BeastMode called 'MTD %' that calculate the % of each GL Account based on Sales (so Sales = 100%)And it was working correctly with different branches. Just wondering if I can create this in ETL?
Answers
-
Fixed functions only work in beast modes. To do this in ETL you will need to add a constant if one doesn't already exist, this will be needed for a Group By to sum up Amount. This step replicates the first part of the fixed function by getting you a total amount for sales for your grouping. The next step is to join the grouped data back to the rest of your data. Then you can compare the MTD to the total summed amount.
If I solved your problem, please select "yes" above
0 -
There is no "FIXED()" in Magic ETL, but you can replicate its behavior with a combination of Group By and Join. In this case, it you'll want to configure a Group By like this:
And the subsequent Join like this:
And finally an Add Formula like this:
Arranged like this:
Randall Oveson <randall.oveson@domo.com>
0 -
@rco thanks for this, but might I ask why it's a cross join?
because my end goal is to have a Pivot Table that has column: MTD, MTD %. With the Cross Join, the MTD Amount will be inflated in the Pivot Table0 -
The Group By emits just one row, the sum for the whole table. The cross join just joins that single sum value to the original table; the final row count matches the original row count.
Randall Oveson <randall.oveson@domo.com>
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 302 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 104 SQL DataFlows
- 633 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 760 Beast Mode
- 62 App Studio
- 42 Variables
- 699 Automate
- 181 Apps
- 457 APIs & Domo Developer
- 51 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 401 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 8 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive