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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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