How to compare two or more products sales

hello I have a dilemma and it seems I don't have the solution, please help
say I have "ProductA" and "product B"
A sales x b sales xx

I want to compare in the same question
A sales, B sale ,A+B sales ,(A/A+B) , (B/A+B)

Hi @smrasmy
Without knowing your data, it's difficult to say, but you could use Custom Expressions - likely SumIf:
https://www.metabase.com/learn/building-analytics/notebook-editor/custom-expressions.html

idont have contains or sum if in my custome exprestion
image

@smrasmy I don't know which version you're using, but you are likely not using the latest release - 0.38.2:
https://github.com/metabase/metabase/releases/latest

1 Like