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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dmbd1904
Helper III
Helper III

Cumulative Measure Using Other Measures

Hi, I've been struggling with this one for a few hours and would really appreciate some help...

 

I have the below table (In the image). 'The Forecast Cost' is a column. The other measures are included below. I'm trying to get the running total of the 'Combined' measure, but as you can see the total dips in September, when it shouldn't.

 

Starting Point =

var StartDate = [Earliest Month with Forecast]
Return
IF(ISBLANK([**bleep**. Forecast Cost]),
CALCULATE(
    SUM('Cairns Home Construction$Job Ledger Entry'[Total Cost]),
        'Calendar'[Month]<StartDate
    ),BLANK())
 
 
Combined = CALCULATE(SUM('Commercial Forecasts'[Forecast Cost]))+[Starting Point]

 

Running Total =
CALCULATE(
    [Combined],
    FILTER(
        ALLSELECTED('Calendar'[Month]),
        ISONORAFTER('Calendar'[Month], MAX('Calendar'[Month]), DESC)
    )
)

dmbd1904_0-1594459741870.png

 

5 REPLIES 5
amitchandak
Super User
Super User

@dmbd1904 ,

If total cost have no data when forecast data is there

Combined = CALCULATE(SUM('Cairns Home Construction$Job Ledger Entry'[Total Cost]))+[Starting Point]

else
Combined = CALCULATE(if(max('Calendar'[Month])<StartDate,SUM('Cairns Home Construction$Job Ledger Entry'[Total Cost]),0))+[Starting Point]

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak , thanks for your reply.

 

I'm struggling to execute what you have suggested. I've tried the changing the 'Combined' measure to the below but this hasn't worked (See the image).

 

Combined =
var StartDate = [Earliest Month with Forecast]
Return
IF(AND(NOT(ISBLANK(CALCULATE(SUM('Commercial Forecasts'[Forecast Cost])))),ISBLANK([Starting Point])),
CALCULATE(SUM('Cairns Home Construction$Job Ledger Entry'[Total Cost]))+[Starting Point],
CALCULATE(if(max('Calendar'[Month])<StartDate,SUM('Cairns Home Construction$Job Ledger Entry'[Total Cost]),0))+[Starting Point])
 

1.jpg

Hi,  @dmbd1904 

Do you have resolved it? If yes, you could accept the helpful answer as solution. You also could share your own solution here. For now, there is no content of description in the thread. If you still need help, please share more details to us.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@dmbd1904 ,Can you share sample data and sample output in table format?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.