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 with (2) data...
Power Apps
Unanswered

ComboBox with (2) data sources?

(0) ShareShare
ReportReport
Posted on by 829

Hi Folks -

 

I have a need to leverage a ComboBox, but I need the list of values to be populated from (2) different data sources:

 

RD_Target_List & RD_Portfolio_Compound_List.  From both tables, I need to display the "Alias" column.  Another peices is there is another field in both SP tables called "Portfolio_Status" so I only want to display values from the Alias columns AND are not "Terminated" for the "Portfolio_Status" column.

 

I'm trying to play around with multiple galleries but can't quite seem to get anything to produce the results I want. Hoping some folks can shed some light for me, thank you!

Categories:
  • ZePowerDiver Profile Picture
    279 Most Valuable Professional on at

    Hello simms,

     

    have you considered working with a collection for your combobox values? Collect data from both of your data sources into that collection and use the collection as the items for the combobox. This is considering you don't have too many rows for each of those 2 sources.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

     

    On the OnStart statement of your app :

    Clear(ListElements);;
    ForAll(
    Filter(RD_Target_List ;Portfolio_Status= "Terminated");
    Collect(ListElements;Alias)
    );;
    ForAll(
    Filter(RD_Portfolio_Compound_List;Portfolio_Status= "Terminated");
    Collect(ListElements;Alias)
    )

     

    And then, on your dropdown Items statement, you put ListElements

     

    Regards, Louis

  • simms7400 Profile Picture
    829 on at

    collect.png

     

    @Anonymous  Thank you!

     

    I tried that syntax on the "OnStart" but it's not validation.  I can confirm all names are correct. ANy idea?

     

     

  • simms7400 Profile Picture
    829 on at

    Nevermind I think I got it. I replaced hte vairous ; symbols with commas and that seemed to validate. I"ll let you know if there are nay more issue when I test.

     

    Thank you!!!!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I think we have not the same version of PowerApps, that's maybe that!

     

    I see you replaced my ";;" by ";", then replace my ";" by "," 😄

    Regards,

     

    Louis

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That's it ! Try it out and tell me 😉

     

    Louis

  • ZePowerDiver Profile Picture
    279 Most Valuable Professional on at
    It's because in French vs English (for example) separators are different in PowerApps. I changed my laptop language because of that, since most examples on the web are with comas and single semicolon
  • simms7400 Profile Picture
    829 on at

    @ZePowerDiver @Anonymous 

     

    Hi Both - this worked like a charm!!  However, since it's a dropdown box, i'm unable to search the list of values.

     

    is it possible to make this a ComboBox? If so, what would I use as the data source?

  • ZePowerDiver Profile Picture
    279 Most Valuable Professional on at

    @simms7400Collections can serve as a source for both dropdown and combobox 😉

  • simms7400 Profile Picture
    829 on at

    @ZePowerDiver  Thank you!

     

    but since I have two sources, does it matter which one I use then in the ComboBox when initiating a source?

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard