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.

View solution in original post

@WarrenBelz you are a savant! thanks!

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,887)