G
Guest
I have a report that is built off of a table. The table has two fields - an
ID number and a premium. In the report I have two expressions that do not
calculate the way I had hoped. The first one is:
="There were " & (IIf([premium]>50,Count([premium]),0)) & " participants pay
more than $50/month."
The expression should return a value of 4, but returns a value of 0.
The second expression is:
="There were " & Count(Min([premium])) & " participants pay the minimum ($"
& Min([premium]) & ")."
I get an error that you can not have an aggregate function in
expression(Count(Min[premium]). If I remove "Min" from the expression, it
returns a value greater than the number of records in the database.
I understand that reports run better off of queries, but I did not build
this database and at this point it seems easier to fix the two expressions
than to rebuild the report off a query and have to fix many expressions.
Please help
ID number and a premium. In the report I have two expressions that do not
calculate the way I had hoped. The first one is:
="There were " & (IIf([premium]>50,Count([premium]),0)) & " participants pay
more than $50/month."
The expression should return a value of 4, but returns a value of 0.
The second expression is:
="There were " & Count(Min([premium])) & " participants pay the minimum ($"
& Min([premium]) & ")."
I get an error that you can not have an aggregate function in
expression(Count(Min[premium]). If I remove "Min" from the expression, it
returns a value greater than the number of records in the database.
I understand that reports run better off of queries, but I did not build
this database and at this point it seems easier to fix the two expressions
than to rebuild the report off a query and have to fix many expressions.
Please help