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.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Formula for running total
Hi
For a saved search sublist, I was wanting to calculate a running total
At the moment, the formula is calculated as :
sum/* comment */(CASE WHEN {type}= 'Credit Memo' THEN {fxamount}*-1 WHEN {type}='Payment' then {fxamount}*-1 else {fxamount} end) OVER(PARTITION BY {fxamount} ORDER BY {trandate} asc ROWS BETWEEN 1 PRECEDING AND CURRENT ROW)
This is a modified version of the formula in https://blog.prolecto.com/2015/05/26/solving-the-netsuite-cumulative-saved-search-tally-challenge/
The calculation should be A(-$5,127.85)+B($112,987.80)=C(should be $107,859.95)
Which part of the formula do I need to adjust?
Tagged:
0