0

店铺编号
店铺专区

在我的报告查询中,每个商店编号都分配有一个商店区域。我已按 Store Zone 对行进行分组,并按 Store Number 对列进行分组。

该报告显示不在 Store Zone 组中的 Store Numbers 列。除了标题行中的 Store Number 之外,这些列中没有数据。

如果 Store Number 列不属于当前 Store Zone 组,如何隐藏它?

例如,Store1 & Store3 属于 Store Zone A。Store 2 属于 Store Zone B。我不想在 Store Zone A 分组的部分中看到 Store2 的列,我也不想看到该列用于 Store Zone B 组中的 Store1 和 Store3。我在 Store Zone 组之间有一个分页符。

4

1 回答 1

0

If you can have the store Zone group and the Store Number groups both on Column or both on Row, then the behavior you are looking for is the default. But when one is on the rows and one is on columns, then it is more difficult to achieve this: A Tablix needs to have the same rows down the whole thing: even across pages.

One way to get this result:

  1. Create a simple report taking Store Zone as a parameter. It should return the rows and columns for a single zone and will be used as a subreport for the following:
  2. Create a parent report which has a dataset returning the list of distinct zones. It should have a table with one or two detail rows, and a single column, no column groups.
  3. Place the subreport into one of the detail cells in the parent report and connect the zone parameter to the Fields!StoreZone.Value.

This will repeat the subreport as needed, and each instance can have different columns.

于 2013-08-23T02:26:51.330 回答