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
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
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 Kudoed Authors