Hi all,
I am trying to use criteria for Product column (i.e keep only product A) Total for Sales column to aggregate the values and it seems that is cannot be done simultaneously.
Product Sales
A 34
A 45
B 21
A 11
B 23
Eventually i want to get a table like below
Product Sales
A 90
I get the following warning : you tried to execute a query that does not include the specifies expression as part of an aggregate function.
Why is this happening. I don't want to create 2 different queries to achieve it. Is there a way to do it i the same query?
Thanks in advance
I am trying to use criteria for Product column (i.e keep only product A) Total for Sales column to aggregate the values and it seems that is cannot be done simultaneously.
Product Sales
A 34
A 45
B 21
A 11
B 23
Eventually i want to get a table like below
Product Sales
A 90
I get the following warning : you tried to execute a query that does not include the specifies expression as part of an aggregate function.
Why is this happening. I don't want to create 2 different queries to achieve it. Is there a way to do it i the same query?
Thanks in advance