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 / Connecting Label to Fi...
Power Apps
Answered

Connecting Label to Filtered Gallery

(0) ShareShare
ReportReport
Posted on by 1,104

Hi,

I have a gallery with multiple entries for each person in the gallery, so I set the Items property for the gallery to:

Distinct(Employees, Title)

Where Employees is the name of the SharePoint list I'm connected to and Title is the name of the column with the employee names. There are multiple entries in the list for each employee.

I want to create a label that shows the value for a selected employee, filtering for a particular value out of all the multiple records for that employee.

So the label should check for:

What employee has been selected in the gallery.

Out of the multiple records for that employee, look at column named 'Test' and find where the value is Test B.

In that row, show me what is in the 'Status' column.

 

Does that make sense? 

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @SeanHenderson ,

    Could you please share a bit more about the Status column in your Employees List? Is it a Single line text type column or Choice type column?

     

    Based on the needs that you mentioned, I think LookUp function could achieve your needs.

     

    I have made a test on my side, please take a try with the following workaround:

    1. If the Status column is a Single line text type column:

    Set the Text property of the Label control to following:

    LookUp(Employees, Title = Gallery1.Selected.Result && Test = "Test B", Status)

    or

    LookUp(Employees, Title = Gallery1.Selected.Result && Test = "Test B").Status

     

    2. If the Status column is a Choice type column:

    Set the Text property of the Label control to following:

    LookUp(Employees, Title = Gallery1.Selected.Result && Test = "Test B", Status.Value)

    or

    LookUp(Employees, Title = Gallery1.Selected.Result && Test = "Test B").Status.Value

     

    In addition, if the Test column is also a Choice type column in your SP list, please modfiy above formula as below:

    LookUp(Employees, Title = Gallery1.Selected.Result && Test.Value = "Test B", Status.Value)

    or

    LookUp(Employees, Title = Gallery1.Selected.Result && Test.Value = "Test B").Status.Value

     

    Please take a try with above solution, then check if the issue is solved.

     

    Best regards,

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard