Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
En la tabla que se muestra a continuación, he hecho una comparación de intervalos de tiempo de los ahorros por mes.
Si considera la primera fila que asume que los datos del mes anterior de mi mes MIN es "0" y por lo tanto me da [datos de mes de 0-MIN] en Ahorro de carga o Ganancia/pérdida de LS
Quiero incluir una condición en mis medidas para que excluya el cálculo del primer mes y dé un espacio en blanco para esa fila en la tabla (aquí Fila de dic), pero todos los valores adicionales en las filas respectivas deben permanecer iguales.
Estas son mis medidas:
Loadability savings = SUMX(SUMMARIZE(dDate,dDate[Month],"_2",DIVIDE(SUMX('Prototype Modeling_Freight','Prototype Modeling_Freight'[Load Charge]),[Shipments],BLANK())*[Shipments Saved_trial]),[_2])LS Gain/Loss = SUMX(SUMMARIZE(dDate,dDate[Month],"_3",[Loadability savings]-CALCULATE([Loadability savings],DATEADD(dDate[Date],-1,MONTH))),[_3])
Hola @Parthsh93
Prueba esto
LS Gain/Loss =
VAR __loadabilityPreviousMonth =
CALCULATE (
[Loadability savings],
DATEADD ( dDate[Date], -1, MONTH )
)
RETURN
IF (
NOT ISBLANK( __loadabilityPreviousMonth ),
[Loadability savings] - __loadabilityPreviousMonth
)
Hola @Parthsh93
Prueba esto
LS Gain/Loss =
SUMX (
SUMMARIZE (
dDate,
dDate[Month],
"_3",
VAR __loadability = [Loadability savings]
RETURN
IF (
NOT ISBLANK ( __loadability ),
__loadability
- CALCULATE ( [Loadability savings], DATEADD ( dDate[Date], -1, MONTH ) )
)
),
[_3]
)
@Parthsh93 , algo como esto
Ganancia/pérdida de LS ?
var _minx á eomonth(minx(allselected(ddate),dDate[Date]),0)
devolución
SUMX(SUMMARIZE(dDate,dDate[Month],"_3",[Ahorro de carga]-CALCULATE([Ahorro de carga],DATEADD(dDate[Date],-1,MONTH), dDate[Date]>_minx)),[_3])
Puede agregar este tipo de filtro en la fórmula deseada
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.