Announcements
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 ) )
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
Not working, I am getting an error incompatible types: Table, Text
@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.
How would you change this to sort the results in ascending order?
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)
Got it
ForAll( Distinct(Sort( 'Table Service', Title), Ascending ), LookUp( 'Table Service', Title = Result ) )
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 1,045
Valantis 675
11manish 592