cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
colbyc
Helper III
Helper III

Distinct dropdown

I have a Sharepoint column (B) in a list (List2) referencing another column (A) in another list (List1). In List2 column B, I need it to show every distinct value of column A via dropdown menu for users to select from. So far using the distinct function I have just gotten errors.

12 REPLIES 12

@mdevaney 

 

It was a lookup field, but you asked me to change to a single line of text

@mdevaney 

Here are some screenshots

 

This is the original lookup field that is successfully pulling fields from the first list based on the value of the "Requested Permission Group" but it is not returning distinct values. 

colbyc_0-1600095628597.png

 

Here's the new field that you asked me to build, it is a choice field. Have yet to input the actual field names.

colbyc_1-1600095819541.png

 

 

@colbyc 
I believe I was just missing the .Result in my previous code.  This will work if Column A is a single-line text type (not a Choices type).

Distinct('List 1', 'Column A').Result

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (57,554)