Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 información de los gastos (estos salen positivos y deseo que continuen así)
Mi modelo de datos tiene relacionadas dos tablas la de hechos con la información contable y para la cual creé una medida denominada "Total_Movimientos" que es la que me suma todos los movimientos contables tanto para ingresos como gastos y adicional tengo mi tabla de dimensiones denominada DIM_CUENTAS en donde tengo vinculada la información de la estructura del Informe, estuve intentando con la siguiente fórmula, pero me siguen saliendo los ingresos negativos, alguien tiene alguna idea de como podría solucionarlo?
Solved! Go to Solution.
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!
Muchas gracias @Shaurya, funcionó muy bien, lo único es que no me permite usar funciones de inteligencia de tiempo, ya que quiero calcula el valor para el mismo periodo del año anterior con sameperiodlastyear o parallelperiod y no me genera ningún resultado, ¿esto podría ser causado por la creación de la medida "Income"?
Lo que hice fue crear la medida income, tal como lo sugirió:
Hi @Carol_oteg,
Time Intelligence can fail because of the following reasons:
Please check these in your model.
Did I answer your question? Mark this post as a solution if I did!
Consider taking a look at my blog: Forecast Period - Graphical Comparison
Hi @Carol_oteg,
Time Intelligence can fail because of the following reasons:
Please check these in your model.
Did I answer your question? Mark this post as a solution if I did!
Consider taking a look at my blog: Forecast Period - Graphical Comparison
Prueba con:
MOVIMIENTOS CONTABLE =
SUMX ( DIM_CUENTAS, ABS ( [Total_Movimientos] ) )
Proud to be a Super User!
Paul on Linkedin.
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.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |