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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
niculeica
Helper I
Helper I

Need Running Total to ignore Year filter

Hi, community,

 

Having some troubles making Running Total ignore Year slicer. I've read a couple of similar threads, however, I'm still missing something 😞

 

So I have a Transactions table and a Period table based on it [Calendar(Min,Max)]. I've used the below formula to display Running totals per each period, but if I select a specific year in Year filter, the Running total starts with the first period of that year (it's cutting out anything before, not summing it up). I've tried with ALLEXCEPT('_Period'[_Year]) or even with ALL('_Period') and same result (Year field belongs to Period table as well).

 

Any idea what I could go for here?

 

_Revenue running total in Period =
CALCULATE(
    SUM('TransactionsbySegment'[_Revenue]),
    FILTER(
        CALCULATETABLE(
            SUMMARIZE('_Period', '_Period'[_Period Sort], '_Period'[Period]),
            ALLSELECTED('_Period')
        ),
        ISONORAFTER(
            '_Period'[_Period Sort], MAX('_Period'[_Period Sort]), DESC,
            '_Period'[Period], MAX('_Period'[Period]), DESC
        )
    )
)
1 ACCEPTED SOLUTION
mh2587
Super User
Super User

_Revenue running total in Period = //Try this one
CALCULATE(
    SUM('TransactionsbySegment'[_Revenue]),
    FILTER(
        ALL('_Period'),
        '_Period'[_Period Sort] <= MAX('_Period'[_Period Sort])
    )
)

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



View solution in original post

2 REPLIES 2
mh2587
Super User
Super User

_Revenue running total in Period = //Try this one
CALCULATE(
    SUM('TransactionsbySegment'[_Revenue]),
    FILTER(
        ALL('_Period'),
        '_Period'[_Period Sort] <= MAX('_Period'[_Period Sort])
    )
)

Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Much appreciate it, @mh2587 !🤝 It did work.

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors