Forum Discussion
Carol_oteg
3 years agoFrequent Visitor
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...
- 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!
PaulDBrown
3 years agoCommunity Champion
Prueba con:
MOVIMIENTOS CONTABLE =
SUMX ( DIM_CUENTAS, ABS ( [Total_Movimientos] ) )
Carol_oteg
3 years agoFrequent Visitor
Muchas gracias PaulDBrown tambien funciona, aunque me fijé que tambien tengo algunos pocos gastos que me salen negativos y no quiero que me cambien de signo.