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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Problem with Cumulative sum

Hi,

 

I am trying to use cumulative sum but I am not getting any results.  I select a year and a month and the fields with the formula  appear blank. I have values for all the fields..Can you help?

 

I have two formulas

cumulative sum=

CALCULATE (
SUM ( vwExecucaoMensalItem[BudgetPurchaseValue] );
FILTER (
ALL (vwExecucaoMensalItem[Date] );
vwExecucaoMensalItem[Date] < MAX ( vwExecucaoMensalItem[Date])
)
)

cumulative sum 2=

 

CALCULATE (
SUM ( vwExecucaoMensalItem[BudgetPurchaseValue] );
FILTER (
ALL (vwExecucaoMensalItem[Date] );
vwExecucaoMensalItem[Date] >MAX ( vwExecucaoMensalItem[Date])
)
)

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you but I already solve it. I had to create a date table in order to work.

View solution in original post

4 REPLIES 4
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

Try the below.

 

cumulative sum=
CALCULATE (
    SUM ( vwExecucaoMensalItem[BudgetPurchaseValue] );
    FILTER (
        ALL ( vwExecucaoMensalItem );
        vwExecucaoMensalItem[Date] <= MAX ( vwExecucaoMensalItem[Date])
    )
)

 

Regards,
Mariusz

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

Anonymous
Not applicable

I already try but it doesn't give the right results... 😕

Anonymous
Not applicable

Hi @Anonymous ,

If you can please share a pbix file with some sample data for test. It is hard to test without any detail information.

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Thank you but I already solve it. I had to create a date table in order to work.

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.