Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Subtracting week numbers
Not sure whether something's changed in recent NS upgrade that we've only just noticed, but we're finding the behaviour has changed for doing calculations on week numbers.
We previously used a report which would use week numbers to compare weekly sales - simply comparing {today} to {trandate} - 1 week etc.
Using this formula: to_char({today},'IW')-1
However, we've now noticed that on single digit weeks, it strips the 0
So where we used to get 08, we now just get 8 - this then breaks the Decode instruction used to compare the dates with the trandate (which retains the zero)
Is there a simple way around this, rather than having to add a length() calculation into the formula?