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

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,732 Super User 2026 Season 1 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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard