9

I'm trying to figure out, how I can hide those rows in my report where Total Allocation and Total Cost IN BOTH COLUMNS TOGETHER are 0 in SSRS 2008.

For example:

Total Allocation    Total Actual Cost
0                     0                <---- hide
100,00                0                <---- don't hide 
0                     50,0000          <---- don't hide

Here is the screenshot: enter image description here

Thank you

16

Unless I'm missing some nuance, you will simply set the Row Visibility based on the value.

Right click on the detail line and select Row Visiblity...

Row Visibility...

In the window that pops up, select Show or hide based on an expression

Row Visibility display options

Within that expression, you'll use logic like

=Fields!Total_Allocation.Value = 0 And Fields!Total_Actual_Cost.Value = 0
10

There are two places you can control this visibility. The first is on the row in the tablix; the second is on the row in the Row Groups*.

If you change visibility by right-clicking the row in the tablix then on the final report the row will be invisible, but still there.

If you change visibility by right-clicking the Row Groups line then on the final report the row will not be present and the rows beneath will move up fill the gap of the hidden row.

The steps are something like the following.

  • In Row Groups, right-click (Details), click Group Properties.
  • Click the Visibility page.
  • Select (•) Show or hide based on an expression.
  • Click the Expression Builder button.
  • =IIF( Fields!TotalAllocation.Value = 0 and Fields!TotalCost.Value = 0, True, False )
  • Click OK then OK again.

* See the bottom window that lists the row and column groups

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.