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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Get distinct values fr...
Power Apps
Unanswered

Get distinct values from multi-select combobox Sharepint field

(0) ShareShare
ReportReport
Posted on by 78

Hi,
I have a multi-select combo-box that saves into a column from a Sharepoint list record delimited by comma (This is for visitor management).

Possible entries for the column "Location" are e.g.

  • Location 1,
  • Location 1, Location 3, Location 5,
  • Location 3, Location 6

 

On a different screen I would now like to have a combo-box with items = the distinct items present in the column "Location", i.e.

  • Location 1,
  • Location 3,
  • Location 5,
  • Location 6,

I tried DISTINCT, but that gets me the "original" entries as each entry is distinctly different, which is what I would expect.
I tried to work with Split and Concat but get into issues with Record vs Text vs Table. How can I take all te entries, split them up into their components and then run a distinct over them?

Any help is appreciated.

Categories:
I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,674 Super User 2024 Season 1 on at

    @Florida712 -

     

    If the Location field is a multi-select choice column, try:

     

    Distinct(
     ForAll(
     Ungroup(
     ForAll(
     'Your SharePoint List',
     Split(
     Concat(
     Location,
     Value,
     "," //replace with your delimiter
     ),
     "," //replace with your delimiter
     )
     ),
     "Value"
     ),
     Trim(Value)
     ),
     Value
    )

     

    If the Location field is a Single Line Text column (with "," as the delimiter), try:

     

    Distinct(
     ForAll(
     Ungroup(
     ForAll(
     'Your SharePoint List',
     Split(
     Location,
     "," //replace with your delimiter
     )
     ),
     "Value"
     ),
     Trim(Value)
     ),
     Value
    )
    

     

  • Florida712 Profile Picture
    78 on at

    Thank you @Amik , this worked like a charm. I had not used Ungroup before.  

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard