Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Merge Two Group Results Into One Result

Status
Not open for further replies.

hsandwick

Programmer
Sep 10, 2001
286
0
0
US
Crystal 2008
Oracle 10g

Report has two groups
Group A Region
Group B City

Group A Region results:
Region 0
Region 1
Region 2
Region 3

Want to merge Group A results when they are "0" or"1" as "Region 0"; all other Group A results remain broken out as they are.

Thanks!
 
Do a formula field, something like
Code:
if {region} in [0, 1] then 0
else {region}

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
Thanks, Madawc, that's how I'd approach it, too!

I'm wondering how to do it within the group select expert as an alternative.

No biggie. Appreciate your feedback.

-H
 
I think the formula approach is best but, if you insist, you can go to the Group Expert, Options, and change 'In Ascending Order' to 'In Specified Order' and customize group names and values.

hth,
- Ido

view, export, burst, email, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top