Looking on a specific date
Hi all,
I am working in Magic ETL. I have group two different datasets on their 'lock_dates'
I have created a calculated column where the number of locks are counted in each data set.
Then I created a column that told me if dataset 1 matched dataset 2.
All of this is shown below
The issue I am running into is seeing that 'powerselerlockdate' is updating sooner than 'powerlenderlockdate'.
To compensate for this, I want to look back exactly one week ago from today to know if 'powerseller=powerlender' is true or not. — in this case it isnt and I also need to figure out how to set an alert for that but that is for another day.
Can someone help me with the syntax for either a beastmode or a formula tile in ETL?
If this helps, feel free to agree, accept or awesome it!
Best Answer
-
You can filter out anything newer than 1 week old using the following:
CASE WHEN `PowerSellerLockDate` < = CURRENT_DATE() - INTERVAL 1 WEEK THEN 'In' ELSE 'Out' END
Then apply the beastmode as a filter in the card.
If you want to filter the values in Magic ETL, use a filter tile and the following formula
`PowerSellerLockDate` < = CURRENT_DATE() - INTERVAL 1 WEEK
I don't know if that is the right date field to use, but just swap it out with whatever date field makes sense to use there.
If I solved your problem, please select "yes" above
2
Answers
-
You can filter out anything newer than 1 week old using the following:
CASE WHEN `PowerSellerLockDate` < = CURRENT_DATE() - INTERVAL 1 WEEK THEN 'In' ELSE 'Out' END
Then apply the beastmode as a filter in the card.
If you want to filter the values in Magic ETL, use a filter tile and the following formula
`PowerSellerLockDate` < = CURRENT_DATE() - INTERVAL 1 WEEK
I don't know if that is the right date field to use, but just swap it out with whatever date field makes sense to use there.
If I solved your problem, please select "yes" above
2
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