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
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (2,390)