1

I have a database with that shows invoices and how long it took to pay them. We grade according to the age of the invoice. I have a report set up that shows the employee their min time max time total of records. However, I am having a hard time adding the value that counts all records greater than 14 days and then another that counts all records less than or equal to 14 days. My total records equation is =Count([MaxOfAge]). That successfully brings out the total number of records I have tried =Count([MaxOfAge]>14) and =Count([MaxofAge])>14 and every other variation possible, but I just can't get it to work.

4

1 回答 1

2

使用IIf()如果返回 1,否则返回 0 的表达式[MaxOfAge]>14。然后将其嵌套IIf()Sum().

=Sum(IIf([MaxOfAge]>14, 1, 0))
于 2013-04-12T14:10:32.277 回答