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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
RobynMoller23
Frequent Visitor

Running Total

Hi

I am trying to compare running total over 3 years.  The previous 2 years are okay but I want the Running total to stop at the current month in this FY.  The code I am using is 

FY Running total =
CALCULATE(
    [Cases],
    FILTER(
        CALCULATETABLE(
            SUMMARIZE('Date_Tbl',Date_Tbl[FY Month],Date_Tbl[Month Name]),
            ALLSELECTED('Date_Tbl')
            ),
                ISONORAFTER(
                    'Date_Tbl'[FY Month], MAX('Date_Tbl'[FY Month]), DESC,
            'Date_Tbl'[Month Name], MAX('Date_Tbl'[Month Name]), DESC
        )
    )
)
    RobynMoller23_0-1705979100266.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @RobynMoller23 
You can filter out the "future" months.

Please refer to the linked video:
https://www.youtube.com/watch?v=VXd1wl-5vKI&t=5s

in the video, they use the logic of the last transaction, you can also implement the same according to today()

 If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @RobynMoller23 
You can filter out the "future" months.

Please refer to the linked video:
https://www.youtube.com/watch?v=VXd1wl-5vKI&t=5s

in the video, they use the logic of the last transaction, you can also implement the same according to today()

 If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
DallasBaba
Skilled Sharer
Skilled Sharer

@RobynMoller23 To calculate the running total up to the current month in this fiscal year, you can modify the code to include DATESYTD('Date_Tbl'[Date]) as follows :

FY Running total =
CALCULATE(
    [Cases],
    FILTER(
        CALCULATETABLE(
            SUMMARIZE('Date_Tbl',Date_Tbl[FY Month],Date_Tbl[Month Name]),
            ALLSELECTED('Date_Tbl')
            ),
                ISONORAFTER(
                    'Date_Tbl'[FY Month], MAX('Date_Tbl'[FY Month]), DESC,
            'Date_Tbl'[Month Name], MAX('Date_Tbl'[Month Name]), DESC
        )
    ),
    DATESYTD('Date_Tbl'[Date])
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was helpful in other ways, please consider giving it a Thumbs Up.
 
Best Regards,
Dallas.

 

Thanks
Dallas

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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