I have a report that does a count on a visit field that needs to ignore suppresed items. This formula is called @Count. Now I want to use the maximum @Count result in another formula but I do not know how. Please help, example below.
Patient Start End @Count Min Max Visit
John Doe
9/6/10 10/5/10 3 6
1 9/7/10
2 9/9/10
Attempting to take the maximum Count which is 2 in the example above, if it less than the Min then crRed else crNoColor.
Below is what I tried, but I got an error.
If {Table.Min}> Maximum({@Count}) and {Table.End} < CurrentDate then CrRed Else crNoColor
ERROR: This field '@Count' cannot be summarized.
Patient Start End @Count Min Max Visit
John Doe
9/6/10 10/5/10 3 6
1 9/7/10
2 9/9/10
Attempting to take the maximum Count which is 2 in the example above, if it less than the Min then crRed else crNoColor.
Below is what I tried, but I got an error.
If {Table.Min}> Maximum({@Count}) and {Table.End} < CurrentDate then CrRed Else crNoColor
ERROR: This field '@Count' cannot be summarized.