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 filtering us...
Power Apps
Answered

Dataverse filtering using a combobox with equipment in allowing multiple selected items, to show only results where room has all equipment.

(1) ShareShare
ReportReport
Posted on by 28

I have the following setup

 

Dataverse table with asset information on equipment in different rooms.

Combobox with the distinct equipment types.

 

I am wanting to filter the rooms to only show rooms which have all the equipment types selected.

 

At the moment when I apply filters it shows me the all the rooms which has any of the equipment selected. For example if I select equipment A, it will show me 20 rooms, if I then add equipment B to the combobox, it will show me 30 rooms. Required result is where it shows the rooms which has both equipment A and Equipment B, which result in only showing the 10 rooms which have both pieces of equipment in. Ideally this working for multiple selected pieces of equipment.

Is this possible from one combobox, without adding additional comboboxes, collections etc? In total there is 20 different equipment types, with over 300 rooms.

 

Any advice, guidance welcome

Categories:
I have the same question (0)
  • Verified answer
    SS-23070435-0 Profile Picture
    28 on at

    @Ali_SZ_365  Many thanks for the reply. Your solution didn't work for me, and I think it's down to how I have the data modelled and that there is lookup columns involved, which meant I needed to add columns. It did however guide me to the solution. 

    For my situation, the solution required collections - there maybe an easier way, but this is code which worked

    ClearCollect(
     colFiltered, 
     AddColumns(
     Filter(
     Assets, Equipment.Name in ComboBox1.SelectedItems), 
     "Room Number",Room.Room, "Equipment Name", Equipment.Name)
     );
    ClearCollect(
     colFilteredGroup, 
     Filter(
     GroupBy(
     colFiltered, "Room Number", "DATAGROUP"), 
     CountRows(Distinct(DATAGROUP,'Equipment Name')) >= CountRows(ComboBox1.SelectedItems)
     )
     );

     

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

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard