Forum Discussion

Cbutler's avatar
Cbutler
Icon for Helper III rankHelper III
6 years ago

How to return the latest text value depending on a date range

Hi all, 

I can't work out how to return the latest text value in my table depending on a date range. So my table is showing PPE concernes from providers, they will not anser this question each time just complete if the answer changes - I want to show the last text input

eg 

Provider nameDateAnswer (Yes/No)
A01/05/2020Yes
A02/05/2020 
A03/05/2020 
A04/05/2020No
A05/05/2020Yes 
B01/05/2020 

B

02/05/2020No
B03/05/2020 
B04/05/2020Yes
B05/05/2020 
C01/05/2020No
C02/05/2020 
C03/05/2020Yes
C04/05/2020No
C05/05/2020 

 

So.....
if date range selected is 01/05/2020 to 05/05/2020 then Provder A = Yes, B = Yes, C = No.
If date range selected is 01/05/2020 to 03/05/2020 then Provider A = Yes, B = No, C = Yes.
If date range selected is 01/05/2020 to 01/05/2020 then Provider A = Yes, B = "Blank/Not completed", C = No

Can anyone help me please......?

5 Replies