SSRS 2014 Repead标题行和父组名称

时间:2015-10-13 08:09:31

标签: sql-server reporting-services

您好我想设计一个报表,在一个单独的页面上显示每个Group2,重复父Group1 Value和Report Header。

以下是我用来测试此问题的查询。

我尝试设置FixedData,RepeatOnNewPage等。 我错过了什么?

SELECT 'Main' AS Group1, 'Sub' AS Group2, 'Detail' AS GroupDetail, 1 AS Price UNION SELECT 'Main' AS Group1, 'Sub2' AS Group2, 'Detail' AS GroupDetail, 1 AS Price UNION SELECT 'Main' AS Group1, 'Sub2' AS Group2, 'Detail2' AS GroupDetail, -1 AS Price UNION SELECT 'Main' AS Group1, 'Sub2' AS Group2, 'Detail2' AS GroupDetail, 1 AS Price UNION SELECT 'Main2' AS Group1, 'Sub3' AS Group2, 'Detail3' AS GroupDetail, 1 AS Price UNION
SELECT 'Main2' AS Group1, 'Sub4' AS Group2, 'Detail3' AS GroupDetail, 1 AS Price UNION
SELECT 'Main2' AS Group1, 'Sub4' AS Group2, 'Detail4' AS GroupDetail, -1 AS Price UNION
SELECT 'Main2' AS Group1, 'Sub4' AS Group2, 'Detail4' AS GroupDetail, 1 AS Price

1 个答案:

答案 0 :(得分:0)

KeepWithGroup: After 
RepeatOnNewPage: True

那些设置在头排和girst组上的技巧

来源: 案例2:一行组 - 标题行中的列标题 - 重复不起作用 http://www.sqlchick.com/entries/2011/8/20/repeating-column-headers-on-every-page-in-ssrs-doesnt-work-o.html