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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Mattpar
Frequent Visitor

How to stop showing 'cumulative actual' line values for future weeks.

Hi,

 

Below is my problem.. and thanks in advance for any solutions!

 

Line's below represent cumulative budget vs actual figures for year-week.

 

I am showing future 4 weeks budget forecast in the graph (red line) but I do not want to see a flat cumulative actual (blue) line for the future weeks. Since this is a weekly updated graph I am looking into a moving solution not just a running total up to 2020-31. Also to note my year-week values are stored as text.

 

Currently my runnning total measure is like below. It starts from week 2020-19 and goes up to max week number.

 

Cumulative Actual = CALCULATE([Actual Spent],FILTER('Combined'[Year-Week] >= "2020-19" && 'Combined'[Year-Week] <= MAX('Combined'[Year-Week])))

 

Capture.JPG

 

 

Capture2.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Mattpar ,

Please update the formula of your measure "Cumulative Actual" as below and check whether it can get your desired result:

Cumulative Actual =
VAR _CumActual =
    CALCULATE (
        [Actual Spent],
        FILTER (
            'Combined',
            'Combined'[Year-Week] >= "2020-19"
                && 'Combined'[Year-Week] <= MAX ( 'Combined'[Year-Week] )
        )
    )
RETURN
    IF ( NOT ( ISBLANK ( [Actual Spent] ) ), _CumActual, BLANK () )

Best Regards

Rena

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Mattpar ,

Please update the formula of your measure "Cumulative Actual" as below and check whether it can get your desired result:

Cumulative Actual =
VAR _CumActual =
    CALCULATE (
        [Actual Spent],
        FILTER (
            'Combined',
            'Combined'[Year-Week] >= "2020-19"
                && 'Combined'[Year-Week] <= MAX ( 'Combined'[Year-Week] )
        )
    )
RETURN
    IF ( NOT ( ISBLANK ( [Actual Spent] ) ), _CumActual, BLANK () )

Best Regards

Rena

@Anonymous That is all I needed. Works perfectly!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors