cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SharePointDev12
Helper I
Helper I

SharePoint Lookup field, Distinct values on powerapp form

I have SharePoint lookup field with duplicate values, on the powerappform how to remove the duplicate values... Distinct function not working

1 ACCEPTED SOLUTION

Accepted Solutions

@colbyc ,

Something like

Distinct(
   Filter(
      List,
      MatchingColumn=FirstDropDown.Selected.Result      
   ),
  ColumnName
).Result

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

7 REPLIES 7
eka24
Super User
Super User

Try

Distinct (List,ColumnName.Value)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

Distinct is not working binding empty values

@SharePointDev12 ,

Distinct(
   Filter(
      List,
      !IsBlank(ColumnName)
   ).ColumnName,
  ColumnName
)

Hi @SharePointDev12 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

colbyc
Helper IV
Helper IV

Hey @WarrenBelz kind of an extension of above question - once the user selects the column1 distinct value, if I wanted to add a second lookup column2 that pulls distinct values from lookup table where column1 matches, how would I do that?

@colbyc ,

Something like

Distinct(
   Filter(
      List,
      MatchingColumn=FirstDropDown.Selected.Result      
   ),
  ColumnName
).Result

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

@WarrenBelz you are a savant! thanks!

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

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

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (1,782)