web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using "in" operator in...
Power Apps
Answered

Using "in" operator in Filter function for binding drop down based on two tables

(0) ShareShare
ReportReport
Posted on by 18

Hi Team,

 

I am using Azuer SQL server and power apps. 

 

I am binding a dropdown with below formula for showing Account Name based on two tables where account table contain accountid, accountname and accountaccess table contain accountid and userid:

 

Filter('[dbo].[Account]', AccountID in Filter('[dbo].[AccountAccess]', UserID = LoggedUser).AccountID)

 

Currently both tables contain few records so its binding correctly but when it will crossed beyond 500-2000(limitation of delegable) then it will not bind all data waht i read on delegable function for below messege on blue line of "in" operator.

   "Part of this formula cannot be evaluated remotely. right side of "in" operator is not a column name"

 

So can any one suggest how it will resolve the issue if tables contain 50,000 records or more.

 

Thanksa and Regards,

Reyaz

 

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,415 Super User 2025 Season 2 on at

    Hi Reyaz

     

    To overcome the delegation problem, I would recoomend that you create a view in SQL Server. You can then bind your dropdown to this view to overcome the delegation limit.

    The view would look something like this...

     

    CREATE VIEW [dbo].[AccountAccessView]
    AS
    SELECT Distinct ac.AccountName, aa.AccountID, aa.UserID
    FROM
    [dbo].[Account] ac
    JOIN
    [dbo].[AccountAccess] aa
    ON ac.AccountID = aa.AccountID


    The formula that you would use for your dropdown should hopefully avoid the delegation problem.

    Filter([dbo].[AccountAccessView] , UserID=LoggedUser)

     

     

     

  • ereyaz Profile Picture
    18 on at

    Thank you so much for the quick solution.

     

     

     

    Thanks and Regards,

    Reyaz

  • timl Profile Picture
    36,415 Super User 2025 Season 2 on at

    Sure, you're welcome!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard