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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Peta_g
Helper I
Helper I

return date of lastnonblank - Last Updated Google Sheet - is this measure optimal?

Hey brains trust

 

I'm connecting to a Google Sheet that has number of columns input by staff most days. The Date field is prepopulated.

I want a measure that tells me the last date that a column [Amount Spent] had a value.

 

Is this the best way to achieve - (it is working but I'm new at this so not sure if this is the best way?):

 

Last Updated = CALCULATE(
MIN(WebDailyAdStats[Date]),
WebDailyAdStats[Amount Spent] = BLANK()
 
Cheers
2 REPLIES 2
wdx223_Daniel
Super User
Super User

@Peta_g this code might get the last date

Last Updated = LASTNOBLANK(ALL(WebDailyAdStats[Date]),CALCULATE(SUM(WebDailyAdStats[Amount Spent]),ALL(WebDailyAdStats)))
amitchandak
Super User
Super User

@Peta_g , that is correct, But use like


Last Updated = CALCULATE(
MIN(WebDailyAdStats[Date]),
isblank(WebDailyAdStats[Amount Spent]))

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.