Question

Store Number
Store Zone

In my report query, each Store Number is assigned a Store Zone. I have grouped rows by Store Zone and columns by Store Number.

The report displays the columns for Store Numbers that are not in the Store Zone group. There is no data in these columns other than the Store Number in the header row.

How do I hide a Store Number column if it doesn't belong to the current Store Zone group?

So for example, Store1 & Store3 belong to Store Zone A. Store 2 belongs to Store Zone B. I do not want to see the column for Store2 in the section that groups Store Zone A, and I don't want to see the column for Store1 and Store3 in the Store Zone B group. I have a page break between Store Zone groups.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top