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 amigos,
Tenía las siguientes tablas calculadas a partir de datos sin procesar.
Quiero calcular
21 de septiembre . El stock de cierre para Sept'21 = Stock + Recibo de Sept - Consumo de Sept
Para oct'21.: Opening Stock of Oct'21= Closing stock of Sept'21,
Stock de cierre de Oct'21 = Stock de apertura de Oct'21 + Recibo de Oct'21 - Consumo de Oct'21.
Para Nov'21 : Opening Stock de Nov'21= Stock de cierre de Oct'21,
Stock de cierre de NOv.'21 = Stock de apertura de Nov'21 + Recibo de Nov'21 - Consumo de Oct'21.
Y así sucesivamente...
Le estaremos agradecidos por brindarle la solución.
Solved! Go to Solution.
Hay @Narayan ,
Puedes probar esta medida:
A =
VAR totalConsumption =
CALCULATE (
SUM ( 'Consumption'[Consumption] ),
FILTER (
ALLSELECTED ( 'Consumption'[Date].[Date] ),
[Date].[Date] <= MAX ( [Date].[Date] )
)
)
VAR totalstock =
SUM ( 'Stock'[Stock] )
VAR totalreceipt =
CALCULATE (
SUM ( 'Receipt'[Receipt] ),
FILTER (
ALLSELECTED ( 'Receipt'[Date].[Date] ),
[Date].[Date] <= MAX ( [Date].[Date] )
)
)
RETURN
totalstock + totalreceipt - totalConsumption
Saludos
Equipo de apoyo a la comunidad _ Yingjie Li
Si esta publicación ayuda,entonces considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.
Hay @Narayan ,
Puedes probar esta medida:
A =
VAR totalConsumption =
CALCULATE (
SUM ( 'Consumption'[Consumption] ),
FILTER (
ALLSELECTED ( 'Consumption'[Date].[Date] ),
[Date].[Date] <= MAX ( [Date].[Date] )
)
)
VAR totalstock =
SUM ( 'Stock'[Stock] )
VAR totalreceipt =
CALCULATE (
SUM ( 'Receipt'[Receipt] ),
FILTER (
ALLSELECTED ( 'Receipt'[Date].[Date] ),
[Date].[Date] <= MAX ( [Date].[Date] )
)
)
RETURN
totalstock + totalreceipt - totalConsumption
Saludos
Equipo de apoyo a la comunidad _ Yingjie Li
Si esta publicación ayuda,entonces considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.
@Narayan , Con la ayuda de la tabla de fechas, tienes que seguir una fórmula como
Inventario / OnHand
[Inventario intial] + CALCULATE(SUM(Table[Ordered]),filter(date,date[date] <=maxx(date,date[date]))) - CALCULATE(SUM(Table[Sold]),filter(date,date[date] <=maxx(date,date[date])))
donde [Inventario Intial] es el primer inventario. Si este es el único inventario, entonces haga la suma. Else calcular en función de la fecha mínima
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 | |
2 | |
1 |