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 / Dataverse Filtered com...
Power Apps
Answered

Dataverse Filtered combobox

(0) ShareShare
ReportReport
Posted on by 4

Hello everyone,

 

  I have three Dataverse for teams tables  

 

Team: ID, Name, Type,

Player: ID, Name, Position

TeamAssignment:  ID, PlayerID lookup), TeamID (lookup)

 

I want two combo boxes,

 

comboBox1:  items=Teams

 

I need comboBox2 to filter only the Name of the players for Team selected in comboBox1

 

I did not build the tables and do now want to alter them whatsoever (ie: add a TeamsID column) since they are quite large and important. 

 

I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Imoale ,

     

    Consider the below:

     

    With(
     {//Filter the TeamAssignment table based on the selected team from the Combo Box. Then return the distinct Player IDs in that table
     _players: Distinct(
     Filter(
     TeamAssignment,
     TeamID.Name = ComboBox1.Selected.Name
     ),
     PlayerID.ID
     )
     },
     Filter(
     Player,
     ID in _players
     )
    )

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

  • Imoale Profile Picture
    4 on at

    Thank you that worked, Issue is now that filtering in _Players is giving all string matches.  (As in result "1326" when I only wanted to match "26").  Thank you again!!!

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    Consider changing this line:

     

    ID in _players

     

    To:

     

    ID exactin _players

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

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!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard