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 .





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


=Lookup(Fields!CountryCode.Value,Fields!CountryCode.Value,Fields!Number_of_calls.Value,"YearDataSet")


MonthDataset is the Primary Dataset for the table so to get the yearly data we need to use Lookup function on CountryCode column .

Comments

Popular posts from this blog

SSAS : A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient). + Solution

SSIS Error : Unable to infer the XSD from the XML file. The XML contains multiple namespaces