I have a Report Project which has 2 data sets. With dataset1 i get some values, make some calculations and then i'm trying to pas those calculated values as parameters in the second data set. Lets make a simple example:
Dataset1 takes no parameter and returns say ID, Rate, NPER, and PV
Dataset2 takes two parameters, the @ID and the @PMT value.
I make a calculation which returns the PMT Excel function with the following expression:
=-Pmt(First(Fields!Rate.Value, "Dataset1") / 100, First(Fields!NPER.Value, "Dataset1"), First(Fields!PV.Value, "Dataset1"))
I'm trying to use this expression into Dataset2 parameter @PMT
So far i cant make it work, it shows this error: Fields cannot be used in report parameter expressions.
I have tried to make parameters of Dataset2 as Internal or Hidden and specify a default value with the expression above but still dont work.
Thx in advance,
Best regards,
Mentor Ibrahimi