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 / Filter only dosnt not ...
Power Apps
Unanswered

Filter only dosnt not equal value in Dropdown with collection

(1) ShareShare
ReportReport
Posted on by 255
Hi All,
i need to filter data in Assign <> "Assigned"
i used this code but showing error - 
"ClearCollect(colGridData,Tracker,Filter(Tracker, Assign <> "Assigned")"
 
Categories:
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    Looks like you forgot to close the ClearCollect bracket at the end.
    Try using this:
    ClearCollect(colGridData,Tracker,Filter(Tracker, Assign <> "Assigned"))
    If this doesn't work, can you tell me what type of column Assign is?
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!

     
  • Jawaharprem Profile Picture
    255 on at
    Hi Nandit,
     
    its not working and the Assign is choice column..
     
     
    Thanks
    Jawahar Prem
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at
    That is a Delegation warning, not an error - the Not operator (you are using <>) is not Delegable
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    You can use the following to defeat delegation:
    
    ClearCollect(colGridData,Tracker,
    Filter(
        AddColumns(
            Tracker As Data,
            Validation,
            If(
                "Assigned" in Concat(
                    Data.Assign,
                    Value,
                    ","
                ),
                "0",
                "1"
            )
        ),
        "1" in Validation
    ))
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at
    Unfortunately AddColumns is "local" function and the amount of records it can address it limited to your Data Row Limit, so all it does is "mask" the issue. If you want a Delegable filter, then you need to list out all the possible values other than Assigned
    ClearCollect(
       colGridData,Tracker,
       Filter(
          Tracker, 
      Assign = "Not Assigned" || Assign = Blank() ) )
     
  • Jawaharprem Profile Picture
    255 on at
    Hi WarenBelz,
    Thanks for your time provided code is getting some error as mentioned below
     
    ClearCollect(
       colGridData,Tracker,
       Filter(
            Validation,
            Assign = "Not Assigned" || Assign = "blank"
       )
    )
     
    the function "Filter" has some invalid arguments
    name isn't valid, 'Validation, isn;t recozized
    name isn't valid, 'Assign' isn;t recozized
     
     
  • Jawaharprem Profile Picture
    255 on at
    Hi Nandit,
     
    thanks for your time, provided code is getting on concat as mentioned..
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at
    Please see updated code
  • Jawaharprem Profile Picture
    255 on at
    Hi All,
     
    this code without any delegation warnings..
     
    ClearCollect(colGridData, Filter(CMD_NA_Tracker,Or(Assign.Value="Not Assigned", Assign.value="blank")))
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at
    Is "blank"one of the options ? If you are looking for a blank field, you need Blank(). Other than that
    ClearCollect(
       colGridData, 
       Filter(
          CMD_NA_Tracker,
          Or(
             Assign.Value = "Not Assigned", 
             Assign.Value = "blank"
          )
       )
    )
    is the same as I posted (|| means Or) except you now have a different list name. It is certainly Delegable, but bear in mind that the number of records you can collect after the filter is still limited to your Data Row Limit.

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard