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!

Filter field based on values within another field

Status
Not open for further replies.

jcs2923

MIS
Sep 22, 2006
4
0
0
US
I have a report that uses the same table.field twice as two seperate columns. In the first column, I need to filter by the value of another column. In SQL terms, I would like to select field 1 value where field 2 valuek = x and in the second column I would liket o select field 1 value where field 2 value = y. I tried the select wizard, but my selections were used for the entire report and I need to use this filter for only one column. Any help would be appreciated.

 
Don't create the formulas in the record selection area. Go to field explorer->formula->new and create the formulas there, as in:

//{@field1whenx}:
if {table.field2} = "x" then {table.field1}

//{@field1wheny}:
if {table.field2} = "y" then {table.field1}

Then place these in the detail section of your report.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top