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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Medición rápida media rodante - ¿He hecho esto correctamente?

Hola a todos

Estoy usando la medida rápida promedio rodante por primera vez y sólo quería comprobar que funcionaba correctamente. Necesito un promedio de 7 días, así que necesito seleccionar -6 o -7? ¿Y la segunda parte de la fecha DATEADD(_last debe ser un 0 o un 1?

Alerón

Atentamente

Jordania

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hola a todos

La respuesta a mi pregunta fue utilizar la siguiente fórmula, que tenía un -6 y 0. Indicando que se utilizará el día actual y también se agregarán los 6 días anteriores.

Alerón

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hola a todos

La respuesta a mi pregunta fue utilizar la siguiente fórmula, que tenía un -6 y 0. Indicando que se utilizará el día actual y también se agregarán los 6 días anteriores.

Alerón

v-yiruan-msft
Community Support
Community Support

Hola @jme1calff ,

Puede actualizar la fórmula de medida [Recuento de eventType promedio móvil] como se indica a continuación:

Count of EventType rolling average =
CALCULATE (
    COUNT ( 'Agent Data'[EventType] ),
    DATESINPERIOD ( 'Date'[Date], LASTDATE ( 'Date'[Date] ), -7, DAY )
)​​

Además, puede consultar la siguiente documentación para lograrlo.

Promedio continuo en Power BI

Media móvil basada en Rolling 7 días - por cliente/sujeto

Media móvil

Saludos

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@jme1calff , ¿Has probado como

Rolling 7 day á CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],MAX(Sales[Sales Date]),-7,Day))

o como

Rolling 3 hasta el último 2 Días CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],max(dateadd(Sales[Sales Date],-2,Day)),-3,Day))

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors