Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hola a todos, soy bastante nuevo en DAX para poder usar toda la ayuda que pueda conseguir aquí. Encontré la definición DAX para moving/rolling average como se muestra a continuación:
Solved! Go to Solution.
Hola, @theDarkPrince
por favor, pruebe la siguiente medida.
Promedio rodante =
LASTDATE_ VAR =
LASTDATE ( Consulta1[fecha] )
devolución
IF (
ISBLANK (
CALCULAR (
SUM ( Query1[OI_Prediction_Month] ),
DATEADD ( Consulta1[fecha], -3, MES )
)
),
EN BLANCO (),
CALCULAR (
AVERAGEX (
VALORES ( 'Calendario'[MonthInCalendar] ),
CALCULATE ( SUM ( Query1[OI_Prediction_Month] ) )
),
FILTRO (
ALL ( Query1 ),
Query1[fecha] <= LastDate_
&& Consulta1[fecha] > DATEADD ( LastDate_, -3, MES )
)
)
)
Hola, mi nombre es Jihwan Kim.
Si este post ayuda, entonces considere aceptarlo como la solución para ayudar a otros miembros a encontrarlo más rápido, y dar un gran pulgar hacia arriba.
Hola, @theDarkPrince
por favor, pruebe la siguiente medida.
Promedio rodante =
LASTDATE_ VAR =
LASTDATE ( Consulta1[fecha] )
devolución
IF (
ISBLANK (
CALCULAR (
SUM ( Query1[OI_Prediction_Month] ),
DATEADD ( Consulta1[fecha], -3, MES )
)
),
EN BLANCO (),
CALCULAR (
AVERAGEX (
VALORES ( 'Calendario'[MonthInCalendar] ),
CALCULATE ( SUM ( Query1[OI_Prediction_Month] ) )
),
FILTRO (
ALL ( Query1 ),
Query1[fecha] <= LastDate_
&& Consulta1[fecha] > DATEADD ( LastDate_, -3, MES )
)
)
)
Hola, mi nombre es Jihwan Kim.
Si este post ayuda, entonces considere aceptarlo como la solución para ayudar a otros miembros a encontrarlo más rápido, y dar un gran pulgar hacia arriba.
Hola Jihwan, muchas gracias. 😊 Una vez que te leí el código DAX, me llegó que la solución es bastante simple. Supongo que necesito más práctica con DAX para ponerme al día.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |