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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Finding the value at the earliest date in a column

Hello, 

 

I have made a column that only gives me the values from a table for the past two weeks, however the rows before that point are all null. Because of this I haven't been able to figure our a way to use the EARLIEST function. When I use the FIRSTNONBLANK value it only gives me the minimum value from the time span. Is there is a solution using what I have in place or a better solution that will give week the value of a column from two weeks ago the current date?

4 REPLIES 4
Ahmedx
Super User
Super User

You can get rid of empty rows, but you still need an index column.
You can do all this in power query

Ahmedx
Super User
Super User

Can you please share your demo input and expected output!

Ritaf1983
Super User
Super User

Hi @Anonymous 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

@Ahmedx , @Ritaf1983,

 

This is what my current Custom columns look like. I would like to make a measure that returns the value from the first value in each row and a measure to return the last row, in row 2 for example I would like to return 829.82 and 881.70 respectively. The issue I am running into due to the blank rows above and below causing EARLIEST() and EARLIER() not to work and FIRSTNONBLANK() returns 800.52 rather than the number I'd like returned.

 

Trend PeriodEffluent TrendConcentration TrendFlow TrendLoading TrendTPD TrendTemp Trend
       
       
       
       
       
       
       
       
10/3/2023829.82642166.667813.22313300.5388785
10/4/2023933.57182300777.9671359275986
10/5/2023800.52752233.333743.50112718.7685386
10/10/2023868.05112200839.32414031.6988180
10/11/2023817.207 771.668 86081
10/12/2023881.7022 850.911 87381
       
       
       
       
       
       
       
       
       
       

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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