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

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.

Reply
Syndicate_Admin
Administrator
Administrator

El cálculo mediante 2 medidas da un total correcto en la Tabla

Hola queridos,

Tengo 2 medidas a saber-

1. ECPlanCount es SUMX(FILTER(SelfService_Plan_DailyPlanHour, SelfService_Plan_DailyPlanHour[RANKPlan]=1), SelfService_Plan_DailyPlanHour[ECPlannedCount])
2. ECPlanCost es SUMX(FILTER(SelfService_Plan_DailyPlanHour, SelfService_Plan_DailyPlanHour[RANKPlan]=1), SelfService_Plan_DailyPlanHour[ECPlannedCost])
3. Tengo otra medida que utiliza estas medidas
DActualCost = [ECPlanCount]*10*[ECPlanCost]
Sin embargo, cuando se colocan en matriz o tabla, la suma de ECPlanCount & ECPlanCost es incorrecta.
Por favor, ayuda.
1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

No @jesly_ajin,

Creé un pbix de muestra con su medida.

18.png

Puede utilizar nuevas medidas como

DActualCost = SUMX(FILTER(SelfService_Plan_DailyPlanHour, SelfService_Plan_DailyPlanHour[RANKPlan]=1),[ECPlanCount]*10*[ECPlanCost])

Screenshot 2021-04-13 142843.png

o

AnotherDActualCost = CALCULATE([ECPlanCount]*10*[ECPlanCost],ALL('SelfService_Plan_DailyPlanHour'))

Screenshot 2021-04-13 143139.png

Saludos

Stephen Tao

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

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

No @jesly_ajin,

Creé un pbix de muestra con su medida.

18.png

Puede utilizar nuevas medidas como

DActualCost = SUMX(FILTER(SelfService_Plan_DailyPlanHour, SelfService_Plan_DailyPlanHour[RANKPlan]=1),[ECPlanCount]*10*[ECPlanCost])

Screenshot 2021-04-13 142843.png

o

AnotherDActualCost = CALCULATE([ECPlanCount]*10*[ECPlanCost],ALL('SelfService_Plan_DailyPlanHour'))

Screenshot 2021-04-13 143139.png

Saludos

Stephen Tao

Si este post ayuda, entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Syndicate_Admin
Administrator
Administrator

@jesly_ajin , La multiplicación debe hacerse a nivel de línea,

DActualCost =

SUMX(FILTER(SelfService_Plan_DailyPlanHour, SelfService_Plan_DailyPlanHour[RANKPlan]=1), SelfService_Plan_DailyPlanHour[ECPlannedCount]*SelfService_Plan_DailyPlanHour[ECPlannedCost])

@amitchandak Lo intenté, pero está dando valores en blanco.

@jesly_ajin había *10 también, trate de

SUMX(FILTER(SelfService_Plan_DailyPlanHour, SelfService_Plan_DailyPlanHour[RANKPlan]=1), SelfService_Plan_DailyPlanHour[ECPlannedCount]*SelfService_Plan_DailyPlanHour[ECPlannedCost]*10)

o

SUMX(FILTER(SelfService_Plan_DailyPlanHour, SelfService_Plan_DailyPlanHour[RANKPlan]=1), SelfService_Plan_DailyPlanHour[ECPlannedCount]*SelfService_Plan_DailyPlanHour[ECPlannedCost])*10

si no

¿Puede compartir datos de ejemplo y salida de ejemplo en formato de tabla? O un pbix de ejemplo después de eliminar datos confidenciales.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.