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:
   
   
![image](https://user-images.githubusercontent.com/91876082/172872466-d147603b-d896-4673-aeae-3dce4820c5d3.png)
   
   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**
   
![image](https://user-images.githubusercontent.com/91876082/172873875-220e0fdc-7c76-4e9b-bab9-a2a878cb31fe.png)
   
   **COUNT DISTINCT**
   
![image](https://user-images.githubusercontent.com/91876082/172873729-086a4b35-8d06-41e6-82a2-283cfcc0bb48.png)
   
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to