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 / Vertical Gallery Filter
Power Apps
Unanswered

Vertical Gallery Filter

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

How would you edit this to show a power app gallery where DepartmentStatus Sharepoint listcolumn is "Active"

 

ForAll(
 Distinct(
 'Table Service',
 Title
 ),
 LookUp(
 'Table Service',
 Title = Result
 )
)

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,399 Most Valuable Professional on at

    Hi @Anonymous ,

    The code you posted goes around in a  bit of a circle - you only need the Distinct Value of Title - to Filter

    Distinct(
     Filter(
     'Table Service',
     DepartmentStatus.Value = "Active"
     ),
     Title
    ).Result

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Not working, I am getting an error incompatible types: Table, Text

  • WarrenBelz Profile Picture
    155,399 Most Valuable Professional on at

    @Anonymous ,

    Depends where you are using that - it will produce a Table of the distinct values and would normally be used as the Items of a drop-down/combo box.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    How would you change this to sort the results in ascending order?

     

    ForAll(
     Distinct(
     'Table Service',
     Title
     ),
     LookUp(
     'Table Service',
     Title = Result
     )
    )

     

  • WarrenBelz Profile Picture
    155,399 Most Valuable Professional on at

    @Anonymous ,

    You just need to wrap that in a Sort on the field in the table you want to sort on (you did not specify the field)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Got it

    ForAll(
     Distinct(Sort(
     'Table Service',
     Title), Ascending
     ),
     LookUp(
     'Table Service',
     Title = Result
     )
    )
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Finally, got it.

    ForAll(Sort( Distinct( 'Table Service', Title), Result).Result , LookUp( 'Table Service', Title = Result ) )

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard