I'm trying to filter a table based on the date being after today and a simple status field, but I'm having trouble.
ClearCollect( colAll, Filter('[table]',end_date>Today(),status="A" ));
end_date is a date field. If I remove the date comparison, it works, but with the date comparison, I get an emply collection. If I do it manually in Power BI, I can see about 500 filtered records. Is the comparison more complicated than this?
Hi @kman42 ,
I've made a test but not met the problem as your description.
Could you tell me
1)what's your data source?
2)what's status's data type?
What's more, the formula"Filter('[table]',end_date>Today(),status="A" )" is eqal to:
Filter('[table]',end_date>Today() && status="A" )
Please check whether there's item that meet the two requirements.
Community Support Team _ Phoebe Liu
Just to expand on what @v-yutliu-msft says, the data source that you're using plays an important part.
With SharePoint for example, filtering a date field with the > operator results in a non-delegable query. This means that if your source data contains more than the 2000 records (as defined in the non-delegable query limit in the settings of your app), the Filter function may not return accurate results.
If you let us know what data source you're using, we can advise further.
Check out new user group experience and if you are a leader please create your group
We are excited to announce that Demo Extravaganza for 2021 has started!
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks
Did you miss the call? Check out the recording here!