SSRS : How to Combine Data from 2 different DataSets
In Some Cases we need to show the Data from 2 different Datasets . For Example if we take a Telecome example
If we want to see the [Number Calls] and [Total duration] of those calls to Diifferent countries On montly basis and Yearly Basis side by side .
To Achieve This we need to Use LookUp function .
=Lookup(Fields!CountryCode.Value,Fields!CountryCode.Value,Fields!Number_of_calls.Value,"YearDataSet")
If we want to see the [Number Calls] and [Total duration] of those calls to Diifferent countries On montly basis and Yearly Basis side by side .
To Achieve This we need to Use LookUp function .
For the Above example we can create 2 different data sets one for Montly Result based on country code and another Yearly Result based on country code .
We can join 2 data sets with the Help of LookUp Function . See the below sample
MonthDataset is the Primary Dataset for the table so to get the yearly data we need to use Lookup function on CountryCode column .
Comments
Post a Comment