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.
A continuación se muestran los mismos datos pleple y buscando la demanda (Recuento de valores en la columna de fecha de demanda) y Oferta (Recuento de valores en la columna de fecha de suministro), Mirando una vista para comparar ambos recuentos como 1-1 contra el mes fijo de enero a diciembre en el eje X.
NÚMERO DE IDENTIFICACIÓN | Número de pieza | CLIENTE | FECHA DE DEMANDA | FECHA DE SUMINISTRO |
1 | 1 | Vinod | 17/08/2022 | 12/01/2023 |
2 | 1 | Vinod | 17/08/2022 | 04/05/2023 |
3 | 1 | Vinod | 17/08/2022 | 27/01/2023 |
4 | 1 | Vinod | 17/08/2022 | 05/04/2023 |
5 | 2 | Vinod | 01/02/2022 | 20/01/2023 |
6 | 2 | Vinod | 01/02/2022 | 20/01/2023 |
7 | 2 | Vinod | 01/02/2022 | 20/01/2023 |
8 | 2 | Vinod | 01/02/2022 | 20/01/2023 |
9 | 2 | Vinod | 01/02/2022 | 10/03/2023 |
10 | 2 | Vinod | 01/02/2022 | 28/02/2023 |
11 | 2 | Vinod | 01/02/2022 | 10/03/2023 |
12 | 2 | Vinod | 01/02/2022 | 05/04/2023 |
13 | 2 | Vinod | 27/04/2022 | 20/01/2023 |
14 | 1 | Vinod | 21/10/2022 | 05/04/2023 |
15 | 1 | Vinod | 21/10/2022 | 05/04/2023 |
16 | 1 | Vinod | 21/10/2022 | 17/04/2023 |
17 | 1 | Vinod | 21/10/2022 | 04/05/2023 |
18 | 1 | Vinod | 21/10/2022 | 17/04/2023 |
Resultado esperado
El stock de cierre del mes anterior debe agregarse al actual
LOB = Mes actual (oferta-demanda) + Mes anterior (LOB)
Hola Amit,
Gracias por la rápida respuesta.
Logré obtener formauls de oferta y demanda
@Vinod_P , Tienes que crear acumulativo aquí. Además, debido a que ambos están en la misma tabla, tendrá una unión activa/inactiva al unirse con una tabla de fechas común
Suponga que la combinación de fecha de demanda está inactiva cuando se unen ambas fechas con la misma tabla de fechas
CALCULATE(Count(Table[Supply Date]),filter(date,date[date] <=maxx(date,date[date]))) -
CALCULATE(CALCULATE(Count(Table[Demand Date]),USERELATIONSHIP( Date[Date], Table[Demand Date]))
filter(date,date[date] <=maxx(date,date[date])))
Tabla de fechas
Fecha = Addcolumns(calendar(date(2012,01,01), date(2024,12,31) ), "Month no" , month([date])
, "Año", año([fecha])
, "Mes Año", formato([fecha],"mmm-aa")
, "Ordenación de mes-año", año([fecha])*100 + mes([fecha])
, "Qtr Year", format([date],"yyyy-\QQ")
, "Qtr", trimestre([fecha])
, "Mes",FORMAT([Fecha],"mmmm")
, "Month sort", month([DAte])
, "Año del año fiscal", si( Mes(_max) <7 , año(_max)-1 ,año(_max))
, "es hoy" ,if([fecha]=HOY(),"hoy",[fecha]&"")
,"Día del año" , datediff(date(year([DAte]),1,1), [Date], day)+1
, "Tipo de mes", Switch( True(),
eomonth([Fecha],0) = eomonth(Today(),-1),"Last Month" ,
eomonth([Fecha],0)= eomonth(Today(),0),"Este mes" ,
Formato([Fecha],"MMM-AAAA") )
,"Tipo de año" , Switch( True(),
año([Fecha])= año(Hoy()),"Este año" ,
año([Fecha])= año(Hoy())-1,"Último año" ,
Formato([Fecha],"AAAA")
)
)
Consulte los conceptos relacionados
Fecha activa/inactiva
Power BI: Análisis de recursos humanos: empleados a la fecha: https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Inventario de Power BI disponible: https://youtu.be/nKbJ9Cpb-Aw
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 |