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

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Suggested answer

Error in Filter data with using collection in Dataverse

(0) ShareShare
ReportReport
Posted on by 249
Hi Team,
 
 i using filter in collection, in dataverse there is choice column in that users select "Assigned" that "assigned" data should not display in the screen, so i worked with some codes but getting error's in .Value and .Selected pls help on same.
 
error shown in "= & <>"
ClearCollect(colGridData, Filter(CMD_NA_Trackers, Assign_To_Person = Text(assigntoper.Selected.Value <>"Assigned")))
 
Error shown in Text & .Selected.Value
ClearCollect(colGridData, Filter(CMD_NA_Trackers, Text(Assign_To_Person.Selected.Value) <> "Assigned"))
 
Error shown in "<>"
ClearCollect(colGridData, First(CMD_NA_Trackers).Assign_To_Person <> "Assigned")
 
Thanks
Jawahar Prem
 
I have the same question (0)
  • Fardy_MADI_2 Profile Picture
    332 Super User 2024 Season 1 on at
    Error in Filter data with using collection in Dataverse
    Hi, 
     
    If you are using a choice column in Dataverse, you have created the possible options in synchronization (or not) with a global choice as shown in my screenshot below. 
     
    If you selected Yes then it's a global choice, you need to use this formula YourChoiceName.Assigned
    If it's a local choice then use this 'YourColumName (YourTableName)'.Assigned
     
     
  • Jawaharprem Profile Picture
    249 on at
    Error in Filter data with using collection in Dataverse
    Hi Fardy, thanks for your time,
     
    still getting errors
     
    ClearCollect(colGridData, Filter(CMD_NA_Trackers, Assign_To_Person."Assigned"))
     
     
  • Jawaharprem Profile Picture
    249 on at
    Error in Filter data with using collection in Dataverse
    Hi,
     
    "ClearCollect(colGridData, Filter(CMD_NA_Trackers, Text(Assign_To_Person) <> "Assigned"))"
     
    the above code works perfect, but getting some delegation warnings.
     
    Delegation warning. The "Text" part of this formula might not work correctly on large data sets.
    Delegation warning. The "Filter" part of this formula might not work correctly on large data sets.
     
  • Mark Nanneman Profile Picture
    989 Super User 2025 Season 2 on at
    Error in Filter data with using collection in Dataverse
    @Fardy_MADI was saying you need to reference the choices when filtering.  You shouldn't convert it to text or anything like that.
     
    The correct filter would look something like this, where "Assigned_To_Choices" is the name of your choice option set for "Assigned_To_Person"

    Filter
    ('Choice Column Demos', Assigned_To_Person <> Assigned_To_Choices.Assigned)

     
  • Suggested answer
    Inogic Profile Picture
    1,122 Super User 2025 Season 2 on at
    Error in Filter data with using collection in Dataverse
    Hi,
     
    If your Assign_To_Person field in Dataverse is a choice column and stores numerical values (e.g., 1 for "Assigned," 2 for "Not Assigned"), the filter should target these underlying numerical values instead of the displayed text labels.

    ClearCollect(colGridData, Filter(CMD_NA_Trackers, Assign_To_Person.Value <> 1))

    If the numerical value approach doesn’t work, then use below formula

    ClearCollect(colGridData, Filter(CMD_NA_Trackers, Text(Assign_To_Person) <> "Assigned"))

    I hope one of these solutions will address the issue.
     
    Hope this helps.
     
    Thanks!
    Inogic Professional Services: Power Platform/Dynamics 365 CRM
    An expert technical extension for your techno-functional business needs
    Drop an email at crm@inogic.com 
    Service: https://www.inogic.com/services/ 
    Tips and Tricks: https://www.inogic.com/blog/ 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 381 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard

Featured topics