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 / Collecting only the co...
Power Apps
Unanswered

Collecting only the columns specified by the user from a dropdown

(0) ShareShare
ReportReport
Posted on by 2

Looking for an elegant solution to what seems to be a simple problem.  I have a huge database and I would like to collect all the records from a single column based on what is essentially a list of column names in a dropdown that the user selects and then feed that into a gallery.  The user picks the column and I grab all the values from that column.  I don't want to collect data from all possible columns and then filter. But I can't figure out how to do this.  Easiest way to specify which column to collect at runtime without using a huge SWITCH formula?

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @MyBrainHurts 

    There are two aspects to your post.

    1) You want to reduce the columns in order to avoid all the Data transfer/performance to your app.

    2) You want to only display certain columns of information in your gallery.

     

    For #1 - there is no way to do this.  PowerApps will always return all the columns.  If you use them or not, they are always returned.  You might hear some say "Use ShowColumns", but ShowColumns will still internally retrieve ALL of the column data.  So you cannot avoid it.

     

    For #2 - this is just about statements in your labels and such to display the chosen columns.

     

    Please clarify what you are looking for if this does not resolve what you need.

     

    I hope this is helpful for you.

  • MyBrainHurts Profile Picture
    2 on at

    Thanks for looking at this, Randy.  Maybe the illustration I have in cluded here will help describe my situation a bit better.

    Visualizing My Problem.jpg

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard