Discussions
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