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
Syndicate_Admin
Administrator
Administrator

Mi tabla me está dando un total incorrecto

Hola, me enfrento a un problema extraño en el objeto visual de la tabla de Power BI. Mi imagen de la tabla me está dando un total equivocado. Exporté la misma tabla a Excel y da un valor diferente. ¿Cómo puedo corregir esto?

He adjuntado capturas de pantalla para excel y power bi table visual como referencia.

SatishBadiger_1-1656057135063.png

SatishBadiger_0-1656057039965.png

Saludos. La ayuda rápida es muy apreciada.

5 REPLIES 5
Syndicate_Admin
Administrator
Administrator

Hi, @SatishBadiger

Pruebe los siguientes métodos.

YTD =
IF (
    HASONEVALUE ( 'Table'[Department] ),
    SUM ( 'Table'[Amount] ),
    CALCULATE ( SUM ( 'Table'[Amount] ), ALL ( 'Table' ) )
)

vzhangti_0-1656396774699.png

Saludos

Equipo de soporte de la comunidad _Charlotte

Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.

Syndicate_Admin
Administrator
Administrator

Hola @SatishBadiger

Por favor, publique su medida.

Por ahora, compruebe si esto resuelve su problema: https://community.powerbi.com/t5/Desktop/Incorrect-sum-calculated/m-p/325609

@Saap mi medida es una simple:
YTD Reals = SUMA('Tabla'[Importe])

Los valores de fila se muestran correctamente, solo hay problemas con el total.

@SatishBadiger

Por favor, pruebe la solución que publiqué en mi publicación anterior.
O intenta hacer algo como esto:

YTD Reales =
SUMX(
VALORES(Tabla[Departament_2]),
SUMA(Tabla[Importe])
)

SatishBadiger_0-1656067368086.png

@Saap Hola, está dando un total aún extraño cuando uso el código DAX que proporcionaste.

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.