如何在ssrs报告中生成序列号

时间:2018-05-02 07:12:53

标签: reporting-services ssrs-2008 ssrs-2012

我想在sssrs报告中生成序列号,如下图所示。

enter image description here

是否可以在ssrs报告中生成这些数字?

2 个答案:

答案 0 :(得分:2)

最初在表格中添加一列,用于存储行号的计算并将其隐藏

您可以为每个组使用带有DistinctCount的RunningValue以获取组号。

表达式如下(标题,组,类别,标题)

= RunningValue(Fields!heading.Value, CountDistinct, "DataSet1")
= RunningValue(Fields!groups.Value, CountDistinct, "table1_Group1")
= RunningValue(Fields!category.Value, CountDistinct, "table1_Group2")
= RunningValue(Fields!title.Value, CountDistinct, "table1_Group3")

您的数字列表达式如下所示(textbox1包含标题的行号,textbox16用于组,...)

= ReportItems!textbox1.value
= Reportitems!textbox1.Value & "." & Reportitems!textbox16.Value
= Reportitems!textbox1.Value & "." & Reportitems!textbox16.Value & "." & Reportitems!textbox22.Value
= Reportitems!textbox1.Value & "." & Reportitems!textbox16.Value & "." & Reportitems!textbox22.Value & "." & Reportitems!textbox4.Value

enter image description here

enter image description here

答案 1 :(得分:0)

您可以在每个组标题中插入CONTENT。希望它有所帮助。

参考:如何添加每个组标题 - http://www.sqlcircuit.com/2013/08/ssrs-how-to-implement-alternate.html