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 / Need help with Gallery...
Power Apps
Answered

Need help with Gallery filter

(0) ShareShare
ReportReport
Posted on by

Need help with filtering gallery 

I have a created powerapp which have 2 gallery controls on the screen . first gallery connects to Office365 connector and gets direct reports of logged in user, second gallery connects to dataverse table which has UPN and Status of all users. I want to show status info of all direct reports in the screen . 

when i  use below formula, it works but for mutiple direct reports  i have to select each cell to get info, my requirement is to show value for each user in gallery 1 in table format .

Filter(datasource,userPrincipalName=Gallery2_3.Selected.userPrincipalName)

 

Please help!

I followed Reza Dorrani's video for direct reports to build this app. 

 

 

 

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @amritat ,

     

    Please try below formula:

    ForAll(
     Gallery2_3.AllItems As G2,
     Filter(
     datasource,
     userPrincipalName = G2.userPrincipalName
     )
    )

     

    Hope this helps.

     

    Best regards,

  • AT-07111408-0 Profile Picture
    on at

    Thank you for your response ! I tried this formula but it does not give me desired results, when i apply above formula to gallery and add label to gallery , i get 2 options - Thisitem.isselected and Thisitem.value . This item.value.<somefield> , gives me scope error so i am not able to get the field data from the Datasource i am looking for.

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @amritat ,

     

    Sorry, have forgotten to expand the grouped tables.

    Ungroup(
     ForAll(
     Gallery2_3.AllItems As G2,
     Filter(
     datasource,
     userPrincipalName = G2.userPrincipalName
     )
     ),
     "Value"
    )

     

    Best regards,

  • AT-07111408-0 Profile Picture
    on at

    This worked ! Thank you so much ! 

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 88

#2
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 45

Last 30 days Overall leaderboard