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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Estoy tratando de crear lo siguiente en Power Bi.
Fecha actual. Tengo inventario a mano (saldo inicial)-requisitos+po=saldo final
Al día siguiente. El saldo final de los días anteriores debe ser el saldo inicial. A continuación, Requisitos de saldo inicial + po = saldo final. Necesito este patrón. El día actual funciona, pero tengo problemas para que el saldo inicial de la fecha siguiente sea el saldo final del día anterior. ¿Cómo puedo hacer que esto funcione? Estoy usando una tabla de matriz, con item en filas, fecha en columnas e inv,requirements,po en las columnas de valores.
| 2024-01-16 | 2024-01-17 | |||||||
| Artículo | Saldo inicial de Inv | Requisito | DESPUÉS | Final Balance | Saldo inicial de Inv | Requisito | DESPUÉS | Final Balance |
| A | 100 | 20 | 50 | 130 | 130 | 40 | 10 | 100 |
@Kevin454 , debe crear medidas acumulativas. Tome el primer inventario y el resto necesita construir
ejemplo
Inventario / A mano
CALCULATE(firstnonblankvalue('Date'[Month],sum(Table[Initial Inventory])),all('Date'))
+ CALCULATE(SUM(Table[Ordered]),filter(all(date),date[date] <=maxx(date,date[date])))
- CALCULATE(SUM(Table[Sold]),filter(all(date),date[date] <=maxx(date,date[date])))
Inventario de Power BI disponible: https://youtu.be/nKbJ9Cpb-Aw
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.