How do I find the number of unique contracts that are associated with a GL?
Please see sample data.
For ABC the answer should be 1. For DEF it should be 3. For GHI it should be 2.
I would've thought a pivot table would do the trick. It does not. In a pivot if I put GL in rows and Count of Contracts in Values, it gives me 3 for ABC rather than 1. So it's giving me the number of rows associated with ABC, as opposed to the number of UNIQUE rows.
Can anyone advise?
Please see sample data.
For ABC the answer should be 1. For DEF it should be 3. For GHI it should be 2.
I would've thought a pivot table would do the trick. It does not. In a pivot if I put GL in rows and Count of Contracts in Values, it gives me 3 for ABC rather than 1. So it's giving me the number of rows associated with ABC, as opposed to the number of UNIQUE rows.
Can anyone advise?
GL | Contract |
---|---|
ABC | 123 |
ABC | 123 |
ABC | 123 |
DEF | 411 |
DEF | 511 |
DEF | 611 |
GHI | 559 |
GHI | 459 |