You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/06/09 14:40:03 UTC
[GitHub] [superset] apecortes opened a new issue, #20335: Metric calculation error "Part of a Whole"
apecortes opened a new issue, #20335:
URL: https://github.com/apache/superset/issues/20335
On Superset 1.5.0
#### How to reproduce the bug
Giving the following dataset:

Having created the metric Users: COUNT(DISTINCT userId). We see that there are 4 DISTINCT userId. But the calculation at the level of the parent is a sum of the children, and it is not correct.
There is no difference between COUNT and COUNT DISTINCT
### Expected results
The expected result is that at the level of the parent there will be 4 and not 5
### Actual results
The end result is that COUNT(userId) and COUNT(DISTINCT userId) give the same result.
#### Screenshots
**COUNT**

**COUNT DISTINCT**

### Additional context
Add any other context about the problem here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] rusackas closed issue #20335: Metric calculation error "Part of a Whole"
Posted by GitBox <gi...@apache.org>.
rusackas closed issue #20335: Metric calculation error "Part of a Whole"
URL: https://github.com/apache/superset/issues/20335
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] rusackas commented on issue #20335: Metric calculation error "Part of a Whole"
Posted by GitBox <gi...@apache.org>.
rusackas commented on issue #20335:
URL: https://github.com/apache/superset/issues/20335#issuecomment-1163581699
I think this is behaving correctly. Since you're using the two GroupBy dimensions, you actually DO have 3 distinct users that share that category/course. The 5 at the top is merely a sum of what's displayed in the tree, which is accurate for the controls setup you're using. If you get rid of your GroupBy dimensions, you should see 4 in one, and 5 in the other. Closing this for now, but if you think I've misconstrued something, please keep the conversation going, and we can re-open.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org