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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to compare Column ...
Power Apps
Unanswered

How to compare Column name to the value of dropdown/combobox?

(0) ShareShare
ReportReport
Posted on by 14

Hi All,

 

I have a Sharepoint list Geyser linked to my app. There are 13 columns, the column with unique ID is TenderID and the other 12 columns contain a text value Yes or No. The names of the columns are Crompton, Havells, Bajaj, AOSmith, Racold and so on.. Please bear in mind, I have 20 such Sharepoint lists and each list has 13-15 columns where I need to do the same.

 

I want to place a dropdown/combo box in my screen which allows the user to select one of 12 values "Crompton","Havells","Bajaj","AOSmith","Racold" and so on..

 

When the drop down is selected, I want to filter those rows which contain "Yes" value in the Column which shares the same name as the dropdown selected. for example, If Havells is chosen from the dropdown. All the rows are to filtered where value is "Yes" in Havells column.

 

Please help out

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @anujkhator - you can leverage the Switch function. However, your columns will need to be referenced manually  as there is no operation at present to dynamically reference column names. Example below:

     

    Switch(
     Dropdown1.Selected.Value,
     "Crompton",
     Filter(
     Geyster,
     Crompton = "Yes"
     ),
     "Havells",
     Filter(
     Geyster,
     Havells = "Yes"
     ),
     "Bajaj",
     Filter(
     Geyster,
     Bajaj = "Yes"
     ),
     "AOSmith",
     Filter(
     Geyster,
     AOSmith = "Yes"
     ),
     "Racold",
     Filter(
     Geyster,
     Racold = "Yes"
     )
    )

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard