views:

34

answers:

1

I'm currently building a matrix style report.

After each rowgroup, i would like to add in a nice 2pt solid black border. Unfortunately not all fields in the matrix will have data in them, and therefore i don't seem to be able to use conditional formatting on the cell level.

I've tried using IIF(RowNumber("group") = 1, "Black", "Light Gray") For the top border, but it doesn't seem to get the answer right all the time.

I tried to put RowNumber("group") into a visible field, which both caused the fields that should be empty to fill with copies from other cells and showed RowNumber to be changing in the middle of a row (it was shown for each column group), on several occasions.

Anyone got an idea as to what i can do as an alternative?

A: 

Random thought: Can you put a   in empty cells to force contents using IIF to test for empty/null/nothing)?

Edit: OK, next guess...

Add a dummy hidden column that deals with the rownumbering you need?

gbn
Pretty sure i can't, the big issue is that if there isn't any content, the cell never gets evaluated. But i'll give it a swing and see what happens.
Grubsnik
Tried it with no luck. I can make it be empty but it still doesn't give me a correct value for rownumber, and thus allow me to do the desired conditional formatting.
Grubsnik
It Doesn't work like that with a tablix with partial data. The whole problem is that there is no datapoint for that particular x*y intersection. The only way to get around that, would be to construct the entire x*y matrix in sql, and then add in the empty values myself, while that is indeed possible, it makes for a poor solution when you can't be sure the dimensions of x and y will remain constant.
Grubsnik