reporting services - SSRS Get first Item LookUpSet -
so have dataset contains list of dates , foreign keys. need first date foreign key. have tried expression below:
=first(lookupset(fields!title.value, fields!linked_study.value, fields!subject_enrollment_date.value, "fpi"))
but returns #error.
does know why expression doesn't work and/or how able first item out of lookupset.
if still unclear please don't hesitate ask.
lookupset() returns array - can demand 0th item array adding suffix (0) lookupset():
lookupset(fields!title.value, fields!linked_study.value, fields!subject_enrollment_date.value, "fpi")(0)
edit: credit @gravinco pointing out - using lookup() instead of lookupset() have same effect, since return first matching value. think that's better way of doing original answer.
Comments
Post a Comment