That is exactly how you should do it but perhaps you forgot the pipe character ( | ); it should be like this (assuming that your dataset has both cs_username and TabOrFormName as fields):
... | stats dc(cs_username) by TabOrFormName
That is exactly how you should do it but perhaps you forgot the pipe character ( | ); it should be like this (assuming that your dataset has both cs_username and TabOrFormName as fields):
... | stats dc(cs_username) by TabOrFormName
Thank you!! It helped