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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (980)