web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard