The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Solved! Go to Solution.
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)
Prueba algo como esto
Proud to be a Super User!
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)