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

Group by a run-time parameter 2

Status
Not open for further replies.

johnstrang

Technical User
Dec 8, 2003
60
CH
Hi,

Using CR 8.5 with a direct connection to an Oracle database.

I have a run-time paramater {?TEAM} and would like to be able to have a report on with 2 groups:
1. DEPARTMENT_NAME = {?TEAM}
2. Others

I have tried using a formula as group name, but the parameter field is not available.

Is it possible to do what I want?

Many thanks in advance to anyone who replies :)

John

 
I think you are on the right lines.
You need a parameter field to get the team name.
You need a formula field to derive a value which can be used for grouping.

The formula field would be :

if {mytable.department_field}={?Team1} then
" " & {mytable.department_field}
else
"Others"

Then group on this formula field.

The extra leading space is to force the selected value to appear before 'others' in the grouping sequence.


 
Thanks to chelseatech and lupins46 - their suggestions worked perfectly.

I'm now annoyed with myself because I should have known how to do this without asking, but my mind went blank. (Maybe I should say I was too busy with so many other tasks.......)

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top