cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate IV
Advocate IV

"in" operator as test of membership and its delegation

According to the latest clarification in regards to delegation, the "in" operator is delegable for SQL server.

 

Also, according to the operator documentation, the "in" operator can be a test of "Belonging to a collection or a table" and not only a test for substrings within strings.

 

I have failed up to now to make this operator work with SQL server in the following syntax, as not only does it not delegate, but it gives an error as can be seen in the screenshot.

Filter('[Access].[Entities]', ID in [2, 3, 8, 2, 6])

AAA.png

 

This error however, is not given in this trivial case and the operator works as expected:

Filter([1,2,3,4,5,6,7,8,9], Value in [2, 3, 8, 2, 6])

 

Has anyone made the operator work with non-trivial data sources and/or in a delegable way as a test for membership?

 

I am grateful for any insight, since this is needed to join two tables.

 

I think the following may be interested in this question: @AmitLoh-Powerap, @v-micsh-msft, @csm, @AndyPennell, @hpkeong, @mr-dang

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

Re: "Newline" in text box? Is there an escape sequence or special CHAR?

"First line" & Char(10) & "Second line"
Microsoft Employee
@8bitclassroom

View solution in original post

2 REPLIES 2
Highlighted
Community Champion
Community Champion

Re: "Newline" in text box? Is there an escape sequence or special CHAR?

"First line" & Char(10) & "Second line"
Microsoft Employee
@8bitclassroom

View solution in original post

Highlighted
Microsoft
Microsoft

Re: "Newline" in text box? Is there an escape sequence or special CHAR?

When you are typing your rule, you can also use CTRL + ENTER to directly insert a new line. This can also be helpful for organizing a more complex rule.

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (5,337)