Error: unique values: too many different categories have been found to be able to calculate correctly

I found the solution here