nuttyernurse
Technical User
I am new, but getting better thanks to all the great information here! I am trying to use two different fields to search for specific words and return a value of 1 if present. I then sum the field and get my total ambulance arrivals. The reason I am doing this is the data could have been entered in either of these fields, but only want to count it once.
I have tried the following (simple)formula:
if "Ambulance" in {EDMS_ARC.F3} then 1 else
if "Ambulance" in {EDMS_ARC.F4} then 1 else
if "EMS" in {EDMS_ARC.F3} then 1 else
if "EMS" in {EDMS_ARC.F4} then 1 else
if "Rural" in {EDMS_ARC.F3} then 1 else
if "Rural" in {EDMS_ARC.F4} then 1 else
if "Grady" in {EDMS_ARC.F3} then 1 else
if "Grady" in {EDMS_ARC.F4} then 1 else
if "AMR" in {EDMS_ARC.F3} then 1 else
if "AMR" in {EDMS_ARC.F4} then 1 else 0
There are several values to go in the quotes, but is there a more accurate way to do this? I think my data is dirty.
Thanks in advance!
I have tried the following (simple)formula:
if "Ambulance" in {EDMS_ARC.F3} then 1 else
if "Ambulance" in {EDMS_ARC.F4} then 1 else
if "EMS" in {EDMS_ARC.F3} then 1 else
if "EMS" in {EDMS_ARC.F4} then 1 else
if "Rural" in {EDMS_ARC.F3} then 1 else
if "Rural" in {EDMS_ARC.F4} then 1 else
if "Grady" in {EDMS_ARC.F3} then 1 else
if "Grady" in {EDMS_ARC.F4} then 1 else
if "AMR" in {EDMS_ARC.F3} then 1 else
if "AMR" in {EDMS_ARC.F4} then 1 else 0
There are several values to go in the quotes, but is there a more accurate way to do this? I think my data is dirty.
Thanks in advance!