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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
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