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
sprakash1192
Helper II
Helper II

Suma total del total en ejecución

Tengo una medida que utilizo para hacer un total de ejecución usando basado en las fechas de mi tabla de calendario:

WCM_EU_Roll de cálculo (
SUM(WCM[Total_EUs_WCM]),
FILTRO(
ALLSELECTED('Calendar'[Fecha]),
'Calendario'[Fecha]<-MAX('Calendario'[Fecha])
))
Cuando muestro esta medida en la tabla, el total de ejecución fila por fila es correcto, pero el total en la parte inferior no es el total de suma de todos los totales en ejecución, sino el último total de ejecución calculado (estoy calculando año y semana a partir de la tabla de calendario) :
añoSemanaWCM_EU_Roll
2020292,972,714
2020303,077,064
Total 3,077,064

Pero, me gustaría que el total fuera la suma total de ambas filas:

añoSemanaWCM_EU_Roll
2020292,972,714
2020303,077,064
Total 6,049,778

He intentado HASONEVALUE para moverse por los filtros en la fila Total, pero no está funcionando.

Por favor, ayúdenme.

1 ACCEPTED SOLUTION

Tuve que agrupar por varias columnas para que mis números de avance sean correctos. Así que creé una nueva columna usando SUMMARIZECOLUMNS. Aquí está el DAX:

WCM_Summary - SUMMARIZECOLUMNS('Calendar'[Year],'Calendar'[Week],WCM[ProdFacName],WCM[Department_Code],WCM[Labor_Budget_Configuration (2). Hours],WCM[Labor_PerHR_Rate_Site_Dept.Hours],WCM[Labor_TargetEUs_Site_Dept_PerHR.Target_Eus_PerHR],"Total_WCM_EUs",WCM[WCM_EUs])

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@sprakash1192, pero tiene razón. El total en ejecución en el último punto es el total que tiene en el sistema hasta la fecha.

Inténtalo como

sumx(summarize(Table, Table[Week],"_1",[WCM_EU_Roll]),[_1])

o utilizar summarizecolumnsen lugar de resumir

https://docs.microsoft.com/en-us/dax/summarizecolumns-function-dax

Así que intenté esto:

WCM_EU_Total á sumx(SUMMARIZE('Calendar','Calendar'[Week],"Total_EUs",WCM[WCM_EUs]),[Total_EUs])
Pero los totales no son correctos. Así que cambié la fórmula para resumir por fecha porque mi medida total de ejecución es por fecha.
WCM_EU_Total á sumx(SUMMARIZE('Calendar','Calendar'[Date],"Total_EUs",WCM[WCM_EUs]),[Total_EUs])
Pero eso tampoco es correcto. ¿Necesito agregar más grupos? ¿Por qué no coincidirá con mi total de carrera?
Puede ver la diferencia:
añoSemanaWCM_EU_TotalWCM_EUs
202029582516.682972714.99
202030417398.363077064.58

WCM_EU_Total es la columna resumida. WCM_EUs es la columna total en ejecución.

Tuve que agrupar por varias columnas para que mis números de avance sean correctos. Así que creé una nueva columna usando SUMMARIZECOLUMNS. Aquí está el DAX:

WCM_Summary - SUMMARIZECOLUMNS('Calendar'[Year],'Calendar'[Week],WCM[ProdFacName],WCM[Department_Code],WCM[Labor_Budget_Configuration (2). Hours],WCM[Labor_PerHR_Rate_Site_Dept.Hours],WCM[Labor_TargetEUs_Site_Dept_PerHR.Target_Eus_PerHR],"Total_WCM_EUs",WCM[WCM_EUs])

Gracias @amitchandak . ¿Creo un nuevo meausre para usar resumir?

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.