If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Group Selection Formula, Filtering Records: Crystal Reports 8.5

Hi,

I am having trouble filtering out certain records in my Group Selection(or Record Selection if it could be used) with summary and formula fields in Crystal 8.5. The formula(@NET UNRL AS A % OF BV BY CUSIP) is..

I am trying to show only records where @NET UNRL AS A % OF BV BY CUSIP is > 200. However, when I try to use this formula in the Group Selection it tells me "The Formula Must be Evaluated Later". Also, if I try to use the code for the @NET UNRL AS A % OF BV BY CUSIP formula in the Group Selection it tells me there is a division by 0. I have tried numerous variations of IF statements to eliminate the division by 0 and obtain the proper records, but nothing has seemed to work. My report is grouped by Currhold.CUSIP. Any help is greatly appreciated, and thanks in advance!

Re: Group Selection Formula, Filtering Records: Crystal Reports 8.5

The answer is in the "The Formula Must be Evaluated Later" message. Your group is based on the Currhold.CUSIP field. You cannot use aggregations based on this field to filter the group becuase you create a paradox - you can't determine which records should be in the group until you proccess the group. You generally have two options
1 - create a view or stored procedure in your database to create the aggregations and then filter based on the results.
2 - use a sub report to create the aggregations and then only display qualifying records in the main report.
I would choose #1.