Revert "count distinct by dimension is not applicable"

This reverts commit d2d5fa583b15310eaa0ea81474d42f28e78a5f16.