I'm creating a saved search to get the average quantity for all sales orders. My results are as follows. But when I run it, if there are multiple items in a sales order, the Internal ID is counted as many as the item lines in the SO, which shouldn't be the case since it is one SO only.
s
Sandii
05/03/2021, 4:34 PM
internalid is the internal id of the sales order, and since you are getting the lines, this would be expected. It's going to reutrn the same internalid (of the sales order) for every line
l
Luis
05/03/2021, 4:44 PM
Is there a workaround for this using a formula in the saved search itself? Should I create a stored header level total quantity field then (which I am trying to avoid)?
s
Sandii
05/03/2021, 5:13 PM
I dont really understand what your summary columns are trying to accomplish, what internalid are you trying to count?
l
Luis
05/03/2021, 6:35 PM
Internal ID of the sale prder
n
Netsuite Tragic
05/03/2021, 11:17 PM
Use a Forumla (numeric) Maximum, COUNT(DISTINCT({internalid))
l
Luis
05/04/2021, 2:35 PM
Thank you! I updated as well the formulas of the other fields and it worked, thanks to that eye-opener