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 / How to make a STRICT s...
Power Apps
Unanswered

How to make a STRICT search on a gallery ?

(0) ShareShare
ReportReport
Posted on by

Hi everyone, I woud to display uniquely the items who have Reference = "oui" = 'DataCardValue4'

This is my formula : 

ProtoSup_1-1689859995160.png


This is my gallery, here we can see my results and I won't want to see 'Ouistifouette' and 'Ouistiti' , I just want to see the items where there reference = 'DataCardValue4'

ProtoSup_0-1689859782361.png

Thanks in advance 🙏

Categories:
I have the same question (0)
  • madlad Profile Picture
    2,637 Moderator on at

    Hi! For this you'll likely want to just use a filter statement, something similar to:

    Filter(
     Logs;
     DataCardValue4.Text = Reference;
    )

     

    Hope this helps!

  • ProtoSup Profile Picture
    on at

    @madlad 

    Thank you for your answer but my gallery is empty when I put your formula, have another idea ? 

    🙏

  • Verified answer
    madlad Profile Picture
    2,637 Moderator on at

    Do you want the gallery to be full when nothing's typed in the search?

     

    Maybe try something like:

    If(
     IsBlank(DataCardValue4.Text),
     Logs,
     Filter(
     Logs;
     Upper(Trim(DataCardValue4.Text)) = Upper(Trim(Reference));
     )

    This checks if the user is searching, and if they are, then it filters. I also added Upper() and Trim() to make the values being compared consistent. You can remove these if you don't want them.

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