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 / Filter a Dataverse Loo...
Power Apps
Answered

Filter a Dataverse Lookup column using a combo box and display its related values from another lookup column in the same table.

(0) ShareShare
ReportReport
Posted on by 45

I have a dataverse table named Site Items with 2 columns, Item and Material Site.

Item is a lookup and points to Name column in the table named Items .

Material Site is also a lookup that points to Name in the table named Material Sites .

 

I have a combo box named cmbItem who's data source is Items with primary text set to Name that when selected I want another combobox named cmbSite to display every Material Site Name from Site Items when the records value in the Item column is equal to what is selected in cmbItem.

 

Screenshot 2023-02-28 170556.png

 

I played around with Filter(Choices( but im lost. I also see i might need to use something like [@'Site Items'].'Material Site' ?

 

thanks for the help.

Categories:
I have the same question (0)
  • SolTeferi Profile Picture
    on at

    Hi @MarkBaker ,

     

    Please try the following:

    Filter('Site Items',Item.Item=cmbItem.Selected.Item)

     You may want to set the display value of your cmbsite combobox to the desired column.

  • MarkBaker Profile Picture
    45 on at

    I got that far before using:

    Filter('Site Items',Item.Name=cmbItem.Selected.Name)

    But I can't choose the lookup column Material Site for the other combo box's primary text field. its missing from the dropdown list.

     

    thanks

  • Verified answer
    SolTeferi Profile Picture
    on at

    You are right @MarkBaker .

     

    It looks like you want to change it a little bit. Please try this one below:

    ForAll(Filter('Site Items',Item.Item=cmbItem.Selected.Item), 'Material Site'.Name)

    Please make sure you use the right 'Material Site' if you select from intel sense. Hope this one will help.

     

  • MarkBaker Profile Picture
    45 on at

    That worked. I just had to change to this:

    ForAll(Filter('Site Items',Item.Name=cmbItem.Selected.Name), 'Material Site'.Name)

     

    Thanks

  • SolTeferi Profile Picture
    on at

    Awesome! Thank you much, @MarkBaker , for confirming.

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 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard