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 Platform Community / Forums / Power Apps / Dataverse - Error in F...
Power Apps
Suggested Answer

Dataverse - Error in Filtering Criteria

(0) ShareShare
ReportReport
Posted on by 263
Hi Team,
 
need to filter only users name in 'Assigen to' and only Assigned list to show and search option by request id, i worked on some formula but getting errors..
 
 
 
ClearCollect(
    colProcessData,
    Filter(
        'Assigen to',
        Assign_To_Person.Value = "Assigned" &&
        User().FullName = Value &&
        (
            !IsBlank(searchrequestid2.Text) && StartsWith(Request_ID, searchrequestid2.Text) ||
            IsBlank(searchrequestid2.Text) && Request_ID <> ""
        )
    )
)
 
Thanks
Jawahar
Categories:
I have the same question (0)
  • LarsDePauw Profile Picture
    7 on at
    (something went wrong when submitting my post so it might show double)
     
     
    1. It is better to put the column you want to check to the leftside, so 'Value = User().FullName' instead of 'User().FullName = Value'.
    2. I optimized your searchrequestid check
    3. You first check on the value of the column 'Assign_To_Person', which means your datasource has objects, which have at least the column 'Assign_To_Person', which also are objects, which have a Value property, but after that, you check if the Value of your datasource objects is the same as the name of the logged in user, which means your datasource are only strings. Did you mean to check something like 'Assigned_Person'.Value = User().FullName' ?
     
    What is the your datastructure?
     
     
    ClearCollect(
        colProcessData,
        Filter(
            'Assigen to',
            Assign_To_Person.Value = "Assigned"
            &&
            Value = User().FullName
            &&
            If(IsBlank(searchrequestid2.Text), Request_ID <> "", StartsWith(Request_ID, searchrequestid2.Text)
            )
        )
     
    )
     
     
  • Jawaharprem Profile Picture
    263 on at
    Hi,
     
    Thanks for your time, the below mentioned codes ok without error but data is not shown, 
     
    Code1
    ClearCollect(colProcessData,Filter(CMD_NA_Trackers,
    Text(Assign_To_Person)="Assigned" && User().FullName && 
    ( !IsBlank(searchrequestid2.Text) && StartsWith(Request_ID,searchrequestid2.Text)
    || IsBlank(searchrequestid2.Text) && Request_ID <>"")))
    
    Code2
    ClearCollect(colProcessData, Filter(CMD_NA_Trackers,
    Text(Assign_To_Person) = "Assigned" && (!IsBlank(User().FullName) &&
    Text(Assign_To_Person) = User().FullName) && ((!IsBlank(searchrequestid2.Text)
    && StartsWith(Request_ID, searchrequestid2.Text)) || 
    (IsBlank(searchrequestid2.Text) && Request_ID <> ""))))
     
     
     
    Thanks
  • Suggested answer
    Jawaharprem Profile Picture
    263 on at
    Hi,
    for filter only for name or id for dataverse, go to gallary select items and use this code its working.
     

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
WarrenBelz Profile Picture

WarrenBelz 509 Most Valuable Professional

#2
Haque Profile Picture

Haque 302

#3
11manish Profile Picture

11manish 265

Last 30 days Overall leaderboard