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 / SELECT MULTIPLE VALUES...
Power Apps
Answered

SELECT MULTIPLE VALUES FROM COLLECTION TO COMBO BOX DEFAULT SELECTED ITEMS

(0) ShareShare
ReportReport
Posted on by 195

Hello Everyone, 

Good day! 

I would like to ask on how I can select 2 values from a collection and display in combo box property default selected items. 

 

my code below as an example:

 

If(
 PrimaryServiceInput.Selected.Title = "Payroll" || 
 PrimaryServiceInput.Selected.Title = "Global People Mobility (GPM)" ||
 PrimaryServiceInput.Selected.Title = "Equity Administration", 
 LookUp(
 colServices, 
 Title = "HRIS"
 ), 
 LookUp(
 colServices, 
 Title = "HRSS Go To Market (GTM)"
 )
 )

 

on the code you can see I used LookUp to display HRIS or HRSS go to market. But what I need is to display 2 values under true condition. on the image below i want to see two values.

YamiteKudasai_0-1652340754599.png

 

Thanks in advance guys!

Categories:
I have the same question (0)
  • Verified answer
    therock Profile Picture
    16 on at

    Hi @YamiteKudasai ,

     

    I understand that you want to use the If-Funktion to return two items (HRIS, HRSS) from your collection (colServices). These two items (titles) shall be displayed as default selected items in your combo box.

     

    You would have to change your if-fuction to get this result. 

    The if-funktion does have 3 arguments (Condition, True-Result, False-Result).

    Your function does return "HRIS", when your condition is true and "HRSS" when it is not true. 

     

    To have both values displayed you would have to put those two values in the (True-Result).

     

    I rebuilt your example:

     

    If(
     varTest = true, 
     LookUp(
     colServices, 
     Title = "HRES"
     ), 
     LookUp(
     colServices, 
     Title = "HRSS Go To Market (GTM)"
     )
     )

    therock_0-1652343049435.png

    With the following formula

    If(
     varTest = true,
     Filter(
     colServices,
     Title = "HRES" || Title = "HRSS Go To Market (GTM)"
     )
    )

    you get

    therock_1-1652343183183.png

    You need to use the "filter" function, als "lookup" does only return one result (the first match). 

    Also make sure you have set "allow multi select" to true for the combo box.

     

    Regards,

     

    David

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 528

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard