Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Gallery Row Duplication

I have a Gallery on a collection with a working search str that limits the results in based on StartsWith function.


My problem is that the column I am searching on is distinct (lets say list of ZIP Codes), but once it matches to a record, the whole Gallery display is just a list of the same row repeatedly


so if you search for 90210 the data table returns 12 rows with 90210..

Not applicable

Can you post the exact code you use to limit the results with StartsWith?

Community Support
Community Support

Hi @rhalabicki,


I guess that you are using Distinct inside the Filter function, that's the reason why it returns multiple duplicated record. You should use Filter inside the Distinct functions. But notice that Distinct returns a one-column table that contains the results, with duplicate values removed. That means that in Distinct(Filter(Table,formula),ColumnName) only "ColumnName" column would return. 


I just create the below collection:


And this formula works:

Distinct(Filter(C, StartsWith(Name,TextInput1.Text)) ,Name)






Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I'm confused though, the gallery data is distinct on its own.



Adding distinct breaks the "Items".


Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,424)