Ok guys. I'm losing my mind. I appreciate your previous replies. I'm able to get the data now based on your ideas, but depending upon where I place IsNull({service_call.call_source_id}) or {service_call.call_source_id} <> "SAP", other portions of my formula is ignored. Here's my complete formula. Based on this formula, it will pull employees even if my formula says otherwise. If I move the isnull lines around, different results occur.
{order_line.order_type_id} = "service_order" and
IsNull({service_call_env.project_code}) or {service_call_env.project_code} <> "BICYCLE_TAIWAN" and
{person.is_employee} = "N" and
{order_stat.descr} <> "AdvancedBilled" and
not ({service_call.callt_id} in ["NO_CHARGE_ACCESSORIES", "NO_INVOICE_RECEIVED", "TRACKING"]) and
not ({service_call_env.bunn_service_type} in ["CUSTOMER_CANCELLED_ORDER", "PHONE_FIXED"]) and
{order_line.order_stat_uniq_id} in [500, 600, 700] and
{service_call_env.resolve_date} in currentdate to Currentdate - 180 and
not ({service_call.sa_person_id} in ["13703-1", "CANADA"]) and
IsNull({service_call.call_source_id}) or {service_call.call_source_id} <> "SAP"
Edited by db3712 - 28 Sep 2012 at 6:53am