title: Simple Pivot Table to Count Unique Values
body: <p>This seems like a simple Pivot Table to learn with.  I would like to do a count of unique values for a particular value I'm grouping on.</p>
  
  <p>For instance, I have this:</p>
  
  <pre><code>ABC   123
  ABC   123
  ABC   123
  DEF   456
  DEF   567
  DEF   456
  DEF   456
  </code></pre>
  
  <p>What I want is a pivot table that shows me this:</p>
  
  <pre><code>ABC   1
  DEF   2
  </code></pre>
  
  <p>The simple pivot table that I create just gives me this (a count of how many rows):</p>
  
  <pre><code>ABC   3
  DEF   4  
  </code></pre>
  
  <p>But I want the number of unique values instead.</p>
  
  <p>What I'm really trying to do is find out which values in the first column don't have the same value in the second column for all rows.  In other words, "ABC" is "good", "DEF" is "bad"</p>
  
  <p>I'm sure there is an easier way to do it but thought I'd give pivot table a try...</p>