This topic contains 7 replies, has 0 voices, and was last updated by jmcadams 8 years, 2 months ago.
-
AuthorPosts
-
August 23, 2016 at 10:37 am #5154
jmcadamsI’m not new to Netsuite by any means so I understand it is very difficult to pull associated records into a single saved search but we need it and this one has my head spinning. Anyone willing to help me figure out what is going on?
Customer Saved Search
1) Add Criteria for July 2016 invoices.
2) Result return the invoice Amounts.
Fine
3) Add Criteria for Cases Closed in July 2016
4) Add Case Count to Results
Case Count is accurate but invoice Amount is way off.
This is a cached copy. Click here to see the original post. -
August 23, 2016 at 1:06 pm #5155
VoltronRemove the grouping and see what it’s doing. My guess is it’s adding up the invoices as many cases as there are. If there is 1 invoice and 20 cases, you’ll see the invoice amount summed up 20 times. I *think* there’s a way to use DISTINCT in your formula, but not entirely sure that would solve this.
-
August 23, 2016 at 1:58 pm #5156
david.smithUser group on your invoice instead of sum
-
August 23, 2016 at 2:19 pm #5157
jmcadamsRemove the grouping and see what it’s doing. My guess is it’s adding up the invoices as many cases as there are. If there is 1 invoice and 20 cases, you’ll see the invoice amount summed up 20 times. I *think* there’s a way to use DISTINCT in your formula, but not entirely sure that would solve this.
I wish there we had more ‘Amount’ options to choose from (sarcasm) but I think you are right, it is adding the invoice sum for each case record returned. I’m not familiar with DISTINCT…
-
August 23, 2016 at 2:52 pm #5158
jmcadamsOriginally posted by Voltron
View Post
Remove the grouping and see what it’s doing. My guess is it’s adding up the invoices as many cases as there are. If there is 1 invoice and 20 cases, you’ll see the invoice amount summed up 20 times. I *think* there’s a way to use DISTINCT in your formula, but not entirely sure that would solve this.
This pretty much sums up why its doing this after I add cases to Criteria. I don’t know DISTINCT so I’ll have to look into that more but at least that explains why its doing this now if I can find a way around it.
-
August 23, 2016 at 2:56 pm #5159
jmcadamsOriginally posted by david.smith
View Post
User group on your invoice instead of sum
Won’t work – need the sum of the all the invoices in a single row per client. Sounds so simple!
Client – # of Closed Cases in Previous Month – Total Invoice Amount in Previous Month
-
August 24, 2016 at 9:18 am #5160
david.smithMay seem silly, but have you put the mainline = T so you’re not pulling line level results?
-
August 24, 2016 at 10:11 am #5161
jmcadamsWhen mainline = T the GROUPED amount value in the saved search is not accurate.
Saved Search Amount mainline = T is $5,958.49
Saved Search Amount no mainline criteria is an the accurate total (after you manually add them together)
-
AuthorPosts
You must be logged in to reply to this topic.