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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am trying to get the 12 month Rolling Total Amount to show in a table where I dont have the date in the row context
I have State or city dimention as row context
I just need the rolling totals for the last month i.e. Nov 2021 to Oct 2022
I need the sum of the total amounts for the last 12 months as one of the columns in the table below (column 6)
irrespective of whatever date filters / slicers are picked
can someone please help with this
Solved! Go to Solution.
Hi @Saurabh129 - I believe that you mean that you want the previous 12 months of sales based on Today date. Do you have a calendar table? If so the following should work:
Rolling Last 12 Month Sales Amount =
VAR _EndDate = EOMONTH( TODAY(), -1)
RETURN
CALCULATE (
[Sales Amount],
DATESINPERIOD (
'Date'[Date],
_EndDate,
-1,
YEAR
)
)
Hi @Saurabh129 - I believe that you mean that you want the previous 12 months of sales based on Today date. Do you have a calendar table? If so the following should work:
Rolling Last 12 Month Sales Amount =
VAR _EndDate = EOMONTH( TODAY(), -1)
RETURN
CALCULATE (
[Sales Amount],
DATESINPERIOD (
'Date'[Date],
_EndDate,
-1,
YEAR
)
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 20 | |
| 20 | |
| 17 | |
| 14 | |
| 14 |