cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Change Column Being Filtered Based on DropDown Selection

HI!

 

I have a series of cascading dropdowns that need to determine how a table is filtered. So for Table1, let's say I have the columns ProjectNum, Owner, Location.

The first set of dropdowns are dd1 & dd1a. dd1 displays the columns available (ProjectNum, Owner, Location). dd1a will then show the distinct values in the column selected. So if dd1 = Location, then dd1a displays North, South, East, West.

 

The second set of dropdowns (dd2 & dd2a) will then show the remaining available columns (dd2 = ProjectNum,Owner) and the corresponding values (dd2a). dd2a is where I am running into problems. The values need to be filtered by what was selected in dd1 & dd1a. In this instance, dd2a values should be filtered by Location = North. So if Owner is selected in dd2, then distinct Owners where Location = North should be listed in dd2a. Clear as mud?

 

I have tried setting the value of dd1 to a variable and using that variable in a filter. UpdateContext({vCol:dd1.Selected.Value});Filter(Table1, vCol = dd1a.Selected.Value) and nothing is returned.

 

I have also tried Filter(Table1,dd1.Selected.Value = dd1a.Selected.Vaue) which also returns nada. I don't get error messages, I just don't get results.

 

So I throw myself on the mercy of you wise souls. Any ideas? 🙂

 

Thanks!

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Change Column Being Filtered Based on DropDown Selection

Hi @Moki,

 

I will try to find out a solution, would you please first tell us what is your data source? Also, what is the formulas that you used on the first set of dropdowns dd1 and dd1a?

 

Regards,

Mona

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

Helpful resources

Announcements
Check this Out

Announcing

Class of 2020- Season 2

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,680)