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.
Pude crear un par de medidas para obtenerlo:
Primero necesitas una media móvil simple para tu 1er período. Estoy usando una AME de 8 períodos aquí:
Cuando se utiliza en el DAX de la EMA, recogerá el SMA correcto (consulte la medida [Horas reactivas SMA8] en la variable "_EMAW8".
Ahora así es como todo se une:
Reactive Hours EMA8 =
var _lastDate = CALCULATE(MAX('Calendar'[WeekEndDate]), FILTER('Calendar', 'Calendar'[WeekEndDate] < ode="">
Note that "_lastDate" variable return the week end date from last week with any date filter applied, so that wehn you put the measure in a line chart with a date axis, it will calculate the EMA for each date.
var _lastDate = CALCULATE(MAX('Calendar'[WeekEndDate]), FILTER('Calendar', 'Calendar'[WeekEndDate] < today()))
Then every "_EMAWx" variable will calculate the EMA from the 8th week from now up to last week.
Now I did get differences from an Excel Spreadsheet calculation of the same data. So I'm not entirely sure if it's accurate. Any feedback woudl be appreciated
¿Podría proporcionar algunos datos de muestra (con información confidencial eliminada) y publicar el resultado esperado?
Gracias de antemano.
Cómo obtener respuestas a su pregunta rápidamente
Cómo proporcionar datos de ejemplo en el foro de Power BI
Saludos
Gao
Equipo de soporte de la comunidad
Si hay alguna publicación que ayude, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente. Si no entiendo bien sus necesidades o todavía tiene problemas, no dude en hacérnoslo saber. ¡Muchas gracias!
Cómo obtener respuestas rápidas a sus preguntas -- Cómo proporcionar datos de muestra
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.