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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grouping data in report

Status
Not open for further replies.

kveni

MIS
Aug 27, 2004
7
0
0
US
I need to group the data in two based on a condition. ie., I want to group all the parents who have less than 3 children in X group and parents who have 3 or more in group Y ?? How do I do this?

 
You really can't do this at the report level. This sort of activity should happen at the query level. You likely need a union query and a couple of subqueries.

Steve Krandel
VERITAS Software
 
Can we do it at the universe level?

I need to display both the X and y grps of data under one column grp.
 
Without seeing your database, it's very hard to see.

You could define an object called GROUPING
CASE
When Children < 3 then "X"
else "Y"
end

This is how I "bucket" data. You just can't use this method if you have to aggregate before you group.

Steve Krandel
VERITAS Software
 
If the number of children is returned in the result set then it should be possible to bucket the data using a variable, i.e. If Children < 3 Then "X" Else "Y"

Put the variable in a block and use a break, or maybe you could use it to Section but not tried it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top