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 / Default Selected Item ...
Power Apps
Answered

Default Selected Item for ComboBox

(0) ShareShare
ReportReport
Posted on by

Hi.  I have a ComboBox with the items formula 'SortByColumns(Distinct('FPC-Purchase Orders'.School,School),"Result")'.  I've read several posts about how to ensure the selected value is the default in edit mode using DefaultSelectedItems.  So, I set the DefaultSelectedItems to Filter(Distinct('FPC-Purchase Orders'.School,School),Result) but it's not keeping the selected item selected when editing the form.  Can someone please correct my formula, please!

 

Thank you for any help you can offer.

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@cmegow,

    Based on the issue that you mentioned, do you want the ComboBox to keep the selected item when in edit mode?

    Could you please share a bit more about the scenario?

    Let me make it easy for you, the DefaultSelectedItems of the ComboBox expects a Table rather than a record or a value.

    I have a test on my side, please take a try as below:

    Set the DefaultSelectedItems property of the ComboBox as below:

     

    [ThisItem.School]

     

    Best Regards,

    Qi

  • cmegow Profile Picture
    on at

    @v-qiaqi-msft Thanks for the suggestion.  I tried changed the DefaultSelectedItem to ThisItem.School and this is the error that I got:

     

    cmegow_0-1602985907464.png

     

    I do wish to have the item that is selected upon creation of the item to be the default item in the combo box when the item is edited.  So far, I have not been able to get the selected item to show up when edited.  Other thoughts?

     

    Thanks again for your help!

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@cmegow,

    Could you please try the formula I provided again?

    The following is my formula that the brackets "[" "]" are necessary. The ComboBox DefaultSelectedItems property needs a Table and the brackets format it to be a Table.

    So please try the "[ThisItme.School]".

    Best Regards,

    Qi

  • cmegow Profile Picture
    on at

    @v-qiaqi-msft Thank you.  the addition of the brackets fixed the context conflict.  Much appreciated.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you. I search forever and you solved it. Thank you.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard