Hi Swathi,
According to your description, you want to pass all Sale Region values to the sub report when you click on the total Amount ($18,263,182). Right?
In Reporting Service, we cannot pass the sale region value at aggregate level to the sub report. And if we do this, only the first value will be passed to the sub report. In this scenario, when you click on the total amount, you need to pass month field
value to the sub report and query all sale regions based on month value. We have tested in our local environment. Please refer to steps below:
- Right-click the sale and Sum(sale), then select Text Box Properties and go to Action tab.
- Select Go to report and add parameter like below (sale pass month and saleregion, Sum(sale) pass month):
- Go to the next report (Report5). Create two datasets to query the month and saleregion parameter. The month parameter available values from month dataset. The saleregion parameter available and default values from saleregion dataset. Ps: saleregion must
select Always refresh in advanced tab.
main dataset query: select * from table_8 where month = @month and saleregion in (@saleregion)
month dataset query: select distinct month from table_8
saleregion dataset query: select saleregion from table_8 where month = @month
The result is like below:
If you have any question, please feel free to ask.
Regards,
Shrek Li