- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
filter with date
Hi,
In a dashboard, I have a filter with week numbers which applies to graphs. H
How to do in the script to have a selection of weeks which is updated from the last 3 weeks from today's date ans would be automatic?
best regards
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: filter with date
If your column's name is Date, and your reference to the data table is dt....this code will select the rows that fall within the last 3 weeks from today
dt << select where( :Date >= today() - in weeks(3) );
Jim
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: filter with date
If your column's name is Date, and your reference to the data table is dt....this code will select the rows that fall within the last 3 weeks from today
dt << select where( :Date >= today() - in weeks(3) );
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: filter with date
Thanks!