One SKU has multiple mail date and trying to filter out all skus that have date greater than today
Hi, I am running into a problem with my visual I want to filter out any SKUs with a future mail date but since each SKU has multiple mail dates it is not recognizing the future ones it is going off the first mail date it sees. For example, the calculated field I have created is this "CASE WHEN MailDate
> CURRENT_DATE() THEN 'Future Mail Date' ELSE 'Past or Present Mail Date' END" When I bring this field into my filter and filter on Past or Present Mail Date it will give me all SKUs that have a mail date in the past or present but if the SKUs also have mail date in the future it won't recognize and will bring them in as well that is what i want to remove. Only need SKUs with a past or present mail date with none in the future.
Best Answer
-
Hello @Utz,
In ETL, group by the maximum 'MailDate' and join on SKU to obtain the latest 'MailDate'. Use your CASE statement on this result. Here's a similar example of this approach:
If you found this post helpful, please use 💡/💖/👍/😊 below! If it solved your problem, don't forget to accept the answer.
0
Answers
-
Sure provided are the screenshots
This is an example of the SKU that is giving me issues
Here are the mail dates associated with the SKU at hand 46476
my formula which is CASE WHEN
MailDate
> CURRENT_DATE() THEN 'Future Mail Date' ELSE 'Past or Present Mail Date' END is intended to filter out any SKU that has any occurrence of a future mail date when I select on "Past or Present" but this formula isn't working that way and SKU 46476 should not be showing up.0 -
Hello @Utz,
In ETL, group by the maximum 'MailDate' and join on SKU to obtain the latest 'MailDate'. Use your CASE statement on this result. Here's a similar example of this approach:
If you found this post helpful, please use 💡/💖/👍/😊 below! If it solved your problem, don't forget to accept the answer.
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.8K Visualize
- 2.5K Charting
- 737 Beast Mode
- 55 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