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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I need help with creating a DAX measure that shows roling 12 month values.
I tried creating a measure as below but it shows cumalative and is wrong..
Solved! Go to Solution.
Hi @dinhandy1
you can try
Rolling 12 CA =
VAR CurrentDate =
MAX ( 'Rolling 12'[reportdate] )
VAR StartDate = CurrentDate - 364
RETURN
CALCULATE (
[Total CA $],
REMOVEFILTERS ( 'Rolling 12' ),
'Rolling 12'[reportdate] >= StartDate,
'Rolling 12'[reportdate] <= CurrentDate
)
If you have filter safe columns (columns that you use in slicers) then you need to replace REMOVEFILTERS with ALLEXCEPT and add the filter safe columns inside it.
Hi @dinhandy1
you can try
Rolling 12 CA =
VAR CurrentDate =
MAX ( 'Rolling 12'[reportdate] )
VAR StartDate = CurrentDate - 364
RETURN
CALCULATE (
[Total CA $],
REMOVEFILTERS ( 'Rolling 12' ),
'Rolling 12'[reportdate] >= StartDate,
'Rolling 12'[reportdate] <= CurrentDate
)
If you have filter safe columns (columns that you use in slicers) then you need to replace REMOVEFILTERS with ALLEXCEPT and add the filter safe columns inside it.