web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter dropdown with a...
Power Apps
Unanswered

Filter dropdown with a column name equal to the value selected in another dropdown

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I am having a weird issue filtering dropdown based on value from another dropdown.

Basically I have 2 SharePoint lists with data on 1st list's first column being column headers of 2nd list.

first list

lohaninarayan_0-1669787760532.png

Second list

lohaninarayan_2-1669788047865.png

 

I was unable to clip the whole list but basically, value from first list's first column is being column headers in second list.

Now I have 2 drop downs in my app, first dropdown listing the first columns value 2478, 2480 etc, and second should list the first column's value from 2nd list, filtering the column name equal to selected in first dropdown does not have value "Blocked".

 

I know it is confusing, so I am creating a scenario here.

 

if 2800 is selected in first dropdown, second dropdown should list 1101001 as an option because column 2800 does not have value, and should not list 1101002 as an option because column 2800 has Blocked value.

lohaninarayan_3-1669788455428.png

I feel like I am missing a very simple thing here.

Please do comment if you have any suggestion or any workaround.

 

Regards

Narayan

 

 

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @lohaninarayan ,

    I don't think we can reference column names dynamically.
    You will have to use Switch/If statement -

    Try adding below formula in Items property of Dropdown2 -

    Switch(Dropdown1.Selected.Value, "2502", Filter(List2, 2502Column.Value <> "Blocked").Title, "2800", Filter(List2, 2800Column.Value <> "Blocked").Title)

  • lohaninarayan Profile Picture
    on at

    Hi Nandini, 

     

    Thanks for taking time to find the solution. I don't think I can implement your solution as I have more than 50 columns like 2502 or 2800. I will still give it a try when I get a time, at the same time I will welcome if you have any other suggestion.

     

    Regards

    Narayan

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard