Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

LookupSet Contain function

$
0
0

Hello everyone. Is it possible to use the lookupset function to validate data in a separate table.  I want to check if a particular table has "Yes" as a selection and came up with something like below but that doesn't work. It works if I just do "Lookup" but that only checks the first row of data, as opposed to the entire entry for that specific person. So a person like Joe can have many No answers and 1 Yes answer and if he does have one or more yes answers I want the overall field to show true. Has anyone had any experience with this? Thanks in advance.

IIf(LookupSet(Fields!ID.Value, Fields!ID.Value, Fields!Answer.Value, "Q&A") = "Yes", True, False)


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>