Filtering data
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
arkimp
8 - Asteroid
‎08-12-2022
01:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have input like below. I want to extract data based on the Current date..
If the "current date /system date" is < 7 , all the data to be extracted. If the "current date /system date" is > 7 , only current month data to be extracted..
Input:
Date | value |
2022-07-21 | 10 |
2022-07-22 | 20 |
2022-08-01 | 40 |
2022-08-09 | 50 |
As today's Date is 12, only this month data to be in output file. please let me know, how can i achieve this?
Output:
Date | value |
2022-0801 | 40 |
2022-08-09 | 50 |
Labels:
- Labels:
- Date Time
5 REPLIES 5
17 - Castor
‎08-12-2022
02:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Alteryx
‎08-12-2022
02:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Alteryx
‎08-12-2022
02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
flying008
15 - Aurora
‎08-12-2022
02:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,@arkimp
only filter as you need:
DAY(DateTimeToday())<7 || (DAY(DateTimeToday())>7 && MONTH([Date])=MONTH(DateTimeToday()))
17 - Castor
‎08-12-2022
02:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @arkimp
I would typically do this in 2 steps with a formula and filter tool as I find it a bit easier to articulate the logic in a formula tool.
One thing to note: What should happen on the 7th day of the month? I used >= 7 for my logic
