Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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 🙏

  • Verified answer
    madlad Profile Picture
    2,637 Super User 2025 Season 1 on at
    Re: How to make a STRICT search on a gallery ?

    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.

  • ProtoSup Profile Picture
    on at
    Re: How to make a STRICT search on a gallery ?

    @madlad 

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

    🙏

  • madlad Profile Picture
    2,637 Super User 2025 Season 1 on at
    Re: How to make a STRICT search on a gallery ?

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

    Filter(
     Logs;
     DataCardValue4.Text = Reference;
    )

     

    Hope this helps!

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 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard