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 Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,492)