title: SSRS 2005 -Set Visibility based on dataset rowcount
body: <p>I have a line and a table in my report that I want to hide if my dataset has no rows in it.</p>
  
  <p>I tried using the expression <code>=CountRows("MyDataSet") &gt; 0</code> in the initial visibility but this always evaluates to false, even when there are rows in the dataset.</p>
  
  <p>I suspect initial visibility is run before the data is loaded into the dataset.</p>
  
  <p>How can I set the visibility of my table and other elements (a line), based on if the dataset has any rows or not?</p>