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.
Hola
Estoy tratando de hacer un análisis de peor escenario de ventas. Tengo la tabla "Estimación" que contiene la relación estimada de ventas durante el mismo mes del año pasado. Quiero crear una medida para mover el total anual de ventas que tomará la producción real hasta el mes en curso, luego la estimación del peor de los casos para los meses futuros. La medida "Ventas En el peor caso" parece estar funcionando bien. "VentasMAT Worst" también está funcionando bien hasta el primer cambio de relación (es decir, 01/06/2020)
Cualquier ayuda será muy apreciada...
Ventas Peor Caso ?
calcular (
Ventas[Total de ventas],
filtro (
Fechas
o(
Y(
Fechas[Fecha]. [MonthNo]<MONTH(today()),
Fechas[Fecha]. [Año]-Año(hoy())
),
Fechas[Fecha]. [Año]<Año(hoy())
)
)
)
+
calcular (
Ventas[Total de ventas el año pasado] * max(Estimación[Peor]),
filtro (
Fechas
OR(
Y(
Fechas[Fecha]. [MonthNo]>-MONTH(today()),
Fechas[Fecha]. [Año]-Año(hoy())
),
Fechas[Fecha]. [Año]>Año(hoy())
)
)
)
Ventas MAT Peor ?
CALCULAR (
Ventas[Ventas En el peor caso],
DATESINPERIOD(Dates[Date], LASTDATE(Dates[Date]),-1,YEAR)
)
Tabla de estimación:
Fecha | Peor |
01/04/2020 | 0.95 |
01/05/2020 | 0.95 |
01/06/2020 | 0.90 |
01/07/2020 | 0.90 |
01/08/2020 | 0.85 |
01/09/2020 | 0.85 |
01/10/2020 | 0.75 |
01/11/2020 | 0.75 |
01/12/2020 | 0.75 |
Queridos @darlove,
Muchas gracias por sus sugerencias y voy a repasar el material. Sin embargo, en este caso, no creo que nada esté mal con el modelo.
El problema es que una medida que funciona bien, no devuelve los mismos resultados cuando se utiliza en el cálculo MAT...
Mejor
Querido @amitchandak,
Como estoy haciendo una estimación en el futuro, datesytd o total ytd no ayudan.
Mejor
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.