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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -