Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Syndicate_Admin
Administrator
Administrator

Cómo vincular el pronóstico acumulativo con el acumulado real

Hola

Quiero tener la línea acumulativa de pronóstico vinculada con la línea acumulativa real. He hecho dos medidas: acumulativa real y acumulativa de pronóstico, y el siguiente paso debería ser vincular estas dos líneas acumuladas en el mismo gráfico ...

¿Me pueden ayudar, por favor?

¡Gracias!

Saludos.

Mihai_Iso_0-1674187318043.png

Mihai_Iso_1-1674187362373.png

1 ACCEPTED SOLUTION
7 REPLIES 7
Syndicate_Admin
Administrator
Administrator

@Mihai_Iso , Agregue estas dos medidas y cree una nueva

m3 = [Forecase Cumm] +[Actual Cumm]

Mihai_Iso_0-1674275258617.png

Mihai_Iso_1-1674275273465.png

Mihai_Iso_2-1674275288079.png

Medidas

Fecha real = recuento(Real[Fin real])

Fecha de pronóstico = recuento (Pronóstico[Finalización del pronóstico])

Acumulado real (parada después del último valor)

Acumulado real =

VAR _End = CALCULAR ( MAX ( Actual[Fin real]), ALL ( 'DateTable' ) )

DEVOLUCIÓN

SI (

_End < MIN ( 'DateTable'[Date] ),

EN BLANCO (),

CALCULAR(

COUNTA(Actual[Fin real]), USERELATIONSHIP(Real[Fin real],'DateTable'[Fecha]),

FILTRO(

ALLSELECTED('DateTable'[Date]),

('DateTable'[Date] <= MAX('DateTable'[Date])))))

Pronóstico acumulado

Pronóstico acumulado =

CALCULAR(

[Fecha de previsión],

FILTRO(

ALLSELECTED('DateTable'[Nº de semana. real]),

ISONORAFTER('DateTable'[Semana no. real], MAX('DateTable'[Semana no. real]), DESC)

)

)

Mihai_Iso_3-1674275311108.png

B_Actual =

var lastactual =

calcular(

MAX(Actual[Acabado real]),

REMOVEFILTERS(DateTable)

)

var Actuals= [Acumulativo real]

var FutureForecasts=

calcular(

[Previsión acumulativa],

FILTRO(

valores(DateTable),

DateTable[Date]>lastactual)

)

var Resultado = Reales + Pronósticos futuros

Devolución

max(DateTable[Date])

Como puedes ver en la tabla, B_Actual tiene fechas, no valores...

Gracias.

Saludos

Micrófono.

"B_Actual" (pongo una descripción incorrecta) es de hecho otra medida que contiene una línea acumulada real y pronosticada (combinada).

Pero como te he explicado, en caso de que tengamos datos (contar) no funciona... Trabajar sólo si tenemos valores (números).

¿Alguien tiene una idea de cómo resolver esto?

¡Gracias de antemano!

Si tiene fechas, no valores ("El monto de ventas" es famoso ...), es bastante difícil obtener los resultados correctos.

Chicos, ¿alguien que pueda ayudarme?

Hola

Gracias por su consejo. Pero sigue siendo un problema, por favor encuentre a continuación

Mihai_Iso_0-1674191756236.png

También necesito tener ambos acumulativos en el gráfico, para ver contra el corte (semana 35, en este caso).

Hola, tenga en cuenta que no hay números (valores), hay fechas, fechas contadas, consulte a continuación. Fechas contadas acumulativas por semana, para plan, real y pronóstico.

Mihai_Iso_0-1674192176264.png

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.