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 / Searching Yes/No type ...
Power Apps
Answered

Searching Yes/No type columns in Power apps

(0) ShareShare
ReportReport
Posted on by 40

i have Created a Power App form and have the Search Text box, when i am search on text box as true/false . it is giving the result propertly. i am using the formula as below.

Filter('ListName',TextInputSearch.Text in Active)

here Active is the Yes/No type column in SharePoint list,but i need to searh as Yes/No in Search box. could you please suggest me

Categories:
I have the same question (0)
  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @satya,

     

    There are workarounds to deal with this situation. 

    Depends on the requirement for the TestInputSearch Box,

    If it is required, then we could build a local collection to hold the Yes/No to True/False mapping, then add a Label control to show the true or false.

    Steps should be:

    1. Under the OnVisible property of the first screen, enter the following to generate the local collection:

    ClearCollect(YesMap,
    Table({YesField:"Yes",TrueField:"true"},
    {YesField:"No",TrueField:"False"})
    )

    2. Add a label control (Label1),  within the Text property of the Label control, enter the following:

    LookUp(YesMap,YesField=TextInput1.Text,TrueField)

    3. After testing with the TestInputSearch.Text, and confirms that the true or false works, then switch the Visible property of the Label control from true to false.

    4. Under the Gallery items property, switch the formula to:

    Filter('ListName',Label1.Text in Active)

    If the Search Box is not required, then please replace it with a Dropdown control, with items set to:

    Table({YesField:"Yes",TrueField:"true"},
    {YesField:"No",TrueField:"False"})

    Then under the Items property of the gallery control, switch the formula as below:

    Filter('ListName', Dropdown1.Selected.TrueField in Active)

    Let me know if you have any further concern on this issue.

    Regards,

    Michael

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard