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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
AllanBerces
Post Prodigy
Post Prodigy

Visual Calculation

Hi good day can someone help me on my visual calculation, on my S-Curve i want the actual cumulative line to be up to the current week. the line on the red box should not display.

AllanBerces_0-1755676365959.png

Thank you

1 ACCEPTED SOLUTION

Hi @rohit1991 @Shahid12523 thank you for the reply, a got the solution.

**bleep** Actual = IF([S.No.]<= WEEKNUM(TODAY()), RUNNINGSUM([Actual]))

View solution in original post

3 REPLIES 3
rohit1991
Super User
Super User

Hi @AllanBerces 

To stop the cumulative Actual line from extending into future weeks, you can create a measure that only shows values up to the last week with actuals:

Last Actual Date =
CALCULATE (
   MAX ( 'Data'[Date] ),
   FILTER ( ALL ( 'Data'[Date] ), [Actual] > 0 )
)
**bleep** Actual (shown) =
VAR lastDate = [Last Actual Date]
RETURN
IF ( MAX ( 'Data'[Date] ) > lastDate, BLANK(), [**bleep** Actual (raw)] )

Now use **bleep** Actual (shown) in your chart instead of the raw cumulative measure. This way, the line will stop exactly at the current week with data and won’t display beyond it.

 

image.png

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
Shahid12523
Community Champion
Community Champion

Use this DAX so the Actual cumulative line stops at the last actual week:

 

**bleep** Actual =
VAR _lastWeek =
MAXX ( FILTER ( ALL ( TableName[WeekID] ), NOT ISBLANK ( TableName[Actual] ) ), TableName[WeekID] )
RETURN
IF (
MAX ( TableName[WeekID] ) <= _lastWeek,
CALCULATE (
SUM ( TableName[Actual] ),
FILTER ( ALL ( TableName[WeekID] ), TableName[WeekID] <= MAX ( TableName[WeekID] ) )
)
)

Shahed Shaikh

Hi @rohit1991 @Shahid12523 thank you for the reply, a got the solution.

**bleep** Actual = IF([S.No.]<= WEEKNUM(TODAY()), RUNNINGSUM([Actual]))

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.