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
Avermaak
Frequent Visitor

Cumulative Actuals HELP

Good day,

 

I need some assistance with a dax formula for Cumulative actuals. Due to me only having one actual for the first period, I want to override the 0.00 values with the budget amount.

So firstly I created a new actual by overriding the 0.00 values with the budget but when I do the cumulative formula it does not add the amount as needed. Please assist with the cumulative amounts, below are the formula's used

 

Avermaak_0-1660729593765.png

 

NEW Actual =
IF (SUM('Key Metrics per Month'[Actual]) = BLANK (),sum('Key Metrics per Month'[Budget]),0) + SUM('Key Metrics per Month'[Actual])
 
Cumulative Actual =
CALCULATE(
    [NEW Actual],
    FILTER(
        ALLSELECTED('Key Metrics per Month'[Financial Period]),
        ISONORAFTER('Key Metrics per Month'[Financial Period]MAX('Key Metrics per Month'[Financial Period]), DESC)
    )
)
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please try something like below whether it works.

 

Cumulative Actual =
CALCULATE (
    SUMX ( VALUES ( 'Key Metrics per Month'[Financial Period] ), [NEW Actual] ),
    FILTER (
        ALLSELECTED ( 'Key Metrics per Month'[Financial Period] ),
        ISONORAFTER (
                'Key Metrics per Month'[Financial Period], MAX ( 'Key Metrics per Month'[Financial Period] ), DESC
        )
    )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

Please try something like below whether it works.

 

Cumulative Actual =
CALCULATE (
    SUMX ( VALUES ( 'Key Metrics per Month'[Financial Period] ), [NEW Actual] ),
    FILTER (
        ALLSELECTED ( 'Key Metrics per Month'[Financial Period] ),
        ISONORAFTER (
                'Key Metrics per Month'[Financial Period], MAX ( 'Key Metrics per Month'[Financial Period] ), DESC
        )
    )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Thank you, it works perfectly.

 

Avermaak_0-1660805678714.pngAvermaak_1-1660805707118.png

 

 

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.

Top Solution Authors