Hi there. I have a data table which needs to be filtered by the lookup field, based on the learner id of the current record, but it's not accepting my filter syntax. I have:
Filter(Notes,Notes.Learner_ID = PrimaryIDTextInput.Text)
The data table is connected to the Notes entity, and I want it to filter the results based on the Learner_ID field (the look up field) of that entity matching the text of the PrimaryIDTextInput.
What have I missed?
Have you treid converting the text to an integer value? I assume the Learner_ID is an integer. Try:
Filter(Notes,Notes.Learner_ID = Value(PrimaryIDTextInput.Text))
@Mike8 @BitLord69 thanks for the suggestions. It is accepting both... sort of. I'm getting a non-delegable warning that the = predictate isn't supported by the look up column, so it isn't returning any data.
The source is a CDS entity, which supports both the Filter function and the = predictate, so I don't know why it isn't accepting it.
I also note that the Data field shows 'No data', but when I click on it, it shows the Notes data source. Presumably this is due to the = predictate as well?
Could you please share a bit more about your Notes entity?
I have made a test and the issue is confirmed on my side.
As an alternative solution, please take a try with the following workaround:
The Items property of the Data table control set to following formula:
On your side, please take a try with following formula:
Or you could also set the Items property of Data table control to following formula:
More details about the Search function, please check the following article:
More details about the Disambiguation operator (@) in PowerApps, please check the following article:
@v-xida-msft Thanks for the suggestions. Unfortunately, neither option worked.
My app is built around the Learner Details entity, with one screen, housing the data table, using Notes entity as the data source. Without a filter, it pulls through the data no problem, but doesn't show any data when Items is given even a very basic filter or search function.
Notes has one look up field, Learner_ID, which relates to LearnerDetails.PrimaryId.
I have also tried: Filter(Notes,Notes.Learner_ID=BrowseLearnerGallery.Selected.PrimaryId)
And by adding a text box with Text = BrowseLearnerGallery.Selected.PrimaryId, I tried the foloowing filter:
Filter(Notes,Notes.Learner_ID = Value(MyLearnerID.Text))
Neither of these worked either.
Hi. I'm still not having any luck with this issue. Interestingly, I was following some steps in a tutorial recently, using dummy entities that I had set up specifically for that purpose, that involved a filter function on a look up field, and that didn't work either.
The environment is pre-existing the spring cds update, so I'm beginning to wonder if that could be the cause?
I'm in the process of moving everything to a new environment so that I can test that theory...
Check out the News & Announcements to learn more.
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Check out our new Discover Your Career Path blog post series and get all the details.