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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Is not in array

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I now know you can check if something is in an array or collection by using If(item in otherItem, true) but is there a way to do the opposite like If(item notIn otherItem, true)?
Or even better how would i check if collection items are not it Gallery Items or item array

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    You use Not for the Opposite

    Example:

    Filter(Table1,Not(ColumName in Table2.ColumnName))

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • JayMagness Profile Picture
    1,663 on at

    Hi,

     

    You are on the correct path need to say something like if it is not equal to that.

     

    Remember this is all formulas like Excel Formulas. 

     

    If you want we can get on a teams session just email me at Jay@research-nest.com

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Almost
    I have two variables ItemsArrayA, ["itemOne","itemTwo","ItemThree","ItemFour"] and ItemArrayB, ["itemOne","itemTwo"] and i want to return that ItemThreee and ItemFour are missing to ItemArrayC, ["ItemThreee ","ItemFour "].

    Maybe like something kinda like this idk.

     

     

    Set(ItemArrayC,If(ItemArrayB.value notin ItemArrayA,ItemArrayB.value))

     

     

    or instead of Set use Collect

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    or how about something more like this???

     

    Concat(ItemArrayB,If(Value NotIn ItemArrayA, Collect(ItemArrayC,Value)))

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

     

    This doesn't work either

    Concat(ItemArrayA - ItemArrayB,Value)

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I tried

    Collect(ItemArrayC, Filter(ItemArrayA,Not(ItemArrayB in ItemArrayA)))

    I doesn't work  

  • Verified answer
    eka24 Profile Picture
    20,923 on at

     

    Have tested the following

    Assuming the variables are:

    Set(temsArrayA,["itemOne","itemTwo","ItemThree","ItemFour"]);
    Set(temsArrayB,["itemOne","itemTwo"])
     
    Filter as:
    Filter(temsArrayA,Not(Value in temsArrayB.Value))
     
    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Almost got it with this

    Collect(ItemArrayC,If(Concat(ItemArrayB,Value) in ItemArrayB,Concat(ItemArrayB,Value&"
    ")))
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    yep, that did it, thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 84

#2
WarrenBelz Profile Picture

WarrenBelz 79 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 40 Super User 2026 Season 1

Last 30 days Overall leaderboard