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. 

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,840)