Overview
For useful scenarios to help build Power Apps refer to my blog,
Let’s say you have a table of records where you have most of your columns as a single line of text. Now, while developing the application you come across filtering this table of records with these single line of text values which are unique in their own way.
For example, the below-listed columns are a single line of text in a SharePoint list,
- Column1 - City
- Column2 - Country
- Column3 - Continent
And you have records as below,

In Power Apps, let’s add a gallery control and connect its data source to the above SharePoint list and add a dropdown control with the following formula as shown below,

For Country ComboBox - Items property add,
- Distinct(SharePointList,Country).Result
For Gallery control - Items property add,
- SortByColumns(
- Filter(
- SharePointList,
- (IsBlank(ComboBox.Selected.Result) || (IsEmpty(ComboBox.Selected.Result) || (Country = ComboBox.Selected.Result)))
- ),
- “ID”,
- Ascending
- )
Output


Warren McCoyPosted Jul 29, 2022, 11:01 PM
So many fools in Power Apps posting crap code!
Warren McCoyPosted Jul 29, 2022, 11:01 PM
This was great, I was seeing .Result and nothing , but when I used your code it all works...
Warren McCoyPosted Jul 29, 2022, 11:00 PM
THANK YOU! SO many people have code that is so WRONG posted!