Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Tengo una tabla simple con el número de semana del producto y una medida total corriente:
Running Total =
var maxdate = MAX(week)
return
CALCULATE(SUM(quantity),week<=maxdate)
| Producto | 14 | 15 | 16 |
| Macbook | 20 | 40 | 60 |
| PC | 10 | 20 |
Mi problema es que no estoy obteniendo el total de ejecución para la semana 16 de PC del producto. Quiero que muestre 20
No hay datos para esa semana en la tabla, que es solo Producto / Semana / Cantidad.
Intenté vincularlo a una tabla de tiempos, pero todavía tengo el mismo problema
Hola @PowerBITestingG,
¿Podría intentar esto?
Running Total =
VAR MaxDate = MAX(week)
RETURN
CALCULATE(
SUM(quantity),
FILTER(
ALL(week),
week <= MaxDate
&& (ISBLANK(SUM(quantity)) || week > Max(week[week]))
)
)
Avíseme si necesita más ayuda.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.