Announcements
Using a Gallery how do I combine these two statements?
Items=Filter('Site Pages','Folder path' = "SitePages/Folder1/Folder2/")
Items=Choices('Site Pages'.Category)
@send2mark
Like this...
Choices( Filter( 'Site Pages', 'Folder path' = "SitePages/Folder1/Folder2/" ).Category )
---Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
It is returning the following error.
The function 'Choices' has some invalid arguments.
I'm looking at your original question a little more closely and I'm finding the request to combine both statements does not make sense to me. Why? CHOICES will always return the same values no matter what. Filtering the result of CHOICES would have no effect.Are you trying to find the unique values in the categories column? If yes, please try the DISTINCT function.
Distinct( Filter( 'Site Pages', 'Folder path' = "SitePages/Folder1/Folder2/" ), Category.Value )
I am returning file properties from a library that is two folders deep and grouping them by a column name of Category. Maybe it would be easier to go a different route other than using the 'Folder path' option? Maybe one of the Categories could be called "NoGroup" and I could exclude it. What do you think?
I should have added this in the first place. What I am doing is step 4 from this site.
Hello there Mark! Perhaps the best approach here would be to post some sample data. Then show me what the result should look like. You can do this by copying and pasting data from Excel if necessary.The link to Yammer doesn't work for me but that's OK. I'd prefer to hear you explain the problem anyway.
I'm sorry, I must have had that link on my clipboard without realizing it. Here is the correct link.
https://www.c-sharpcorner.com/article/expand-and-collapse-view-using-nested-gallery-powerapps/
In this image, Admin is a value in a column in a Site Pages library called Category. Those below it called Topic of Training TEMPLATE and Training Content are pages within that library at the root of the library. I do not want anything in the root.
Item=Choices('Site Pages'.Category) is what displays my groups Admin, Analytics, Back-up and Retention, etc.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 355 Most Valuable Professional
11manish 209 Super User 2026 Season 2
MS.Ragavendar 150 Super User 2026 Season 2