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

DAX Measure for last value of running total?

Hello community!

I'm struggling to create a DAX measure to pick out the running total result on my last date (14/07/2023).
The purpose of this is to put a dot in my running total graph/sparkline (marked as red cross). As you can see my attempt of this formular shows 57, whereas it should be 5701.

Many thanks in advance and I look forward to your response.

longtran_1-1689866045962.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@longtran , Create a meausre like

 

M1=

var _max = maxx(allselected(Table), Table[Date])

return

calculate(Sum(Table[Values]), filter(allselected(Table), Table[Date] <= _max) )

 

or

 

M1=

var _max = maxx(all(Table), Table[Date])

return

calculate(Sum(Table[Values]), filter(all(Table), Table[Date] <= _max) )

 

Use this as second line/value and then enable marker for this line

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,

 

Many thanks for your response. I've tried both formulas but they gave me a single line across the chart instead of a dot for the final day. Please see below, thanks again!

longtran_0-1689926758044.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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