Join 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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I have a table having MonthYr and Value as mentioned below and I wanted to calculate Moving Average as mentioned expected output.
Moth Yr Value Expected output
Feb-16 14
Mar-16 21 17.5
Apr-16 11 16
May-16 43 27
Jun-16 17 30
Jul-16 19 18
Aug-16 31 25
Sep-16 23 27
Oct-16 12 17.5
Solved! Go to Solution.
Hi, @Anonymous
Add a calculated column in table
CountRows2 = 1
Create measures following the below formulas:
RunningRows =
CALCULATE (
SUM ( 'Moving Agerage'[CountRows2] ),
FILTER (
ALL ( 'Moving Agerage' ),
'Moving Agerage'[MonthYr] <= MAX ( 'Moving Agerage'[MonthYr] )
)
)
RunningTotal =
CALCULATE (
SUM ( 'Moving Agerage'[Value] ),
FILTER (
ALL ( 'Moving Agerage' ),
'Moving Agerage'[MonthYr] <= MAX ( 'Moving Agerage'[MonthYr] )
)
)
MovingAverage = [RunningTotal]/[RunningRows]Best regards,
Yuliana Gu
Hi, @Anonymous
Add a calculated column in table
CountRows2 = 1
Create measures following the below formulas:
RunningRows =
CALCULATE (
SUM ( 'Moving Agerage'[CountRows2] ),
FILTER (
ALL ( 'Moving Agerage' ),
'Moving Agerage'[MonthYr] <= MAX ( 'Moving Agerage'[MonthYr] )
)
)
RunningTotal =
CALCULATE (
SUM ( 'Moving Agerage'[Value] ),
FILTER (
ALL ( 'Moving Agerage' ),
'Moving Agerage'[MonthYr] <= MAX ( 'Moving Agerage'[MonthYr] )
)
)
MovingAverage = [RunningTotal]/[RunningRows]Best regards,
Yuliana Gu
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |