I'm trying to get the dataset3 column value by calculating (substracting) dataset1 column value and dataset2 column value and I'm displaying dataset3 column value .
Dataset1:
FieldName1 - ID
FieldName2 - Name
Dataset2:
FieldName1 - ID
FieldName2 - Name
Dataset3:
FieldName1 - Exp [=First(Fields!ID.Value, "Dataset1")-First(Fields!ID.Value, "Dataset2")]
FieldName2 - Exp [=First(Fields!Name.Value, "Dataset1")-First(Fields!Name.Value, "Dataset2")]
Error msg:
The expression used for the calculated field '=First(Fields!ID.Value, "Dataset1")-First(Fields!Name.Value, "Dataset2")' includes an aggregate, RowNumber, RunningValue, Previous or lookup function. Aggregate, RowNumber, RunningValue, Previous and lookup functions cannot be used in calculated field expressions.
Example:
Dataset1:
ID Name
1 A
2 B
3 C
Dataset2:
ID Name
2 B
4 D
Output:
Dataset3:
ID Name
1 A
3 C
Please help!
Note: I tried with LOOKUP function but no luck.
=Lookup(First(Fields!ID.Value, "Dataset1"),First(Fields!ID.Value, "Dataset2"),First(Fields!Name.Value, "Dataset1"),Dataset1)