% of the sales weight

Hi !!!
I need to be able to divide the MRY of MX by the MRY of the US, to know the% of the sales weight of MX vs what the US sells

I try this way but it gave me like result 1

Hi @Geral ,

I would suggest to breakdown the calculation in 3 steps.
step 1: calculate US MRY
ifelse(marketplace=‘US’, MRY, NULL)
step 2: calculate MX MRY
ifelse(marketplace=‘MX’, MRY, NULL)
Step 3: calculate % of US MRY
sum(step2)/sum(step1) → change format to percentage

Once you test this calculation , you can combine them into a single calculation and use.

Thanks,
Prantika

@prantika_sinha thanks, it helped me too much :grinning: