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 Split function not working

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

In the Edit Screen I have a form having a combobox.

My need is that 2 values(UserName1, UserName2) must be default selected.

Default User Names are set on Edit Screen On Visible property.

 

 

Set(DefaultUserNames, "Ankit,Dinesh")

 

 

Combobox: code in Default Selected Items:

 

 

Split(DefaultUserNames, ",")

 

 

The above code didn't  worked, So I tried another following code:

 

 

ShowColumns(Split(DefaultUserNames, ","), "Result")

 

 

Above code also didn't worked.

 

Need help 🙏🙏🙏

Categories:
I have the same question (0)
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    Let's the Items property of your Combo Box is a collection called Names.

    You will get your desired outcome if you set the DefaultSelectedItems property to be:

    Filter(Names, Value in Split(DefaultUserNames, ","))

    Let me know if this helps. If you tell me the Items property of your combo box, I can give you the exact formula you would need.

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    https://thepoweraddict.com
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I found solution 

    I have set defaultselecteditems to

    RenameColumns(Split(DefaultUserNames,","), "Result", "Value")

    And now it is working ok. 

  • eka24 Profile Picture
    20,925 on at

    Then mark your answer as a solution

     

     

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard