I have the most basic formula that isn't working. Patients that have diabetes exist in the DIABETES table, and those that do not have it are not in the DIABETES table. I want to show all patients with a Y or N in that column indicating if they have diabetes.
if ({PATIENT.PAT_ID} = {DIABETES.PAT_ID})
then "Y"
else "N"
I am getting a Y for patients that exist in the DIABETES table, but am not getting the N for patients that don't.
The DIABETES table is left joined to the PATIENT table by PAT_ID
This should be working and its crazy that it isn't.
Any ideas?