I've the following query:
WHERE id NOT IN (SELECT id_A FROM A_B)
OR id IN (SELECT id_A FROM A_B WHERE c = 2)
id_A is a foreign key from A imported in A_B.
What's the equivalent for IN and NOT in operator for powerapp? Many thanks in advance.
Go to Solution.
Hi @Jumpa ,
Do you want to achieve your search query using PowerApps formula as your SQL syntax?
Based on the needs that you mentioned, I have made a test on my side. Please consider take a try with the following workaround:
Add a Gallery within your app, set the Items property to following:
Not(id in '[dbo].[A_B]'.id_A) || id in Filter('[dbo].[A_B]', c=2).id_A
Note: The IN operator in SQL Server is equivalent to in operator, the NOT IN operator is equivalent to Not(.. in ...) formula as above.
More details about the operators supported in PowerApps, please check the following article:
More details about the Filter function, please check the following article:
View solution in original post
Check out the on demand sessions that are available now!
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Features releasing from October 2020 through March 2021