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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
gyeea84
Regular Visitor

Fecha de devolución cuando se alcanza el objetivo total de ejecución

Hola

¿Es posible devolver la fecha cuando el total de ejecución golpea un objetivo específico? F.ex. Me gustaría comprobar el umbral dentro de las 2 semanas por delante y ver si el objetivo está por debajo de cierto valor.

Mi dax que regresan corriendo total se parece a esto

RunningTotal_DiffInOut de la casa de los RunningTotal_DiffInOut

fue _runningTotal ?
CALCULATE(
[CurrentHBCapacity]+[Est_DiffInOut],
FILTRO(
CALCULATETABLE(
RESUMEN(
'NZ_VirtualTime',
'NZ_VirtualTime'[RelDagNr],
'NZ_VirtualTime'[OnlyDate_ForDisplay]
),
ALLSELECTED('NZ_VirtualTime'), NZ_VirtualTime[OnlyDate_ForDisplay] > formato(today(),"aaaa.mm.dd")
),
ISONORAFTER(
'NZ_VirtualTime'[RelDagNr], MAX('NZ_VirtualTime'[RelDagNr]), DESC,
'NZ_VirtualTime'[OnlyDate_ForDisplay], MAX('NZ_VirtualTime'[OnlyDate_ForDisplay]), DESC
)
)
)
retorno _runningTotal
¿Cómo obtengo la fecha si el valor de correr tatal cae por debajo de 1500 dentro de las próximas 2 semanas?
1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hola @gyeea84 ,

Sé que su [capacidad actual], [total out] y [total in] son todas medidas, pero no puedo reproducir su modelo, por lo que solo puedo usar columnas de hechos en su lugar.
Consulte la fórmula a continuación.

Estimated remaining capacity = 
VAR sum_out = 
SUMX(
    FILTER( ALLSELECTED(Sheet2), [Date] <= MAX([Date]) ),
    [Total Out]
)
VAR sum_in = 
SUMX(
    FILTER( ALLSELECTED(Sheet2), [Date] <= MAX([Date]) ),
    [Total In]
)
RETURN
[current capacity] + sum_out - sum_in

v-lionel-msft_0-1604994128465.png

Saludos
Lionel Chen

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

1 REPLY 1
v-lionel-msft
Community Support
Community Support

Hola @gyeea84 ,

Sé que su [capacidad actual], [total out] y [total in] son todas medidas, pero no puedo reproducir su modelo, por lo que solo puedo usar columnas de hechos en su lugar.
Consulte la fórmula a continuación.

Estimated remaining capacity = 
VAR sum_out = 
SUMX(
    FILTER( ALLSELECTED(Sheet2), [Date] <= MAX([Date]) ),
    [Total Out]
)
VAR sum_in = 
SUMX(
    FILTER( ALLSELECTED(Sheet2), [Date] <= MAX([Date]) ),
    [Total In]
)
RETURN
[current capacity] + sum_out - sum_in

v-lionel-msft_0-1604994128465.png

Saludos
Lionel Chen

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.