2 conditions from 2 datasets in expression of row visibility

Hi Experts,

In ssrs, I want to create an expression for the row visibility. But, the expression will contain 2 conditions from different 2 datasets. I have created an expression, but it does not pass in SSRS. The error message is
"The Hidden expression for the tablix ‘Tablix9’ refers to the field ‘launchdate’.  Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope. Letters in the names of fields must use the correct case."

Can some one help me to correct it?  Thank you.

=iif (monthname(month(today()))= Last(Fields!MonthName.Value, "DealStarts") or (Fields!launchdate.Value, "RowofTrendingVisibility")>=Parameters!StartDate.Value, true, false)
tanj1035Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ValentinoVBI ConsultantCommented:
As you have discovered you cannot refer to two different datasets like that.  The only option is using the lookup functions.  Have a read through following article for details, let us know if after that you need further help: Looking Up Data On Different Sources
0
tanj1035Author Commented:
Thanks, ValentinoV, I read your article which is very good. But, I do not how I can apply it to my question.
0
Nico BontenbalCommented:
Depending on your data you might also be able to use the scope parameter of an aggregate function to get the data for the other recordset. See:
https://msdn.microsoft.com/en-us/library/dd255270(v=sql.105).aspx
This is less complex than the Lookup function.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSRS

From novice to tech pro — start learning today.