This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hi All
I would like to work on some calutaion on past 12 month average of "Truck handle per HeadCount"
I have below existing formula
| Apr | 32 |
| Mar | 21 |
| Feb | 22 |
| Jan | 22 |
| Dec | 18 |
| Nov | 19 |
| Oct | 12 |
| Sep | 15 |
| Aug | 12 |
| Jul | 10 |
| Jun | 9 |
| May | 8 |
| Apr | 4 |
| Last12AVG | 14.33 |
Hi @Ericwhv
You can refer to the following sample
Sample data
Then create a measure
Measure = var a=SUMX(FILTER(ALL('Table'),OR('Table'[Year]=SELECTEDVALUE('Table'[Year])&&[Monthnum]<SELECTEDVALUE('Table'[Monthnum]),'Table'[Year]<SELECTEDVALUE('Table'[Year])&&[Monthnum]>=SELECTEDVALUE('Table'[Monthnum]))),[Trucks per HC])
return DIVIDE(a,12)
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
please provide better sample data - at the minimum it needs to include the year.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 25 | |
| 24 | |
| 22 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 43 | |
| 42 | |
| 41 | |
| 21 | |
| 21 |