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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Buen día a todos,
Tengo un problema con una función que se ve fácil pero no he podido solucionarla en DAX, y pido de su ayuda para resolverlo.
Mi problema es el siguiente:
tengo un inventario a la semana (week_1, fecha actual que es la fecha de actualización) y necesito calcular el estimado para las siguientes semanas (week_2, week_3, week_n), pero para week_1, se resta la cantidad por empaque multiplicado por un 1 (valor dado):
valor de week_1= Inventario - (cantidad empaque * valor dado)
El problema viene cuando quiero utilizar el valor que obtuve en week_1 con la formula anterior:
week_2 = week_1 - (cantidad per package * valor dado)
Con esto, quiero ver para las proximas semanas, el valor hasta week_n
Week_1 =
CALCULATE(
AVERAGE(TABLE INVENTORY[INVENTORY]) - ('Takt per week'[Takt per week Value] * AVERAGE(TABLE INVENTORY[QTY_PER_package]))
)Algien me puede ayudar con esto?, mando una pequeña imagen de la tabla y su resultado esperado en formato horizontal
| Component Part | Qty per Assembly | Safety Stock | Quantity On Hand | RC | Total Inventory | WK15 | WK16 | WK17 | WK18 |
| sku1 | 1 | 20 | 0 | 0 | 0 | -1 | -2 | -3 | -4 |
| sku2 | 1 | 8 | 62 | 0 | 62 | 61 | 60 | 59 | 58 |
| sku3 | 1 | 18 | 11 | 28 | 39 | 38 | 37 | 36 | 35 |
| sku4 | 1 | 0 | 16 | 0 | 16 | 15 | 14 | 13 | 12 |
This should be possible via SUMX. Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 20 | |
| 17 | |
| 12 |