Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hola.
Estoy creando tabla de inventario mezclando datos reales para los últimos días y datos predichos para los días futuros. Tengo estas 3 tablas:
https://docs.google.com/spreadsheets/d/1NHSx1a4oN7X3hYK39o39RcaKuhZjYkLkh2OtDvnKx3o/edit#gid=0
Las fórmulas de columna de tabla de inventario son:
hola @aramirez2
El archivo que cargó necesita permiso, por favor cargue de nuevo.
y también podrías echar un vistazo a este blog:
https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/
saludos
Lin
@v-lili6-msft Lo siento, olvidé abrir la hoja de cálculo. Sin embargo, ya he encontrado la solución
Sf = VAR Sf = LOOKUPVALUE(PASTINVENTORY[Sf], PASTINVENTORY[Date], MAX(PASTINVENTORY[Date]), PASTINVENTORY[Product], inventory[productId])
var curdate = inventory[date]
var lastdate1 = MAX(PASTINVENTORY[Date])
var io = CALCULATE(SUM(inventory[income])-SUM(inventory[outcome]),FILTER(ALL(inventory),AND(inventory[date] <= curdate,inventory[date] >= lastdate1)))
var a = IF(inventory[date]<TODAY(), LOOKUPVALUE(PASTINVENTORY[Sf], PASTINVENTORY[Date], inventory[date], PASTINVENTORY[Product], inventory[productId]), Sf+io)
RETURN a
@aramirez2 - Tal vez eche un vistazo a Días de Suministro - https://community.powerbi.com/t5/Quick-Measures-Gallery/Days-of-Supply/m-p/635656#M318
Gracias @Greg_Deckler por tu respuesta. Es un gran ejercicio a pesar de que no está muy relacionado con mi problema.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |