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

How to define firm category in a formula? 1

Status
Not open for further replies.

dongw

Technical User
Sep 7, 2005
2
CA
Hello, everyone,

In the system, except for all the firm information, we have 2 seperate tables showing "High Risk Firms" and "Priority Firms" which are targeted firms. Both "High Risk Firms"and "Priority Firms" are included in the system already. Now I am trying to do an analysis comparing the activities between "Targeted Firms" and "Non-Targeted Firms". I created a formula to define the firm category as follows:

if {Organization.ORGID}={HRSK.Orgid}
then "High Risk"
else if {Organization.ORGID}={Priority.Orgid}
then "Priority"
else "Non-Targeted"

But it doesn't work. I don't know what's wrong.

Thanks a lot for your help.

Dong


 
First, you should have a left join FROM {Organization.OrgID} to {HRSK.ORGID} and FROM {Organization.OrgID} to {Priority.Orgid}. Then change the formula to:

if isnull({HRSK.Orgid}) and
isnull({Priority.Orgid}) then "Non-Targeted" else
if isnull({HRSK.Orgid}) then "Priority" else
if isnull({Priority.Orgid}) then "High Risk"

-LB
 
Hi, Lbass,

Thank you a lot for your quick reply.

It works.


Dong
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top