Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Rolling year

Hi guys I need your help with a calculation for a rolling year.

Here is the calculation: F% = A(currentmonth going back a year) + B (Full 12 months) - C(full 12 months) + D(full 12 months) - E(For selected month)

This calculation should be dynamic that you can display values for the 12 months.

 

Currently when I do it it displays the answer at a total level and not the individual months

2 REPLIES 2
AntrikshSharma
Super User
Super User

If you are looking for running total then you could try something like this:

 

 

Running Total 2 = 
VAR MaxDateInFilterContext = MAX ( Dates[Date] )
VAR MaxYearInFilterContext = YEAR ( MaxDateInFilterContext )
RETURN
    CALCULATE (
        [Total Sales],
        FILTER (
            ALL ( Dates ),
            Dates[Date] <= MaxDateInFilterContext
                && Dates[Calendar Year Number] = MaxYearInFilterContext
        )
    )

 

or

 

Running Total =
CALCULATE ( [Total Sales], DATESYTD ( Dates[Date] ) )

 

running.PNG

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.