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

How do I stop running total on the last value

I have running total which doing as expected but I'm unable to stop it a the last value date instead it going on forever till end of date calendar.

2 REPLIES 2
rajendraongole1
Super User
Super User

Hi @Sun4real  - Create a Measure for the Last Date with Data 

 

LastDateWithData =
CALCULATE(
MAX(Sales[Date]),
REMOVEFILTERS('DateTable')
)

 

I have taken the reference of Sales[Date], you can replace with the appropriate column from your dataset that contains the date of each transaction.

 

create main measure using the above lastdatewithdata with running totals

RunningTotal =
CALCULATE(
SUM(Sales[Amount]),
FILTER(
ALL('DateTable'),
'DateTable'[Date] <= MAX('DateTable'[Date])
&& 'DateTable'[Date] <= [LastDateWithData]
)
)

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





The result is still the same. I've attached the pbix to make it easier

Sun4real_0-1716892476045.png

 

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!

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