'Lookup' in Beast Mode
Hi,
I am looking for help to build a beast mode calculation for ColumnA here.
ColumnA does not exist in the data and will be built using Beast Mode. The first three values have to be manually input and the fourth value onwards I need it as a calc as shown. Can someone please help me with this? Please let me know if you have any questions. Thanks in advance.
Answers
-
Hi @utkarsh I don't believe there is a way to accomplish this in Beast Mode since the calculation for ColumnA is dependent on previous values of the same column. Ordinarily if you needed to reference values in previous rows, I would recommend the LAG function in the Rank & Window ETL tile (https://domohelp.domo.com/hc/en-us/articles/360044876094-Magic-ETL-Tiles-Aggregate#3.), but those window functions rely on fields that already exist in the data.
I'm curious about how you arrived at the first three values of ColumnA. Is there a logic there that you could potentially replicate in this dataset?
0 -
Hi @MichelleH thanks for your response. The logic is tough to explain here, but for now if we just assume the first three values exist in the data using the following calc, can we build the next part of logic where we can reference the values from the same column?
CASE when
`Date` = '1/1/2022' then '208' when
`Date` = '2/1/2022' then '197' when
`Date` = '3/1/2022' then '192' else
'Null' end
0 -
@utkarsh please articulate in business language what you are trying to accomplish. @MichelleH is correct, you can probably accomplish what you need using Window functions (the LAG() function) in particular, but to assess whether it would always be appropriate to use LAG it's important to understand your use case.
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"2
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 296 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 614 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 729 Beast Mode
- 53 App Studio
- 40 Variables
- 677 Automate
- 173 Apps
- 451 APIs & Domo Developer
- 45 Workflows
- 8 DomoAI
- 34 Predict
- 14 Jupyter Workspaces
- 20 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 121 Manage
- 118 Governance & Security
- Domo Community Gallery
- 32 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive