Hello everyone,
I’ve created an accounts payable database where we can track invoices by the amount of days each invoice is aging, the amount of the invoice and the organization that we’re paying the invoice for. I’m now trying to create a query that will give a dashboard snapshot showing the organization, the total number of invoices that are 21 days or older and the sum total of those invoices…got that part.
Here’s where I’m hitting a snag:
In the next three columns, I want to break out the total number of invoices to reflect how many are:
>=21 and <46 (column will be titled “Yellow”)
>=45 and <60 (column will be titled “Orange”)
>=60 (column will be titled “Red”)
Here’s what I’ve tried:
Yellow: Count(IIf([Days Aging]>=21 and <46))
Yellow: Count(IIf([Days Aging]>=21 and <46, 1, 0))
Yellow: Sum(IIf([Days Aging]>= 21 and <46))
The query I’m pulling the information from contains a Days Aging column, and the data in that column is a numeric value.
Any suggestions?
I’ve created an accounts payable database where we can track invoices by the amount of days each invoice is aging, the amount of the invoice and the organization that we’re paying the invoice for. I’m now trying to create a query that will give a dashboard snapshot showing the organization, the total number of invoices that are 21 days or older and the sum total of those invoices…got that part.
Here’s where I’m hitting a snag:
In the next three columns, I want to break out the total number of invoices to reflect how many are:
>=21 and <46 (column will be titled “Yellow”)
>=45 and <60 (column will be titled “Orange”)
>=60 (column will be titled “Red”)
Here’s what I’ve tried:
Yellow: Count(IIf([Days Aging]>=21 and <46))
Yellow: Count(IIf([Days Aging]>=21 and <46, 1, 0))
Yellow: Sum(IIf([Days Aging]>= 21 and <46))
The query I’m pulling the information from contains a Days Aging column, and the data in that column is a numeric value.
Any suggestions?