I am doing a sum of a line in a saved search (item...
# general
s
I am doing a sum of a line in a saved search (item search joining on transaction). When I don't group, the value is correct. When I group and sum, the value is doubled. Has anyone ran into this before?
z
If you have the same item on two lines, then it will add the value twice. You could switch to something like average to get around that
s
Not sure I follow? And basically need a column to show me which number occurrence this is.
a
Add transaction.mainline = false to criteria
s
That is there as well.
a
If you don't group anything does the saved search return 2 rows for each line of the transaction?
s
Sorry Zack, so the line is only there once. It seems like a bug. It's doubling the value based on the join or something. If I group it I see double the value. If I ungroup it I see each lines value that I'm looking for. But then when I sum it it does each line's value times two
If I don't group it it returns one line. If I group it it returns that one line but doubles the value
a
Do you have a criteria that is filtering anything using the “contains” operator. Like Item name contains Xxxxxx?
s
Nope.
a
How about multi locations? Do you have multiple locations and have a column for location on hand or location avg cost? (Any of the “location xxxxx” fields)
s
I have it filtered to a single location for testing sake
It returns a single line from the criteria. It just doubles the value when I summit
Sum it
a
Hmmm. Do you have a criteria for transaction.type ?
s
Yup
f
not sure this helps at all - I think I saw this somewhere but not positive. What if you were to specifically exclude 'tax line' (not sure that it what it is called) in criteria?
s
I'm already filtering that line out 😕
I've seen a few people on the internet say they've had a similar issue, but no one ever posted a fix
Ok, so this is an item search. When I look at a Pricing field, it's doubling the sum. Even if I filter on the price that I want. Is there a way to get around this?
a
Maybe add a formula to compare the price level field on the transaction to the pricing name Like CASE WHEN {pricing.name} = {transaction.pricelevel} THEN 1 ELSE 0 END equals 1
s
It doesn't have a price level on this type sadly
j
Does your search have results for Sales Team Member, and there are multiple persons listed on the Transaction Sales Team sublist?