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

Mes a mes Rolling Avg

Hola

Tengo la siguiente medida

KG1_0-1649235686173.png

Necesito poder mostrar mes a mes rolling avg en un visual

KG1_1-1649235740721.pngKG1_2-1649235754671.pngKG1_3-1649235772762.png

El total de 1.2 es correcto para los últimos 12 meses: ¿cómo muestro este mes a mes en lugar de solo los reales de cada mes?

Gracias de antemano

2 ACCEPTED SOLUTIONS

Lo siento, no puedo hacer que funcione 😞

KG1_0-1649241199399.pngKG1_1-1649241216705.png

Rodadura 12 =
Dónde _max = maxx(TODOSSELECCIONADOS(SHEQ[Mes]),SHEQ[Mes]) o hoy()
Dónde _min = fecha(año(_max), mes(_max)-12,1)
devolución
CALCULAR(PromedioX(valores('SHEQ'[Mes]) , [NLTI Calc]) ,filtro(SJEQ, SHEQ[Mes] <=_max && SHEQ[Mes] >=_min) , allselected() )

View solution in original post

Syndicate_Admin
Administrator
Administrator

Hay @KG1 ,

Pruebe la siguiente fórmula:

Measure = 
CALCULATE (
    [Total NLTI's] / [Total Working Hours] * 10 ^ 5,
    FILTER ( ALLSELECTED ( SHEQ ), SHEQ[Month] <= MAX ( SHEQ[Month] ) )
)

vkkfmsft_0-1649741505463.png

Si el problema aún no se resuelve, proporcione información detallada sobre el error o el resultado esperado que espera. Hágamelo saber de inmediato, esperando su respuesta.
Saludos
Winniz
Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.

View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Hay @KG1 ,

Pruebe la siguiente fórmula:

Measure = 
CALCULATE (
    [Total NLTI's] / [Total Working Hours] * 10 ^ 5,
    FILTER ( ALLSELECTED ( SHEQ ), SHEQ[Month] <= MAX ( SHEQ[Month] ) )
)

vkkfmsft_0-1649741505463.png

Si el problema aún no se resuelve, proporcione información detallada sobre el error o el resultado esperado que espera. Hágamelo saber de inmediato, esperando su respuesta.
Saludos
Winniz
Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.

Genial - gracias - que funcionó perfectamente

Syndicate_Admin
Administrator
Administrator

@KG1 , prueba como

Rodadura 12 =
var _max = maxx(allselcted(date),date[date]) // o today()
var _min = fecha(año(_max), mes(_max)-12,1)
devolución
CALCULATE(AverageX(values('Date'[Month Year]) , [NLTI Calc]) ,filter(date, date[date] <=_max && date[date] >=_min))

y para Gt en todas las filas

Rodadura 12 GT =
var _max = maxx(allselcted(date),date[date]) // o today()
var _min = fecha(año(_max), mes(_max)-12,1)
devolución
CALCULATE(AverageX(values('Date'[Month Year]) , [NLTI Calc]) ,filter(date, date[date] <=_max && date[date] >=_min) , allselected() )

Lo siento, no puedo hacer que funcione 😞

KG1_0-1649241199399.pngKG1_1-1649241216705.png

Rodadura 12 =
Dónde _max = maxx(TODOSSELECCIONADOS(SHEQ[Mes]),SHEQ[Mes]) o hoy()
Dónde _min = fecha(año(_max), mes(_max)-12,1)
devolución
CALCULAR(PromedioX(valores('SHEQ'[Mes]) , [NLTI Calc]) ,filtro(SJEQ, SHEQ[Mes] <=_max && SHEQ[Mes] >=_min) , allselected() )

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.

Top Solution Authors