cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Relational filtering for drop down list

Hi All,

I am posting the data that i have and the final output that i would want but I am not able to figure out how can make dropdowns to achieve so. Any help would be appreciated.

 

This is the data that I have before

eq-idop_1op_2op_3
t-80mer = 50Mer=30mer=500
t-80pi = 60 pi=90
t-80 xyz = 90xyz=800
t-80  abc=80
t-90mer = 60Mer=30mer=500
t-90pi = 70 pi=90
t-90 xyz = 90xyz=800
t-90  abc=80

The final output should be a dropdown for the columns (op_1,op_2,op_3) which when clicked give me unique values for their corresponding ids

eq-idop_1op_2op_3
t-80Dropdown[ mer = 50,pi=60]Dropdown[ mer = 30,xyz=90]Dropdown[ mer = 500,pi=90,xyz=800,abc=80]
t-90Dropdown[ mer = 60,pi=70]Dropdown[ mer = 30,xyz=90]Dropdown[mer = 500,pi=90,xyz=800,abc=80]

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Relational filtering for drop down list

Hi @Prbhv ,

Do you want to transfer table1 to table2?

The point is:

1)use a gallery to display no-repeated eq-id value

2)insert 3 drop downs inside the gallery

3)make drop down1 display no-repeated op_1 value based on this item's eq-id value

4)make drop down2 display no-repeated op_2 value based on this item's eq-id value

5)make drop down3 display no-repeated op_3 value based on this item's eq-id value

 

Try to set like this:
1)insert a gallery, set its Items:

Distinct(datasorcename,eq_id)

2)set one label's Text inside the gallery:

ThisItem.Result

3)insert three drop downs inside the gallery

4)set drop down1's Items:

Distinct(
        Filter(datasourcename,eq_id=ThisItem.Result),
        op_1
)

set drop down2's Items:

 

Distinct(
        Filter(datasourcename,eq_id=ThisItem.Result),
        op_2
)

 

set drop down3's Items:

 

Distinct(
        Filter(datasourcename,eq_id=ThisItem.Result),
        op_3
)

 

If you also want to display the field name above your gallery, you just need to insert four labels above the gallery.

Set label1's text:

"eq_id"

 

Set label2's text:

 

"op_1"

 

Set label3's text:

 

"op_2"

 

Set label4's text:

 

"op_3"

 

 

 

 

Best regards,

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Re: Relational filtering for drop down list

so to make relationally filtered dropdowns, you will need to have some relation between the lists

 

so for example, if I have a company list and a conact list, and my contact list contains the company.

say dropdown 1 is company and dropdown2 is contact

 

If would set the items property of dropdown 2 to Filter(Contact, account=DropDown1.Selected)

Highlighted
New Member

Re: Relational filtering for drop down list

I see but can you suggest what should be appropriate method to convert the table above to below 

Can you suggest how should i go about the coding logic for it

Highlighted
Community Support
Community Support

Re: Relational filtering for drop down list

Hi @Prbhv ,

Do you want to transfer table1 to table2?

The point is:

1)use a gallery to display no-repeated eq-id value

2)insert 3 drop downs inside the gallery

3)make drop down1 display no-repeated op_1 value based on this item's eq-id value

4)make drop down2 display no-repeated op_2 value based on this item's eq-id value

5)make drop down3 display no-repeated op_3 value based on this item's eq-id value

 

Try to set like this:
1)insert a gallery, set its Items:

Distinct(datasorcename,eq_id)

2)set one label's Text inside the gallery:

ThisItem.Result

3)insert three drop downs inside the gallery

4)set drop down1's Items:

Distinct(
        Filter(datasourcename,eq_id=ThisItem.Result),
        op_1
)

set drop down2's Items:

 

Distinct(
        Filter(datasourcename,eq_id=ThisItem.Result),
        op_2
)

 

set drop down3's Items:

 

Distinct(
        Filter(datasourcename,eq_id=ThisItem.Result),
        op_3
)

 

If you also want to display the field name above your gallery, you just need to insert four labels above the gallery.

Set label1's text:

"eq_id"

 

Set label2's text:

 

"op_1"

 

Set label3's text:

 

"op_2"

 

Set label4's text:

 

"op_3"

 

 

 

 

Best regards,

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,270)