Beast Mode
How do i do a beast mode formula to get the response value of a record that was completed most recently? If this is my data i want to just take the bottom row. My groupings cant be changed in magic etl just need to take response value with highest or most recent time
Name | Location | Time | Response value |
---|---|---|---|
Ben | A | 2:07PM | 5 |
John | A | 3:55PM | 15 |
Best Answers
-
A couple of solutions using Magic ETL - 1) Use a window function to rank the records in descending time, then look for rank 1 in your card; 2) Do a group by to find the max time, then cross join that back to your data so that you can find the most recent time in a beast mode, where the Time field equals the Max Time field.
Maybe there's a way to do this with a fixed function beast mode, but I'm not certain.
0 -
Create a beastmode and use it as a filter:
CASE WHEN `Time` = MAX(`Time`) THEN 'In' ELSE 'Out' END
Not sure what format your time field is in, but you'll need to make sure it is in a datetime format for this to work.
If I solved your problem, please select "yes" above
0 -
Hey TMonty,
You will need to create a conditional column:
case when `timestamp` = max(`timestamp`) over() then 'Yes' else 'No' end
However, this will require that you have a timestamp column.
If you do not have a timestamp column, you can make one by appending the date and time columns and converting to timestamp format.
1
Answers
-
A couple of solutions using Magic ETL - 1) Use a window function to rank the records in descending time, then look for rank 1 in your card; 2) Do a group by to find the max time, then cross join that back to your data so that you can find the most recent time in a beast mode, where the Time field equals the Max Time field.
Maybe there's a way to do this with a fixed function beast mode, but I'm not certain.
0 -
Create a beastmode and use it as a filter:
CASE WHEN `Time` = MAX(`Time`) THEN 'In' ELSE 'Out' END
Not sure what format your time field is in, but you'll need to make sure it is in a datetime format for this to work.
If I solved your problem, please select "yes" above
0 -
Hey TMonty,
You will need to create a conditional column:
case when `timestamp` = max(`timestamp`) over() then 'Yes' else 'No' end
However, this will require that you have a timestamp column.
If you do not have a timestamp column, you can make one by appending the date and time columns and converting to timestamp format.
1 -
Once your conditional column has been created, you can filter to only include the 'Yes' values, which will have only the most recent response for that category
0
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.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 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