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 / Sharepoint list (only ...
Power Apps
Answered

Sharepoint list (only used) choices as combobox items

(0) ShareShare
ReportReport
Posted on by 12

Hi guys,

 

So I have a choice column in Sharepoint with a bunch of choices, not all of which are occurring in the data. I'd like to have a combobox in my canvas app, where the choices that appear in the data would be the items. What should the "items" attribute of the combobox look like?

 

O

Categories:
  • vaubeee Profile Picture
    533 on at

    Hi @ossidabossi 

    Try

    Distinct( NameOfListWithData, NameOfColumnWithChoices )

     

    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • ossidabossi Profile Picture
    12 on at

    Hi @VauBee ,

     

    Thanks for the response. I tried this also earlier but the combobox is not showing any data (screenshot below, you see that the values are somehow tables?). Also I cant edit the "Fields" on the right, the primary text data seems to be disabled.

     

     

    ossidabossi_0-1694698788900.png

     

  • vaubeee Profile Picture
    533 on at

    Hi @ossidabossi 

    it works with colums of datatype Choice, if "Selecting multiple choices allowed" is unchecked.

    What datatype is column Ruokalaji and is the option active? 

     

    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • vaubeee Profile Picture
    533 on at

    @ossidabossi 

     

    Distinct('Louna...', Concat(RuokalajiValue", "))

     

    Let's see what you get 😉

     

    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • ossidabossi Profile Picture
    12 on at

    Hi again,

     

    So yea, the column is of choice type but I'd need to keep the "Selecting multiple choices allowed" ticked..

     

    The concat() attempt gives me a list of choices with choices of different rows, like this: 

     

    What I'm trying to get is that the filter would show single values of the choices used in the column (which would then filter the rows where this choice occurs).

     

    ossidabossi_0-1694762390977.png 

    ossidabossi_1-1694762465817.png

     

     

     

     

  • Verified answer
    vaubeee Profile Picture
    533 on at

    Hi @ossidabossi!

    That's the expected outcome . It`s the selected choice(s) for each row. It corresponds with what you see in your Sharepoint list. To narrow it further down, and get all individual choices to use as source for a dropdown, try this onStart of App or onVisbile of Screen:

    ClearCollect(
     colChoices,
     {
     Choice: Distinct(
     'Louna...',
     Concat(
     Ruokalaji,
     Value,
     ", "
     )
     )
     }.Choice
    );
    Set(
     varChoices,
     Concat(
     colChoices,
     Value,
     ","
     )
    );
    Set(
     tblChoices,
     Distinct(
     Split(
     varChoices,
     ","
     ),Value)
    )


     Then use tblChoices as datasource for the actual choices made. Hope, this is it 🤞

     

    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

     

     

     

     

  • ossidabossi Profile Picture
    12 on at

    Awesome, that works! Thanks a bunch ❤️

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 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard