Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,


I am working on crystal report and am relatively new to it.

I Added a formula field Per% and wrote the formula
Sum ({Masters_TService_TClass.abc})*100/Sum ({Masters_TService_TClass.Total})

But when I execute,I get the following error:
VB
Result of selection formula must be a boolean.

Error in file c:\Document~1\cubical6\LOCALS~1\Temp\temp_03ca344b-568e-4ea1-bea8-94f3ef92bbcd.rpt:Error in formula <group_selection>
'Sum({Masters_TService_TClass.abc})*100/Sum
'
Result of selection formula must be a boolean.
 </group_selection>


Same formula is running in another crystal report.
Even on the deletion of the formula and formula field Per%, I am getting the error.

Bye
Posted
Comments
Prerak Patel 4-Nov-11 8:34am    
What selection formula is used in your crystal report?

Try something like this. Is it a selection formula BTW?
Sum ({Masters_TService_TClass.abc})*100/Sum ({Masters_TService_TClass.Total}) > 0
 
Share this answer
 
Open Formula Workshop by editing the formula, Expand Selection Formulas, select Group Selection - now formula will appear on right side. Select that and delete.

DONE!!!
 
Share this answer
 
Hello Thnx,

But My issue is I wrote the formula using the editor and even on deleting the formula field and the respective field 'abc',why is my crystal report giving the error when the formula no longer exists.


TC
 
Share this answer
 
Comments
Rajesh Anuhya 30-Jan-12 5:53am    
Post your comment under the answer.
--RA
Member 9793349 18-Jul-13 4:37am    
I have problem when i want to sum columns time in crystal report , but it doesn't work and i got Error " selection formula must be a boolean" so please , anyone has some answer please ..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900