How to select last 5 days' records from each calendar month of given data set?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Team,
I have a bunch of sales records containing the sales dates. I need to select all the records of last 5 days of each calendar month. I would like to have the report saved in a file with Customer Name, Sale Date (only those records that are sold during the last 5 days of each calendar month).
Kindly help,
Thanks,
Siva
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@TMHC : Here would be my approach to solving it:
This is what my input looks like:
This is the resulting dataset. You can just unselect the Grouping Date and the Record Count using the "Select" tool.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Would you be able to provide the coding to be able to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@TMHC : Here it is. Lemme know if it works for you. 😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
hi @grossal I tried using this solution you provided but it is not working for my needs. Essentially I am trying to obtain data from the last 7 days only and weekly.

- « Previous
-
- 1
- 2
- Next »