cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
freshyshreya
Post Patron
Post Patron

Viewing data related to one drop-down in data table

Hi,

In the pic below,I have 3 drop-downs(2,3&4). I want that a user should select values from any one of the drop-downs at a time and subsequently data related only to the selection made should reflect in the data table(1).

freshyshreya_0-1632324123249.png

Please help!

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@freshyshreya 

It sounds like you want to have each dropdown to be exclusive of the others in filtering your datatable.  If this is the case, you can make the OnSelect property of each combobox create a context variable and use that as the Items property of the datatable.  for example, 

 

UpdateContext({itms: Filter(DTA_Portal, OpportunityID=Combobox3.Selected.Text})

 

and set the Items property of the datatable to itms.  Do the same for each of the three comboboxes using the filter appropriate to that combobox.  You could have  UpdateContext({itms:DTA_Portal}) as the OnVisible property of the screen to set the default for the datatable and perhaps have a Reset button with the same formula to reset the datatable default to show all the items.  This design will override previous selections in the other comboboxes. 

View solution in original post

2 REPLIES 2
Drrickryp
Super User
Super User

@freshyshreya 

It sounds like you want to have each dropdown to be exclusive of the others in filtering your datatable.  If this is the case, you can make the OnSelect property of each combobox create a context variable and use that as the Items property of the datatable.  for example, 

 

UpdateContext({itms: Filter(DTA_Portal, OpportunityID=Combobox3.Selected.Text})

 

and set the Items property of the datatable to itms.  Do the same for each of the three comboboxes using the filter appropriate to that combobox.  You could have  UpdateContext({itms:DTA_Portal}) as the OnVisible property of the screen to set the default for the datatable and perhaps have a Reset button with the same formula to reset the datatable default to show all the items.  This design will override previous selections in the other comboboxes. 

Hi @Drrickryp ,

The formula works fine.One additional thing which I require is when a user selects a value in any of the combo-boxes(2,3,&4) the selection made in other two combo-boxes should get removed from the combo-box(as circled in the below pic)

freshyshreya_0-1632330616791.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,241)