SteveL13
asked on
How sum values in query designer using certain criteria
I'm trying to sum values in query designer using certain criteria. Here is what I have so far but isn't working:
Account: [Balance] where [Type]="Football Account"
I have several other fields to capture in the query which is why I need to do it this way.
Account: [Balance] where [Type]="Football Account"
I have several other fields to capture in the query which is why I need to do it this way.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@Steve,
did you tested my suggestion?
did you tested my suggestion?
ASKER
I didn't know how to work with your suggestion. Pat's suggestion worked out for me.
Pat's suggestion worked out for me.what?! can you please explain how did that helped...
if yes, then just have select sum(balance) from...group by...
if not, then you must use a iif() function, like iif([Type]="Football Account,[Balance),0), then do a sum of that calculated field.