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 III
Super User III

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 III
Helper III

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,293)