Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Need help with Gallery filter

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. 

 

 

 

 

  • Re: Need help with Gallery filter

    This worked ! Thank you so much ! 

  • Verified answer
    v-jefferni Profile Picture
    v-jefferni on at
    Re: Need help with Gallery filter

    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,

  • Re: Need help with Gallery filter

    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.

  • v-jefferni Profile Picture
    v-jefferni on at
    Re: Need help with Gallery filter

    Hi @amritat ,

     

    Please try below formula:

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

     

    Hope this helps.

     

    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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard