Hello all, I am looking to create a saved search Inventory items sold count for 30 days, 60 days ,90 days, 120 days +. Is there any formula that can help to get the count for the required days only. I tried one formula for 30 days 'case when {trandate} >= ({today}-30) then {quantity} else 0 end' and it seems to work well. But did not found how it will work for 120+ days . Any help will be appreciated. Thanks!
s
Suitestallion
06/17/2021, 5:58 PM
Try SA 67998, i think it will be a good start
Suitestallion
06/17/2021, 5:58 PM
Transaction Saved Search > Item Quantity On Hand and Quantity Sold as of specific period
n
Netsuite solutions
06/17/2021, 7:04 PM
Thank you , I am looking something to have different columns for Quantity sold in 30 days, Quanitity sold in 60 days
s
Suitestallion
06/17/2021, 7:25 PM
do you want 30, 60, 90, 120+ or month will do?
Suitestallion
06/17/2021, 7:25 PM
• Select Date
◦ _Summary Type_: Select Group
◦ _Function_: Select Month
👍 1
n
Netsuite Tragic
06/19/2021, 8:03 AM
I often do a similar one comparing posting periods. Something like CASE WHEN {postingperiod} = TO_CHAR(ADD_MONTH({today},-2),’Mon-YYYY’) THEN {quantity} ELSE 0 END
This one gives the quantity from 2 months ago. You can add additional columns for your other periods.