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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Rajendrabobade
Helper II
Helper II

Promedio de los últimos 3 meses

Hola

Necesito el último 3 meses promedio dax , basado en el mes actual.

no hay selcción para el mes.

por ejemplo: por ahora hay noviembre es el mes actual.

Gracias.

1 ACCEPTED SOLUTION
camargos88
Community Champion
Community Champion

@Rajendrabobade ,

Si tiene una tabla de fechas, puede utilizar esta medida:

_Last3M = 
VAR _today = EOMONTH(TODAY(), 0)
VAR _tbl = DATESINPERIOD('Calendar'[Date], _today, -3, MONTH)
RETURN  CALCULATE(AVERAGE('Table'[Sales]), _tbl)


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

@Rajendrabobade ,

Prueba algo como esto

Medida promedio de 6 meses ?
CALCULATE(
SUM('Datos de ventas'[Ingresos]),
DATESINPERIOD('Datos de ventas'[weekstart],LASTDATE('Sales data'[weekstart]),-3,MONTH)
)
/
CALCULATE(
DISTINCTCOUNT('Datos de ventas'[weekstart]),
DATESINPERIOD('Datos de ventas'[weekstart],LASTDATE('Sales data'[weekstart]),-3,MONTH)
)
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!




camargos88
Community Champion
Community Champion

@Rajendrabobade ,

Si tiene una tabla de fechas, puede utilizar esta medida:

_Last3M = 
VAR _today = EOMONTH(TODAY(), 0)
VAR _tbl = DATESINPERIOD('Calendar'[Date], _today, -3, MONTH)
RETURN  CALCULATE(AVERAGE('Table'[Sales]), _tbl)


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors