cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

Get the earlier matching result

Dear all,

 

I have one table with rates:

DateRate
01-01-20200,5
02-01-20200,4
04-01-20200,6
05-01-20200,3

 

I need a calculate column in another table bringing these rates. If there is no matching date, I need the earlier date to the missing one. 

 

This is the expected results when the 03-01-2020 is missing in the above table:

DateExchange
01-01-20200,5
02-01-20200,4
03-01-20200,4
04-01-20200,6

 

It doesn't find any match for the 03-01-2020 and finds the first available before that, the rate for the 02-01-2020 that is 0,4.

I'm not sure how to approach this. 

I tried this but the results are not correct:

 

earlier_.PNG

 

Thank you in advance

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV
Super User IV

Re: Get the earlier matching result

@setis , Instead of first nonblank try .

 

lastnonblankvalue([Date],[Rate])

 

rest of the Column formula will be the same.

 

The assumption, You have the missing date in the table and creating a new column.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

1 REPLY 1
Highlighted
Super User IV
Super User IV

Re: Get the earlier matching result

@setis , Instead of first nonblank try .

 

lastnonblankvalue([Date],[Rate])

 

rest of the Column formula will be the same.

 

The assumption, You have the missing date in the table and creating a new column.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors