Distinct users

Relies on https://github.com/dimagi/commcare-hq/pull/1116