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 / Display all values fro...
Power Apps
Suggested Answer

Display all values from a SharePoint multiple choice column in a combobox

(1) ShareShare
ReportReport
Posted on by 2

dI have a choice column in SharePoint which allows multiple values from a separate lookup. When linking this to a PowerApp, is there a way to store all the values into a collection, so that when I create a Combobox dropdown, it only displays the items that are present in the list.

For example, the below selections are from a list of all UK cities

ID Name
1 London, Birmingham
2 Manchester
3 Manchester, Leeds, Blackpool
4 London, Leeds
5 Birmingham

Can I have a dropdown in PowerApps that only includes the distinct values from the 5 records above?

ClearCollect(colCities,IncidentLog.Cities)

Collect( colCities, ForAll(IncidentLog, { CityNames: Cities } ) )

Do I need to loop through all the records? I've tried

Clear(colCities);ForAll(IncidentLog.Cities, Collect(colCities, [ThisRecord.Cities.Value]))

I've tried using the following formula:

Distinct(IncidentLog,Cities .Value) 

But it combines the values for each record

 

Categories:
  • Suggested answer
    madlad Profile Picture
    2,637 Moderator on at
    Hi!
     
    I believe here you could use the ungroup function to separate these into individual cities.
    Something along the lines of:
    ClearCollect(
      colCities,
      Distinct(
        Ungroup(
          IncidentLog,
          Cities
        ),
        Value
      )
    )  
     
    ^This separates the city names, then gets the distinct ones
     
    Hope this helps! :)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard