That would depend upon how you're creating these groups, and what version of Crystal you're using.
One formula containing:
If {table.beast} = "DOGS" then
"DOGS"
else If {table.beast} = "CATS" then
"CATS"
else If {table.beast} = "FROGS" then
"FROGS"
ELSE
"OTHER"
Now use this formula to group on (you could also use the SWITCH function here).
if isnull({table.animal}) or
trim({table.animal}) = "" or
not({table.animal}) in ["Dogs","Cats","Frogs"]) then
"Other" else
{table.animal}
Show us what you tried. And what are you getting that's incorrect?
Also note that I suggested that you post the version of Crystal and database, add to that sample data and expected output and you'll likely get a good result.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.