Nada Ahmed
09/10/2024, 5:09 PMCeligo AI
09/10/2024, 5:10 PMAI generated answer (using internal Slack threads):The formula you're trying to use,
TO_DAYS({today}) - TO_DAYS({trandate})
, is giving an invalid expression error because the TO_DAYS
function is not recognized in NetSuite saved searches.
Instead, you can directly subtract the {trandate}
from {today}
. The formula should be {today} - {trandate}
. This will give you the difference in days between the two dates.
Please note that the result of this formula will be a decimal number, representing the difference in days and fractions of a day. If you want to round this to the nearest whole number, you can use the ROUND
function: ROUND({today} - {trandate}, 0)
.
If you want to always round up to the next whole number, you can use the CEILING
function: CEILING({today} - {trandate})
.
Remember to set the formula type to Formula (Numeric)
as the result of subtracting two dates is a number.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
09/10/2024, 5:10 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.88357389
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.857572
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.856682301
Celigo AI
09/10/2024, 5:10 PM