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 / ComboBox Default Selec...
Power Apps
Answered

ComboBox Default Selected Items

(0) ShareShare
ReportReport
Posted on by 8

Hello,

 

I'm encounter an issue with how to set default selected items in ComboBox.

 

My app is embedded in PBI, load record from PBI and allows user to update records which stored in a SharePoint List. I have a ComboBox which linked with a Single line of text field. I set the 'DefaultSelectedItems' property as Filter('Tier Board Action Plans - all text columns', ID = Gallery1.Selected.ID).Branch   I can actually see the data I want but it doesn't show in the ComboBox.

 

kanda_0-1681353471145.png

 

Any help would be greatly appreciated.

 

Thank you in advance!

 

Categories:
  • kanda Profile Picture
    8 on at

    I solved this problem, change the 'DefaultSelectedItems' property to:

    ForAll(Filter('Tier Board Action Plans - all text columns', ID = Gallery1.Selected.ID), {Result: ThisRecord.Branch})

     

    btw, the Item property is:

    Sort(ForAll(Distinct(Filter('Tier Level Mapping', 'Super Branch' = Dropdown7.Selected.Result),'BU Name'), {Result: ThisRecord.Value}),Result)

     

    However, even though I solved this issue, I don't understand why I have to use ForAll and {Result: ThisRecord.Branch}. Could anyone help me to understand what happened inside?

     

    kanda_0-1681355057573.png

     

     

    Thank you!

  • Verified answer
    WarrenBelz Profile Picture
    156,570 Most Valuable Professional on at

    Hi @kanda ,

    You did not include the Items of the ComboBox, but I suspect they are from a list field - whatever ComboBoxName.Selected

    {
     Branch: 
     Filter(
     'Tier Board Action Plans - all text columns', 
     ID = Gallery1.Selected.ID
     ).Branch
    } 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • kanda Profile Picture
    8 on at

    Thank you @WarrenBelz 

    Since I use 'Result' in the Item property, so changed your code to

    {
     Result: 
     Filter(
     'Tier Board Action Plans - all text columns', 
     ID = Gallery1.Selected.ID
     ).Branch
    } 

     It works perfect!

    Thanks again!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard