Hello everybody,
can someone tell me what I am doing wrong with the following example?
If(
DatePicker3.SelectedDate >= 1;
Sort(
Filter(
'Reports';
DatePicker3.SelectedDate = 'ReportTime'
);
Descending
);
'Reports'
)
There is a SharePoint list with a "ReportTime" column. New reports are created every day so that the bottom entry in the SharePoint list is the most current.
In Power Apps I want to query the SharePoint list and filter the returned result by the latest date.
So far it looks like the entries are being displayed to me, but the filtering doesn't really work. In the gallery, the oldest entry is at the top, as well as from SharePoint.
As if that wasn't enough. There is a DatePicker in the APP. If the user selects a specific date, only the reports with the selected date should be queried or, if no date is selected, then preferably only the last 30 entries from the list (filtered according to the latest "ReportTime").
It works, but unfortunately without filtering.
regards
Livearus