SOLVED
pulling previous month 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
chiragpatel_1
8 - Asteroid
‎01-04-2023
04:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
hi,
I want to bring in previous moths data (December 2022) dynamically, and my data set does have previous months data but my formula which i have used many times dosent seem to work, the date is in the correct format.
format of my data,
many thanks
Solved! Go to Solution.
Labels:
- Labels:
- Workflow
2 REPLIES 2
Felipe_Ribeir0
16 - Nebula
‎01-04-2023
04:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try this formula (it means filter when 202212 = 202212 basically)
datetimeformat([kdate], "%Y%m") = DateTimeFormat(DateTimeAdd(DateTimeToday(), -1, "months"), "%Y%m")
binuacs
21 - Polaris
‎01-04-2023
05:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@chiragpatel_1 One way of doing this
[kdate] >= toDate(DateTimeTrim(DateTimeAdd(DateTimeToday(),-1,'month'),'firstofmonth') )
AND
[kdate] <=
toDate(DateTimeTrim(DateTimeAdd(DateTimeToday(),-1,'month'),'lastofmonth') )
