Total amount for certain records

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to build an expression that will allow me to do a Total the
Amounts for APPROVED and DECLINED records in the Status field.

Anyone know how to do this?
 
No, I don't want a count of the APPROVED and DECLINED. I want to Total the
dollar amount in the Amount field when the Status is APPROVED and DECLINED.
 
Millie said:
No, I don't want a count of the APPROVED and DECLINED. I want to Total the
dollar amount in the Amount field when the Status is APPROVED and DECLINED.
Create a totals query. Group by Status. Sum of Dollar Amount.
something like

SELECT Status, Sum(Amount) As Total
FROM SomeTable
GROUP BY Status
ORDER BY Status ASC;

Your result would look like
Status Total
Approved $213,000
Declined $185,000
 
I already have that. What I want is an expression that will Total the
APPROVED and the DECLINED. So, instead of having $213 for one and $185 for
the other, I want a total of $398 for both.

Thanks for your help.
 
You don't want the Approved and Declined separated, correct?

SELECT Sum(Amount) As Total
FROM YourTableName
 
I have that and it comes up with a total for APPROVED and a total for
DECLINED. It's not adding them together.
Field: Amount
Table: Loan Activity
Total: Sum
 
I must be missing a step, because what I get is:

Status SumOfAmount
APPROVED $10,000.00
DECLINED $87,000.00

I was thinking I could build a Total expression that would combine the two
amounts so I would get $97,000.00

Jeff L said:
The statment I gave you will work.

Select Sum(Amount)
From [Loan Activity]

I have that and it comes up with a total for APPROVED and a total for
DECLINED. It's not adding them together.
Field: Amount
Table: Loan Activity
Total: Sum
 
Take the status out of your query and you will get 97000.

I must be missing a step, because what I get is:

Status SumOfAmount
APPROVED $10,000.00
DECLINED $87,000.00

I was thinking I could build a Total expression that would combine the two
amounts so I would get $97,000.00

Jeff L said:
The statment I gave you will work.

Select Sum(Amount)
From [Loan Activity]

I have that and it comes up with a total for APPROVED and a total for
DECLINED. It's not adding them together.
Field: Amount
Table: Loan Activity
Total: Sum

:

You don't want the Approved and Declined separated, correct?

SELECT Sum(Amount) As Total
FROM YourTableName



Millie wrote:
I already have that. What I want is an expression that will Total the
APPROVED and the DECLINED. So, instead of having $213 for one and $185 for
the other, I want a total of $398 for both.

Thanks for your help.

:


Millie wrote:
No, I don't want a count of the APPROVED and DECLINED. I want to Total the
dollar amount in the Amount field when the Status is APPROVED and DECLINED.

:

You don't need an expression. You can do this with a group query.
Select Status, Count(Status)
From YourTableName
Group by Status

Hope that helps!


Create a totals query. Group by Status. Sum of Dollar Amount.
something like

SELECT Status, Sum(Amount) As Total
FROM SomeTable
GROUP BY Status
ORDER BY Status ASC;

Your result would look like
Status Total
Approved $213,000
Declined $185,000
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top