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 / Filtering a dataverse ...
Power Apps
Unanswered

Filtering a dataverse table using two distinct conditions

(0) ShareShare
ReportReport
Posted on by 37

This is my first time using Dataverse on Power App, I have a gallery that is displaying an item from a collection, i want to  clear the collection and Update the record from the database by filtering the record based on two conditions (i.e I only want to display the record that meets two conditions).

 

I wrote the code this way but its not pulling out any of the records:

 

Clear(tempdata); Reset(gallerypositionsdefault);

   Collect(

        tempdata,

        Filter('Position Holders',erms_rou_id=Value(txtregunitid.Text) && erms_eid = Value(TextInput3_6.Text)-1 ));

UpdateContext({varShowPopup:false});

 

I would appreciate guidance from anyone. Thanks

I have the same question (0)
  • codevenkat Profile Picture
    126 on at

    Hi @Advok8 ,

    See this video it helps https://www.youtube.com/watch?v=Cu8pDo6WpRI

    If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

  • Verified answer
    Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hello @Advok8,

     

    You are very near to it.

     

    Try making this small change to make it work. Let me know if you need have any quereis.

     

    ClearCollect(tempdata,Filter('Position Holders',And(erms_rou_id=Value(txtregunitid.Text), erms_eid = Value(TextInput3_6.Text)-1)));

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard