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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard