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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Jendeep
Frequent Visitor

Calculate Actual spend from a cumulative spend

How to create dax measure 'actual spend' for that month when I have cumulative spend amount value for month on month. Please help.

I tried something like this

ActualSpend = CALCULATE([Spend To Date]-CALCULATE([Spend To Date],PREVIOUSMONTH('dates table'[Date].[Date])),VALUES (' dates table'[Date].[Date]))
but it gives me the same value as the Spend To Date. 
[Spend To Date] is a measure that calculates the sum(costactualspent)
what am I missing? 
2 REPLIES 2
Gengar
Resolver I
Resolver I

Hi @Jendeep ,

 

Please try something like this:

ActualSpend =
VAR _previous =
    CALCULATE (
        [Spend To Date],
        FILTER (
            ALL ( 'dates table' ),
            [Date] <= EOMONTH ( MAX ( 'dates table'[Date] ), -1 )
        )
    )
RETURN
    [Spend To Date] - _previous

 

Best regards,

Gengar

Hi,

I applied your formulae to calculate the actual spend for that month. It is appearing as below. 

 

Jendeep_1-1691733350360.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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