Description
Not all of the available statistic types are valid for text or date fields. If you're using a text field, only MIN, MAX, COUNT, FIRST, LAST, and UNIQUE types are valid. If you're using a date field, in addition to the types above, MEAN is also supported.
Solution
Change the statistic type to a valid value.