cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pablik01
Helper III
Helper III

Two formulas in items

Hello, I need help because I'm going crazy in a moment, I'm trying to learn powerapps, but as soon as I solve one problem, three more appear. I have a gallery that lists the assortment for me, the table is filtered thanks to a formula that narrows the list view down to a category

 

If(filtr.Selected.Result = "Pokazuj wszystko";asortyment;Filter(asortyment;Grupa=filtr.Selected.Result))

I'd also like the list to be searched by the user using searchbox, and here's the code:

Filter(asortyment;StartsWith('Nazwa asortymentu';TextInput5.Text))

 

I've been struggling with it for an hour, I searched google but nothing works. PLEASE HELP!

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

With({asmt:Filter(
                    asortyment;StartsWith(
                                          'Nazwa asortymentu';TextInput5.Text
                                )
            )
       };
    If(
       filtr.Selected.Result = "Pokazuj wszystko"; asmt;
                                Filter(
                                       asmt;Grupa=filtr.Selected.Result
                                 )
  )
)

View solution in original post

4 REPLIES 4
Drrickryp
Super User
Super User

With({asmt:Filter(
                    asortyment;StartsWith(
                                          'Nazwa asortymentu';TextInput5.Text
                                )
            )
       };
    If(
       filtr.Selected.Result = "Pokazuj wszystko"; asmt;
                                Filter(
                                       asmt;Grupa=filtr.Selected.Result
                                 )
  )
)
pablik01
Helper III
Helper III

THANK YOU!!!

pablik01
Helper III
Helper III

will it be possible to make look in the whole text not only after the first word

pablik01
Helper III
Helper III

ok the last question in this topic. At the moment I have a search but after the first word, how to force a search when, for example, a key word is in the middle

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,732)