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?
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.
Thanks for looking at this, Randy. Maybe the illustration I have in cluded here will help describe my situation a bit better.
User | Count |
---|---|
259 | |
110 | |
97 | |
57 | |
39 |