Question

I have a matrix which contains a rowgroup and groups my products based on the Category. I have three categories: Laptops, Tablets, Televisions. My first two categories contain columns i.e. RAM which I don't want to display for the Televisions. Each category is separated by a page break. I'm trying to hide the column 'RAM' if the Category name is 'Televisions' but only for the specific page

My structure:

  • [Categories]
  • [ProductID] [Processor] [RAM] [Colour] [etc]

Desired result:

  • [Laptop]
  • [125] [Intel Pentium] [250 MB RAM] [Black] [etc]

Desired result:

  • [Television]
  • [126] [Ix TV processor] [White] [etc]

Current result:

  • [Television]
  • [126] [Intel Pentium] [need to hide this] [White] [etc]
Was it helpful?

Solution

It is possible to do. The reason you're having trouble with it is because the matrix column falls outside of the category row-grouping scope. To hide the entire column, you have to move the category group above it. The easiest way to do that is to nest your matrix inside of a list control. Put your Category grouping/page breaks at the List level, and then set your RAM column of the matrix (which is now entirely inside of the category grouping scope since it is inside the list control) visibility based on the value of the Category as follows:

=Iif(Fields!Category.Value = "Televisions",True,False)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top