通过在 SSRS 2008 中列出标题来扩展(宽)或缩小标题
Extend(wide) or Narrow titles by listing them in SSRS 2008
我在 SSRS 2008 中有一个 table,例如:
Zone NumOfPeople
Zone1 50
Zone2 30
Zone3 20
我想把table改成:
Zone NumOfPeople
+ AllZones 100
当我点击 +
标志时,我希望看到如下内容:
Zone NumOfPeople
- AllZones Zone1 50
Zone2 30
Zone3 20
然后单击 -
标志应该 return table 首次显示。所以我想通过单击 +/- 来扩大或缩小 table。我找不到说明如何操作的相关页面。如果有人帮助我理解,我将不胜感激。谢谢!!
编辑1:
SQL 在 SSRS 中查询 table:
Select Zone, Count(distinct Person_Id) as NumOfPeople
From myTable
group by Zone
网上有很多关于在 SSRS 中切换 expand/collapse 操作的示例。对于您的要求,有必要创建一个额外的列,您可以在查询中进行转换或在 tablix 文本框中对其进行硬编码。
我的方法从查询中生成 All Zones
组并将该列命名为 All
.
Select 'All Zones' [All],Zone, Count(distinct Person_Id) as NumOfPeople
From myTable
group by Zone
添加具有以下数据排列的 tablix。
在 Row Groups
中右键单击 Zone
子组(所有子组)和 select 在 Visibility
选项卡中的 Group Properties...
设置以下设置.
Select 正确的 All
切换项,在我的例子中是 All1
它将预览以下内容:
如果这对你有帮助,请告诉我。
我在 SSRS 2008 中有一个 table,例如:
Zone NumOfPeople
Zone1 50
Zone2 30
Zone3 20
我想把table改成:
Zone NumOfPeople
+ AllZones 100
当我点击 +
标志时,我希望看到如下内容:
Zone NumOfPeople
- AllZones Zone1 50
Zone2 30
Zone3 20
然后单击 -
标志应该 return table 首次显示。所以我想通过单击 +/- 来扩大或缩小 table。我找不到说明如何操作的相关页面。如果有人帮助我理解,我将不胜感激。谢谢!!
编辑1: SQL 在 SSRS 中查询 table:
Select Zone, Count(distinct Person_Id) as NumOfPeople
From myTable
group by Zone
网上有很多关于在 SSRS 中切换 expand/collapse 操作的示例。对于您的要求,有必要创建一个额外的列,您可以在查询中进行转换或在 tablix 文本框中对其进行硬编码。
我的方法从查询中生成 All Zones
组并将该列命名为 All
.
Select 'All Zones' [All],Zone, Count(distinct Person_Id) as NumOfPeople
From myTable
group by Zone
添加具有以下数据排列的 tablix。
在 Row Groups
中右键单击 Zone
子组(所有子组)和 select 在 Visibility
选项卡中的 Group Properties...
设置以下设置.
Select 正确的 All
切换项,在我的例子中是 All1
它将预览以下内容:
如果这对你有帮助,请告诉我。