title: Display a column values in Report Header
body: <p>need to pass one column in Lookupset and  I am doing as below </p>
  
  <pre><code>="Billing Code: "+Code.JoinDistinct(LookupSet(Fields!BillingCode.Value, Fields!BillingCode.Value, Fields!BillingCode.Value, "DataSet1"),",")
  </code></pre>
  
  <p>and the Function is </p>
  
  <pre><code>public shared function JoinDistinct(
    dups as object(),
    delimiter as string
  ) as string
  
    dim result as string = ""
    system.array.sort(dups)
  
    for i as integer = 0 to dups.length - 1
      if i &lt;&gt; 0 then result += delimiter
      if i = 0 orElse dups(i) &lt;&gt; dups(i-1) then result += dups(i)
    next i
  
    return result
  
  end function
  
  </code></pre>
  
  <p><strong>Result</strong></p>
  
  <p>Billing Code: ,,,A,,,,,,</p>
  
  <p>How Can I remove extra commas </p>