"There in the dimension" was my fingers working faster than my brain....i should have said it is there in the fact....the schema is this
subno char 7
persno char 2
pcpid char 12
panelid char 5
measureName varchar 50
measureResult varchar 20
measureDate varchar 25
once i took a step back (thanks for asking the right question) the reason measureResult doesnt work became blindingly clear , so i did this to check my answer...
select
max(measureresult), measurename from factdiabetesmeasures group by measurename
98 SystolicBPCurPd
99 DiastolicBPPriorPd
Consult NephroScreenPriorPd
92 AICScreenPriorPd
99 DiastolicBPCurPd
Trig-High LDLCurPd
92.00 A1CCurrentPd
Microalb NephroCurPd
98 SystolicBPPriorPd
Trig-High LDLPriorPd
and realized that you can't do much in the way of varchar measures with result values like Consult, Trig-High and Microalbumin mixed up with 92s and 98s even if (or should i say especially if) they are varchars! I will clean up the data tomorrow and ask the clinicians if i can drop the rows out with Consult, Trig-High and Microalbumin instead of numbers and convert the measure column to long or decimal and try it again. Thanks so much for the second pair of eyes....i feel like an idiot, but im just learning to dance
btw, if my epiphany is NOT the answer, please correct my error! thanks again
drew