Hello everyone, I'm experiencing some strange behavior with my filter query in Power Apps / SharePoint list.
Expressions:
With ({
myTimeData;
Filter(
If(_historyYear = Year(Today());
TimeHistory;
TimeHistory //planned: other SP list
)
};
....
)
With ({
myTimeData;
Filter(
//If(_historyYear = Year(Today());
TimeHistory;
// TimeHistory //planed: other SP list
//)
)
};
...
)
The first expression returns no results.
When I comment out the If statement (expression 2), one record is found as expected.
How can I solve this problem? Currently, the same SharePoint list is being used as the data source for both cases. The plan is to move historical data to a separate location so that the SharePoint lists don't become too large.