Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
hemanth52130
Employee
Employee

Sumar números positivos y negativos de una columna en power BI desktop

Hola a todos

Tengo una columna llamada IAA (tipo de datos: número decimal) en la tabla siguiente que tienen valores positivos y negativos en ella. Quiero mostrar la suma de todos estos valores en el total (independientemente de positivo o negativo). El total del IAA debe ser 7028277.40

hemanth52130_0-1606214641602.png

Si tomo suma en lugar de no resumir es dar algunos valores de basura.

hemanth52130_1-1606214993315.png

Por favor, ayuda con la solución

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hola, @hemanth52130

Pruebe la medida siguiente para cambiar el valor total:

measure=If(HASONEVALUE(Table(Account)),sumx(Table, Table[iAA]), sumx(Table, abs(table[iAA])))

Saludos
Equipo de soporte de la comunidad _ Eason
Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

View solution in original post

3 REPLIES 3
v-easonf-msft
Community Support
Community Support

Hola, @hemanth52130

Pruebe la medida siguiente para cambiar el valor total:

measure=If(HASONEVALUE(Table(Account)),sumx(Table, Table[iAA]), sumx(Table, abs(table[iAA])))

Saludos
Equipo de soporte de la comunidad _ Eason
Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

hemanth52130
Employee
Employee

Hola Amit,

Gracias por la rápida respuesta. Cuando usamos ABS, los valores de la tabla están obteniendo cambios. Todos los valores negativos a positivos. Aquí mi requisito es que los valores de la tabla no deben cambiar solo el total debe ser la suma de todos los valores de columna IAA.

amitchandak
Super User
Super User

@hemanth52130 , Probar como

sumx(Tabla, abs(table[iAA]))

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.