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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,247)