简体   繁体   English

如何为同一报表创建具有两个不同参数选择数据的 SSRS 报表订阅?

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

I have a new requirement with SSRS reporting.我对 SSRS 报告有新要求。 i have an SQL query with two parameters which are start and end date.我有一个 SQL 查询,其中有两个参数,即开始日期和结束日期。 the requirement is i want to create subscription for the report to be sent to particular email on weekly basis.要求是我想为每周发送到特定 email 的报告创建订阅。 the report should be sent as an excel file with two worksheets.报告应作为带有两个工作表的 excel 文件发送。 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()'.第一张表应将参数值中的数据选为“Startdate=getdate-7 and enddate=getdate()”,第二张表应将参数值中的数据选为“Startdate=oct-18-2019 and endate=”获取日期()'。 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.或者你也可以帮助我,如果这可以通过一个 email 订阅发送但有两个不同的 excel 表。

You can do 1 report with 2 Data-Driven Subscriptions.您可以使用 2 个数据驱动订阅来生成 1 个报告。

Click Here for documentation单击此处获取文档

Check Here for a good article with a clear examples 在这里查看带有清晰示例的好文章

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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