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

Community site session details

Session Id : 2hCiSrRl2U3H/RvWPU0NBo
Power Apps - Building Power Apps
Answered

Get distinct values from multi-select combobox Sharepint field

Like (0) ShareShare
ReportReport
Posted on 24 Feb 2024 23:15:59 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.

  • Florida712 Profile Picture
    78 on 27 Feb 2024 at 19:16:47
    Re: Get distinct values from multi-select combobox Sharepint field

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

  • Verified answer
    Ami K Profile Picture
    15,665 Super User 2024 Season 1 on 24 Feb 2024 at 23:25:29
    Re: Get distinct values from multi-select combobox Sharepint field

    @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
    )
    

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete