cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MyBrainHurts
New Member

Collecting only the columns specified by the user from a dropdown

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?

2 REPLIES 2
RandyHayes
Super User
Super User

@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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
MyBrainHurts
New Member

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,396)