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

View all the Fabric Data Days sessions on demand. View schedule

Reply
raykhey
Frequent Visitor

show last value of a column

Hello, i want to show on a card the last value (from timestamp) of my progression , i tried LASTNONBLANK('Project'[data.progress],1) but it returns 0.88 which is not the last value (0.83)

raykhey_0-1697468349627.png

thanks

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @raykhey ,

The following DAX might work for you:

 

lastdata =

VAR Lasttimestamp = CALCULATE(LASTDATE('project'[timestamp]),ALLSELECTED(project))

RETURN

CALCULATE(SUM(project[data.progress]),project[timestamp]=Lasttimestamp)

 

The final output is shown in the following figure:

vjunyantmsft_1-1698052339887.png

Best Regards,

Dino Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @raykhey ,

The following DAX might work for you:

 

lastdata =

VAR Lasttimestamp = CALCULATE(LASTDATE('project'[timestamp]),ALLSELECTED(project))

RETURN

CALCULATE(SUM(project[data.progress]),project[timestamp]=Lasttimestamp)

 

The final output is shown in the following figure:

vjunyantmsft_1-1698052339887.png

Best Regards,

Dino Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hey Raykhey,

If you don't need to know the value of the preceding dates (Where the .88 is occurring) the following DAX might work for you. 

 

Last Value Progress = 
var max_date = MAX('Table'[timestamp])
var return_value = Calculate(MAXX(TOPN(1,'Table'),'Table[data.progress]), 'Table'[timestamp] = max_date)

return
return_value


I'm not sure what your table looks like but that should do the trick for pulling the last value from the table.

Let me know if that works or you have any questions!

 

Best,

JTB

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
Top Kudoed Authors