Forum Discussion

Carol_oteg's avatar
Carol_oteg
Frequent Visitor
3 years ago
Solved

Informes Financieros

Hola a todos, estoy construyendo un Informe financiero de pérdidas y ganancias, SAP me arroja los ingresos negativos y deseo generar una medida que me los pase a positivo sin que me afecte la informa...
  • Shaurya's avatar
    3 years ago

    Hi Carol_oteg,

     

    Instead of multiplying [Total_Movement] by -1 during the calculation itself, why don't add them all first and then check if the sum is negative or not. That way you can use the same measure for income and expenses if you want.

     

    Try:

     

    Income = var _income = SUMX(DIM_ACCOUNTS,IF(DIM_ACCOUNTS[Category]="Operating Income" || DIM_ACCOUNTS[Category]="Non-operational income",  [Total_Movements], 0))
    return
    IF(_income<0, _income*-1 ,_income)

     

    Works for you? Mark this post as a solution if it does!