I understand Crystal Reports has fallen out of favor with some in the development community and perhaps rightly so: I haven\'t used it in about 15 years. But when I did, I c
Neither Crystal nor SSRS will allow you to directly compare values in two different datasets on a row-by-row basis.
In both tools:
There is a reporting tool called BIRT that has a similar reporting paradigm to SSRS (ie. a web-style layout, instead of Crystal's banded reporting approach), includes much the same functionality as SSRS, is Open Source and enables you to link datasets together directly to create joint datasets. However, it is less intuitive to use than either Crystal or SSRS.
Stick with it - Reporting Services is an amazingly flexible reporting platform.
You can do what you want by specifying the dataset after the field name but you have to specify which Foo2 you want or how you want to deal with Foo2.
The way you do this is through aggregate functions. For example, lets say Dataset2 only has one row of data, then you get the first one:
=Fields!Foo1.Value / First(Fields!Foo2.Value, "Dataset2")
If there are many rows and you want to divide by the sum of Foo2 then you can do this:
=Fields!Foo1.Value / Sum(Fields!Foo2.Value, "Dataset2")
The point is, you are currently stepping through Dataset1 - you need to let Reporting Services know how to deal with Dataset2 in order to return the Foo2 you need.
I think your would have been resolved by now, however if u r facing same issue then you can use lookup
in expression.
It enable you to browse through values of other dataset while there is a common field in both the datasets
=Lookup(value in dataset1,value in dataset2, common field in both datasets, dataset name from which we need to get data)