Forum Discussion

gcz's avatar
gcz
New Member
8 years ago
Solved

Total is wrong

The total is wrong, I really dont know why.   Print: imgur.com/a/5mbub   --------- Estoque Disponível VAR e IF = VAR x = SUMX(SUMMARIZE(ESTOQUE;ESTOQUE[PRODUTO];ESTOQUE[SALDO]);ESTOQUE[SALDO]...
  • MFelix's avatar
    8 years ago

    Hi gcz,

     

    You want the total to be the sum of the several lines correct?

     

    So you need to do the SUMX of the Calculate function you have on your Return, like you have the formula setup you are making the calculations for the total rows and then using the IF, because the measure is based on context.

     

    Regards,

    MFelix