简体   繁体   中英

how to create SSRS report subscription with two different parameter selection data for the same report?

I have a new requirement with SSRS reporting. i have an SQL query with two parameters which are start and end date. the requirement is i want to create subscription for the report to be sent to particular email on weekly basis. the report should be sent as an excel file with two worksheets. first sheet should have the data from the parameter value selected as 'Startdate=getdate-7 and enddate=getdate()' and the second sheet should have the data from the parameter value selected as 'Startdate=oct-18-2019 and endate=getdate()'. Could anyone help me how to achieve this? i know we can create two separate reports and send two different subscriptions for this. but not sure if we can acheive this sending this in one suscription. or you can also help me if this can be sent in one email subscription but with two different excel sheets.

You can do 1 report with 2 Data-Driven Subscriptions.

Click Here for documentation

Check Here for a good article with a clear examples

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM