Hi all,
I'm i'm a few months into my PowerApps knowledge adventure, and I continue to struggle with one concept - how to determine the order of functions.
For example, right now I have a gallery with items:
SortByColumns(
GroupBy(
Filter(
Captains,
Country=CountrySelected),
"State","States"),
"State",Ascending)
My datasource is a list of people with their respective city, state, and country. I have a gallery that's showing the countries, which takes you to a gallery that shows the states/provinces in that country, that takes you to a gallery with the cities in that state/provice, and finally a gallery with the people located there.
I have a TextBoxSearch3.Text I want to add to the above which is the gallery that shows all of the states. How do I decide where to put it - before/after my GroupBy, before/after my Filter, and i'm pretty positive it doesn't go before, but what about after SortByColumns? I think I understand the general idea that it's in the order you want things to happen. The search box doesn't really depend on the groupby, but it does need to only search the data after what has been filtered. I feel like i'm answering my own question - work from the inside out in order of events, but are there any times where the ordering doesn't really matter also?
Thx in advance!