web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Modern dropdown distin...
Power Apps
Answered

Modern dropdown distinct functionality issue in powerapps

(0) ShareShare
ReportReport
Posted on by 14

Hi,

I have used a MODERN edit form and I have a City column in my SharePoint which have duplicates values that I pull into my form, initially the City is a text field, and I wanted a dropdown, so I imported a modern dropdown in City DataCard. The formula I used to display values is 

SharepointList.City  
and this displays the values in my column but also the duplicates so i tried using the distinct functionality but that didnt work, then i used Choices
Choices([@'SharepointList.'City') 
this doesnt throw the error but the values displayed are empty, i made sure that the field value has city column, still doesnt work
So can you please help me with this? Let me know if you need more inputs

Thanks.
 
Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @EvanAffleck,

    Your City column is a single-line-of-text type, the Choices() function does not apply to a non-Choice column.

     

    For a modern dropdown control, to display diplicated cities, you need to set the Items property as:

    Distinct(SharepointList,City)

     

    A tip for your reference, modern controls are unstable, if it is not necessary for your scenario, I strongly suggest use the Classic instead.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard