简体   繁体   English

需要帮助以指定格式创建SSRS RDL报告

[英]Need help to create a SSRS RDL report in specified format

I have to develop a RDL report in the following format: 我必须以以下格式开发RDL报告:

在此处输入图片说明

I have stored procedure returning first block result set ie with Sr.No. 我已存储过程返回第一个块结果集,即带有Sr.No。 but don't know how to return result for second block ie for <----Current----> <---Last---> block because here I have to show values next to each Label. 但是不知道如何返回第二个块的结果,即<---- Current ----> <--- Last --->块的结果,因为这里我必须在每个Label旁边显示值。

Do we need to create multiple DataSet for this task OR we can achieve this in a single stored procedure? 我们是否需要为此任务创建多个DataSet还是可以在单个存储过程中实现?

Anybody suggest me how can we achieve this. 有人建议我如何实现这一目标。

One approach in this case would be to add the Label information to the underlying stored procedure, ie the same information repeadted for each Code , then only display this information once for each Code in group footer rows. 在这种情况下,一种方法是将Label信息添加到基础存储过程中,即为每个Code重复相同的信息,然后仅在组页脚行中为每个Code显示一次此信息。

This assumes that you can't just calculate the Label values for each Code from the rest of the DataSet. 假设您不能仅仅从其余的DataSet计算每个Code的Label值。

So, making some guesses about your data and assuming your updated DataSet looks like this: 因此,对您的数据进行一些猜测,并假设您的更新数据集如下所示:

在此处输入图片说明

You can create a report similar to this: 您可以创建类似于以下内容的报告:

在此处输入图片说明

Note that the Label information is displayed only once for each Code since the information is in the group footer rows. 请注意, Label信息对于每个Code仅显示一次,因为该信息位于组页脚行中。 Just specify the Label fields without any aggregation; 只需指定Label字段即可,无需任何汇总; this will just take the first row's values. 这将仅采用第一行的值。

Results look to match your requirements: 结果看起来符合您的要求:

在此处输入图片说明

You could approach this other ways, eg using the Lookup function or with Subreports, but this approach only required one table and one DataSet so seems simplest to me. 您可以采用其他方法,例如使用Lookup函数或使用Subreports,但是这种方法只需要一个表和一个DataSet,所以对我来说似乎最简单。

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

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