Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hiding rows that contain no values

I would like to hide rows in my report that contain no values in a certain set of fields.

This question is helpful

How to filter rows with null values in any of its columns in SSRS

i do not understand how to check whether multiple fields are null.

currently, i am doing this:

enter image description here

and under the visibility:

enter image description here

and i typed this expression:

=iif(fields!Jan.Value
+fields!Feb.Value
+fields!Mar.Value
+fields!April.Value
+fields!May.Value
+fields!June.Value
+fields!July.Value
+Fields!Aug.Value
+Fields!Sept.Value
+Fields!Oct.Value
+Fields!Nov.Value
+Fields!Dec.Value="",TRUE,FALSE)

but i am getting this error:

enter image description here

how do i hide a row if the values are null or blank?

like image 356
Alex Gordon Avatar asked Apr 09 '13 16:04

Alex Gordon


People also ask

What is the shortcut to hide blank rows in Excel?

There is also a very handy keyboard shortcut to delete rows (columns or cells). Press Ctrl + – on the keyboard. That's it! Our blank rows are gone now.

Can you hide certain rows in Excel?

Hiding Rows Select a cell within the row(s) to be hidden. On the Home command tab, in the Cells group, click Format. From the Format menu, in the Visibility section, select Hide & Unhide » Hide Rows. The row is hidden.


1 Answers

You need to use AND (if all of the values need to be 0 to hide the row), and try using LEN()

=iif(len(Fields!Jan.Value) = 0 AND len(Fields!Feb.Value) = 0 AND len(Fields!Mar.Value) = 0,True,False)

I would also use the Visibility property accessed by highlighting the row, and using the Properties window rather than through the Right-Click menu.

like image 189
D.S. Avatar answered Sep 16 '22 11:09

D.S.