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
bunny18
Helper I
Helper I

Cómo calcular 3 meses y 6 meses promedio

Hola, estoy buscando ayuda para agregar un promedio de 3 meses y 6 meses a un gráfico de detección de defectos (2020) (pbix adjunto).

https://drive.google.com/file/d/1idTTxueLZ4PwfZVSeybambEAJ7BNAmTj/view?usp=sharing

También he puesto un gráfico de hoja de Excel que quiero replicar en el pbix.

¿Podrías por favor ayudar a cómo lograrlo.

1 ACCEPTED SOLUTION
manikumar34
Solution Sage
Solution Sage

@bunny18 ,

Use algo como esto en la columna Fecha.

Medida promedio de 6 meses ?
CALCULATE(
SUM('DRE creado 2020'[DRE2020]),
DATESINPERIOD('DRE creado 2020'[TempColumn],LASTDATE('DRE creado 2020'[TempColumn]),-6,MONTH)
)
/
CALCULATE(
DISTINCTCOUNT('DRE creado 2020'[TempColumn]),
DATESINPERIOD('DRE creado 2020'[TempColumn],LASTDATE('DRE creado 2020'[TempColumn]),-6,MONTH)
)

manikumar34_0-1603194480610.png

saludos

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




View solution in original post

2 REPLIES 2
manikumar34
Solution Sage
Solution Sage

@bunny18 ,

Use algo como esto en la columna Fecha.

Medida promedio de 6 meses ?
CALCULATE(
SUM('DRE creado 2020'[DRE2020]),
DATESINPERIOD('DRE creado 2020'[TempColumn],LASTDATE('DRE creado 2020'[TempColumn]),-6,MONTH)
)
/
CALCULATE(
DISTINCTCOUNT('DRE creado 2020'[TempColumn]),
DATESINPERIOD('DRE creado 2020'[TempColumn],LASTDATE('DRE creado 2020'[TempColumn]),-6,MONTH)
)

manikumar34_0-1603194480610.png

saludos

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




amitchandak
Super User
Super User

@bunny18, puedes probar medidas como estas con una tabla de fechas

Rolling 6 á CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],ENDOFMONTH(Sales[Sales Date]),-6,MONTH))
Rolling 6 á CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX(Sales[Sales Date]),-6,MONTH))
Rolling 6 á CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-6,MONTH))

Para obtener lo mejor de la función de inteligencia del tiempo. Asegúrese de que tiene un calendario de fechas y que se ha marcado como la fecha en la vista de modelo. Además, únete a ella con la columna de fecha de tus hechos. Consulte :radacad sqlbi My Video Series Aprecia tus Felicitaciones.

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.