Is This Content Helpful?
We're glad to know this article was helpful.
When IDataStatistics.UniqueValueCount is called on the DataStatistics object, before IDataStatistics.UniqueValues is called, it returns a value of zero even though there may be unique values.
This is because the internal variable holding the UniqueValueCount is not populated until UniqueValues has been called.
Call IDataStatistics.UniqueValues prior to calling IDataStatistics.UniqueValueCount.