Hey
I want to calculate "Salse Portion":
How do you do that?!
Hi @nurit.a
It sounds like you’re looking for Custom Expressions:
https://www.metabase.com/blog/custom-expressions/index.html
This is the way to the solution:
SELECT SUM(netIncome) AS 'net ’
,net/ ( SELECT sum(netIncome) from ALLOrders ) as “percent to total”
,category
from ALLOrders
group by category