Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
17 | |
14 | |
11 | |
9 | |
7 |