Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Saved Searches using Rolling Period
I have created a saved search to show leads created by lead source, over a rolling 6 month period. This worked fine as of end of the last year, but I have now encountered an issue due to the formula I am using.
Here is what I use:
Current month ...
case when to_char({datecreated}, 'MM') = to_char({today}, 'MM') then 1 else 0 end
Following months (changing -X accordingly) ...
case when to_char({datecreated}, 'MM') = to_char({today}, 'MM')-1 then 1 else 0 end
It is not working now since Jan being 01, less say 4 is -3, which of course is not a month.
0