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 / Possible to return dif...
Power Apps
Answered

Possible to return different results for gallery title and subtitle?

(0) ShareShare
ReportReport
Posted on by 6

Hello!

 

I'm using the distinct and filter functions to return rows with the same title as a single row in a gallery. The filter also acts to only return rows that match the current user's email address, and a certain value in the status column.

 

I'd like to return the 'Status' column value for the same record, and use that as the subtitle in the gallery, but I can't figure out how to do it. My current formula for gallery entries:

 

Distinct(Filter(TimeEntries,Employee.Email = currentUser.Email And Status.Value = "Saved"),Title)

 

What formula for my subtitle would return the Status column for the same record? I've tried ThisItem.Status with no joy.

 

gallery.png

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @melliott1109 ,

    When you use a Distinct filter, it only returns one column(Result), so you have to put the other one back in. You could do this also with GroupBy(), but try this

    With(
     {wList:TimeEntries},
     AddColumns(
     Distinct(
     Filter(
     wList,
     Employee.Email = currentUser.Email && 
     Status.Value = "Saved"
     ),
     Title
     ),
     "MyStatus",
     LookUp(
     wList,
     Title=Result
     ).Status
     )
    )

     

    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.

  • melliott1109 Profile Picture
    6 on at

    Thanks Warren, I've been tinkering and in the end I did go with a GroupBy(), but your solution works as well. Thanks for your help! Of course I've now come across other problems with my app, but that's life! 😅

     

    draft.PNG

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard