Hello,
I am filtering a gallery using a distinct function from a drop down. All of the gallery items currently only have one label, ThisItem.Result. Is there a way I can pull additional column data from the dataset and store it in the same gallery?
Solved! Go to Solution.
Could you check if the below similar discussion and solution from @RandyHayes might help you with this one?
Multiple columns in gallery - Distinct filter
Check if it helps.
Just create another Label inside the Gallery (which after creation should show up on all rows of Gallery).
For the Text property of this new label, use ThisItem.YourColumnNameHere
Repeat the above for any other additional labels and data points you want.
If unsure how to create a new label inside a gallery, first try to select the existing one, CTRL+C then CTRL+V and modify the copied label, if it's easier to try that way at first.
Check if above helps @mglemser
Thanks for the quick response. I tried that but it doesn't work when you are creating the gallery based off a distinct filter. In the screenshot below, column 1 item was thisitem.result. Column 2 was thisitem.'column name' with the following error.
Error:
Could you check if the below similar discussion and solution from @RandyHayes might help you with this one?
Multiple columns in gallery - Distinct filter
Check if it helps.
Yes, Distinct will return a table with a single column called Result. So there are no other columns to use but that.
The typical scenario I mention for this is - what is it that you would show if you are getting a distinct list??
For example, if you had a list of names with departments and you wanted to have a distinct list of departments and then show the persons name...who would you show? If there were 10 people with a distinct department, which one would you show?
So just keep that in mind with dealing with Distinct and then wanting to show more data. This is why Distinct only has a single column table of results.
Confused a bit, is your dropdown outside the gallery? Or do you mean the gallery itself has distinct on it in the items property? Either way when using distinct you're going to run into delegation issues, are these datasources going to be under the 2000 item limit when in use? Also what's the datasource?
Thank you! The GroupBy function worked
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
197 | |
71 | |
48 | |
41 | |
30 |
User | Count |
---|---|
266 | |
121 | |
94 | |
90 | |
81 |