villebro commented on issue #18836:
URL: https://github.com/apache/superset/issues/18836#issuecomment-1047620976


   If you want to calculate the proportion of one aggregate over another one, I 
believe you should use `SUM` rather than `AVG`? In other words, to calculate 
the total amount of sales in Nort America as a proportion of global sales, I 
would do `SUM(na_sales)/SUM(global_sales)`, not 
`AVG(na_sales)/AVG(global_sales)`:
   
   
![image](https://user-images.githubusercontent.com/33317356/155108302-c089db14-27ad-4452-8061-18714e1fde4f.png)
   
   Or am I misunderstanding something?


-- 
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