English

Bug: Calling IDataStatistics.UniqueValueCount prior to IDataStatistics.UniqueValues returns a value of zero

Description

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.

Cause

This is because the internal variable holding the UniqueValueCount is not populated until UniqueValues has been called.

Workaround

Call IDataStatistics.UniqueValues prior to calling IDataStatistics.UniqueValueCount.