cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EntsuP
Level: Powered On

Re: "in" operator as test of membership and its delegation

I am connected to azure SQL instance and it is NOT working. Well I have still under 500 rows, so I get just a warning.
James_Hellfeier
Level: Powered On

Re: "in" operator as test of membership and its delegation

Just ran into this issue myself, trying to Collect from a SQL Server using a Collection to Filter :

 

Collect ( Collection1 , Filter ( [dbo] , ID in Collection2.ID ))

 

Still getting the non-delegable flag and Powerapps telling me my 1-column (Collection2.ID) is not in fact a 1 column table ... And the documentation still says that "in" is delegable with SQL.

jodub
Level: Powered On

Re: "in" operator as test of membership and its delegation

Is this still an issue?

Super User
Super User

Re: "in" operator as test of membership and its delegation

Hi everyone.

 

Yes unfortunately this has always been an issue, PowerApps doesn't delegate the 'in' operator to SQL. This has forced us to use a SQL Query from Flow for Azure SQL, and a Stored Proc from Flow for SQL on premises. Flow does 'n great job to retrieve the data, but it would be a glorious day when PowerApps finally delegates the 'in' operator.

EntsuP
Level: Powered On

Re: "in" operator as test of membership and its delegation

Please try if it helps to use nvarchar type columns. In my tests the IN delegation is working , if the column in your SQL DB is nvarchar. On my case i added extra computed column to database just for this. Or then make a view if it suits your needs.

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,041)