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 / DropDown Control conta...
Power Apps
Answered

DropDown Control contains data from multiple datasource

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Teams,

 

Hope you all are doing great! Going through the issue which I am facing currently,

 

Bansari_Pandya_0-1602267141070.png

Note : Both have a different data source.

 

Here I have 2 dropdown control. For example, All roll number we have 1 to 50 Numbers. Roll No have only one record '50'. Now what data I need for roll no, If both data source have some common number (in our case '50'). Then it will cut that number and display 1 to 49 records in roll number.

 

Summary is if both datasource share common no then I don't want to show that no and display rest of all numbers in my dropdown list.

 

Thanks in Advance!

 

Regards,

Bansari Pandya.  

Categories:
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Anonymous ,

    Please Find the solution for your Issue.

    Formula - For Filter

    If(Last(Coll2).Value=Last(Coll1).Value,FirstN(Coll2,CountRows(Coll2)-1),Coll2)
    
    //Coll1 - First Source
    //Coll2 - Second Source


    See the Demo below

    2DropDOwnIssue.gif

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @VijayTailor

    Sorry but you can not understand my question. It's not fix that for roll no I need 1 to 49 number. 

     

    For example, I add '23' in my "Roll No" data source. So dropdown display 1 to 50(accept '23' and '50'). Hope now you understand my question and give a solution.

     

    Thanks in advance!

     

     

     

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Let's say ‘Roll Number' and 'All Roll Number' are the data source of  two dropdown, and Number is the field name, so the code should be:

    Filter('All Roll Number', Not(Number in 'Roll Number'.Number))

    If this doesn't make any sense, please share the detailed information to help us understand your scenario.

     

    Sik

     

  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @Anonymous ,

    See the solution for your Issue,

    The concept is the same as I mentioned in my previous post, just you need to tweak the code as per your need.
    But no issue, I tried the solution for your Need.

    As per my understanding if you select any value from first Combobox then selected the value in First Combobo and Last same value not present in the second Combobox.

    See the Demo gif.
    See the New Formula - 

    If(Last(Coll2).Value=Last(Coll1).Value,Filter(FirstN(Coll2,CountRows(Coll2)-1),Value <> ComboBox13.Selected.Value),Coll2)


    1to50DeopDOwnIssue.gif

    Thanks,

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard