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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Formula Help - Last Fiscal Year To Date - 1 day
I'm trying to build criteria into a saved search that pulls last fiscal year sales to date minus one day.
So for today (10-29-2009), I would want the search to pull sales from 7-1-2008 to 10-28-2008. Because of this, I can't use the standard "within last fiscal year to date" search option.
I'm thinking a formula in the search criteria is the way to go but am unable to get one to work. I've been looking at formulas in the usergroup and found this one that's supposed to pull last fiscal year to date-->
DECODE(TO_CHAR(ADD_MONTHS({trandate},-6),'YYYY'),TO_CHAR(ADD_MONTHS({today},-6),'YYYY'),{amount},0)
0