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 / drop down box to selec...
Power Apps
Answered

drop down box to select a sharepoint column

(1) ShareShare
ReportReport
Posted on by 13

I have my SharePoint list connected to my power app and I want to sort a gallery by a drop down changing which column its changing/reading.

Sam33_0-1719411265723.png

then instead of having ThisItem.Leeds have the equivalent of ThisItem.DropDownBox1

 

This Is my Sharepoint List

Sam33_1-1719411348915.png

Im happy to change my approach if this isn’t possible if anyone has an Idea. I thought about swapping my rows and columns but I don’t know how I will get the picture added then.

Thanks,
Sam

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

    @Sam33 - if I am reading this correctly, your app is connected to a SharePoint list. In your App, you have a Gallery control linked to this list. 

     

    You have a Dropdown control, the Items property is populated with column names (e.g. "Leeds", "Manchester", "Sheffield").

     

    If "Manchester" is selected, you want your Gallery to only display data associated to that column?

  • Sam33 Profile Picture
    13 on at

    Hi @Amik ,

    Yep that is correct but I cant seem to pull the column names from the sharepoint list at all to solve this issue 

    Thanks Sam

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

    @Sam33 - on the Text property of the Label control for "Current Stock", you can leverage the Switch function to return to appropriate column. This will have to be manually entered however, as there is no way at present to dynamically reference columns:

     

    Switch(
     Dropdown1.Selected.Value,
     "Leeds",
     ThisItem.Leeds,
     "Manchester",
     ThisItem.Mancester,
     "Sheffield",
     ThisItem.Sheffield
    )

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard