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.
Subtracting Dates then Totaling
I'm trying to use a numeric formula on a saved search to determine how many weeks ago a transaction occurred. If the transaction occurred within the appropriate amount of weeks the formula outputs the transaction amount which then gets totaled.
I've split my formula into several parts to determine where it is breaking and discovered the problem resides in my weeks calculation. If I can get this part working the rest of the formula shouldn't have a problem.
I've tried both formulas below to return the number of weeks ago the transaction happened. Both return ERROR: Invalid Expression.
TRUNC(({today} – {trandate}))/7 0