web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,079 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard