Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
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

Categories:
  • Verified answer
    Ram Prakash Profile Picture
    5,166 Super User 2025 Season 1 on at
    Re: Filtering a dataverse table using two distinct conditions

    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

  • codevenkat Profile Picture
    126 on at
    Re: Filtering a dataverse table using two distinct conditions

    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.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

Overall leaderboard

Featured topics