Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi,
Create a Calendar Table and build a connection between the Month column of your data table and the Date column of the Calendar Table. In the Calendar Table, extract Year, Month name and Month number via calculated column formulas. Sort the Month name by month number. Create slicers for Year and Month name and select July 2021. Write these measures
Total = sum(data[amount])
Average 3 months = averagex(summarize(filter(calendar,datesbetween(calendar[date],edate(min(calendar[date]),-2),max(calendar[date]))),calendar[year],calendar[month name],"ABCD",[Total]),[abcd])
Hi,
Create a Calendar Table and build a connection between the Month column of your data table and the Date column of the Calendar Table. In the Calendar Table, extract Year, Month name and Month number via calculated column formulas. Sort the Month name by month number. Create slicers for Year and Month name and select July 2021. Write these measures
Total = sum(data[amount])
Average 3 months = averagex(summarize(filter(calendar,datesbetween(calendar[date],edate(min(calendar[date]),-2),max(calendar[date]))),calendar[year],calendar[month name],"ABCD",[Total]),[abcd])
I am not sure whether you want to use the date column or index column in the question.
I assume as you want to do using Index column, give a try and see
6MonthAVG =
VAR MaxVal =
CALCULATE ( MAX ( 'Table1'[IndexCol] ), ALL ( 'Table1' ) )
RETURN
CALCULATE (
SUM ( 'Table1'[Amount] ),
'Table1'[IndexCol] <= MaxVal && 'Table1'[IndexCol] > (MaxVal - 6)
) / 6
3MonthAVG =
VAR MaxVal =
CALCULATE ( MAX ( 'Table1'[IndexCol] ), ALL ( 'Table1' ) )
RETURN
CALCULATE (
SUM ( 'Table1'[Amount] ),
'Table1'[IndexCol] <= MaxVal && 'Table1'[IndexCol] > (MaxVal - 3)
) / 3
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 78 | |
| 48 | |
| 34 | |
| 31 | |
| 29 |