Link to home
Start Free TrialLog in
Avatar of tanj1035
tanj1035

asked on

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)
Avatar of ValentinoV
ValentinoV
Flag of Belgium image

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
Avatar of tanj1035
tanj1035

ASKER

Thanks, ValentinoV, I read your article which is very good. But, I do not how I can apply it to my question.
ASKER CERTIFIED SOLUTION
Avatar of Nico Bontenbal
Nico Bontenbal
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial