I am looking for assistance in creating a query. I am creating some hospital score cards and one indicator is falls. There are 95 hospitals that I need to create score cards for and they can choose up to 10 measures for falls. I want to create a query that essentailly picks which fall measure is listed on score card. Falls1 is my best measure and so on. Hospital had the option to choose any fall measure. How can I create a query to select the one they have chosen?
For example I want fall1 first, if blank then fall2, etc. Once I choose Fall1 I do not want the others retured in my query for that hospital.
I have tried the following Falls NUmerator: IIf([HRET_MeasureID]="EOM-Falls-37",[numerator],IIf([HRET_MeasureID]="EOM-Falls-38",[numerator],IIf([HRET_MeasureID]="MO-FALLS-4-1",[numerator],"missing")))
The challenge is that if a hospital has data for measure 37 and 4-1 it includes both. I want the query to only return on one of the falls measures. The returned measure should be based on the hieacrchy listed in the iif statement.
For example I want fall1 first, if blank then fall2, etc. Once I choose Fall1 I do not want the others retured in my query for that hospital.
I have tried the following Falls NUmerator: IIf([HRET_MeasureID]="EOM-Falls-37",[numerator],IIf([HRET_MeasureID]="EOM-Falls-38",[numerator],IIf([HRET_MeasureID]="MO-FALLS-4-1",[numerator],"missing")))
The challenge is that if a hospital has data for measure 37 and 4-1 it includes both. I want the query to only return on one of the falls measures. The returned measure should be based on the hieacrchy listed in the iif statement.
Last edited: