title: Powershell v2.0 substitute null values from a Hash table
body: <p>I have a hash table as below:</p>
  
  <pre><code>$Hash = @{
  Team1=$Team1.count
  Team2=$Team2.count
  Team3=$Team3.count
  } 
  
  $GroupByTeam = New-Object psobject -Property $Hash | 
  Select 'Team1','Team2','Team3' | ConvertTo-Html -Fragment
  </code></pre>
  
  <p>This is fine and each "team" returns their own value. However, teams may have a null value and I wish to substitute this for "0".</p>
  
  <p>In an attempt to work this out, I have tried to select the null value first but can't seem to do this:</p>
  
  <pre><code>$Hash.values | select -property Values 
  
  Values
  ------
  {1, 2}
  </code></pre>
  
  <p>But </p>
  
  <pre><code>$Hash.values | select -property Values | where {$_.Values is $null}
  </code></pre>
  
  <p>doesn't pull back anything. Also tried:</p>
  
  <pre><code>$Hash.values | select -expandproperty Values | where {$_.Values is $null}
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>thanks </p>