I'm trying to switch a value in a field based on a row value if its able to match up to another value in a separate dataset.
My datasets are as follows:
Dataset1
NameCountry
DaveUK
MikeFIN
JohnES
Dataset2
Country
UK
SCOT
IRE
WALES
IOM
Desired Report Output
NameUK Indicator
Dave YES
Mike NO
JohnNO
I'm trying to wrap an expression around the [Country] value from Dataset1 so that if [Dataset1].[Country] matches any value in [Dataset2].[Country] then my switch will churn out the value "YES" otherwise I'd like the value "NO".
Because of the database structure and how I'm returning these values creating a left outer join in the main dataset query slows the query by 30 seconds, and this is outside of my control. Adding a CASE statement to the main dataset in this scenario isn't something I'd like to do, hence trying to find a way SSRS can work this out for me. Dataset2 is only small and contains 6 records, but this needs to stay like this, because if any values are added/removed the report should be dynamic.