Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Filter by Combobox and SearchBox

Posted on by 372

Hi, 

 

I want to filter my galery based on 'planner combobox' or 'customer combobox' or 'id textinput'. I dont know how to write the formula. 

firda59_0-1690530701163.png

 I used this formula in my combobox:

Filter(
ProductID,
(StartsWith(
'SSB ID ',
SearchSSBID.Text
) || StartsWith('PLANNER ENGINEER',
Planner_1.Selected.Value
)) && 'Dearest Customer' in Customer_Pilihan_1.Selected.Value
)

 

Can anyone help me? Thank you.

  • Ami K Profile Picture
    Ami K 15,656 on at
    Re: Filter by Combobox and SearchBox

    Hi @firda59 ,

     

    You have not provided detail of your data source or what the field types are.

     

    If I assumed 'SSB ID ', 'PLANNER ENGINEER' and 'Dearest Customer' are Single Line Text columns, you can use:

     

    Filter(
     ProductID,
     Len(SearchSSBID.Text) = 0 || StartsWith(
     SearchSSBID.Text,
     'Single line text column'
     ),
     Len(Planner_1.Selected.Value) = 0 || StartsWith(
     Planner_1.Selected.Value,
     'Record Team'
     ),
     CountRows(Customer_Pilihan_1.SelectedItems.Value) = 0 || IsBlank(Customer_Pilihan_1.SelectedItems.Value) || 'Record Priority' in Customer_Pilihan_1.SelectedItems.Value
    )

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,532

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,050

Leaderboard