Hi @Newbie2019 ,
I have made a test on my side, and don't have the issue that you mentioned.
Based on the issue that you mentioned, I think there is something wrong with your formula. Please check if your LookUp formula could return proper value within your app.
You could add a Label control in your app, set the Text property to following:
LookUp(DetentionDates, Start = Text(DatePicker1_1.SelectedDate),End)
check if the Label control could display proper value.
Please also consider take a try to modify your formula as below:
LookUp(
DetentionDates,
Start = Text(DatePicker1_1.SelectedDate, "dd/mm/yyyy"),
End
)
check if the issue is solved.
In addition, I agree with @timl 's thought almost, please consider take a try to change your Start and End column into Date type column. Then within your app, you could take a try with the following formula to retrieve corresponding End column value:
LookUp(
DetentionDates,
Text(Start, "dd/mm/yyyy") = Text(DatePicker1_1.SelectedDate, "dd/mm/yyyy"), /* <-- Start column is a Date type column*/
End
)
Above formula may cause a Delegation warning issue, if the amount of your data source records is not more than 2000, you could ignore this warning issue.
More details about Delegation in PowerApps, please check the following article:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-overview
In order to get rid of this Delegation warning issue, please take a try with the following workaround:
Set the OnStart property of the App control or OnVsible property of the first screen of your app to following:
ClearCollect(RecordsCollection, DetentionDates)
Modify your formula as below (set the Default property of the DetentionDate Datepicker box to following😞
LookUp(
RecordsCollection,
Text(Start, "dd/mm/yyyy") = Text(DatePicker1_1.SelectedDate, "dd/mm/yyyy"), /* <-- Start column is a Date type column*/
End
)
Note: Please make sure the time zone settings of your SP list (SP Site) is the same as your local time zone.
Best regards,