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 / Create a button to dis...
Power Apps
Unanswered

Create a button to display all the expense reports that the connected person has created

(0) ShareShare
ReportReport
Posted on by 691

Hello, I have a Sharepoint "Notes de frais" list and I would like to create a Power Apps application allowing managers in my company to create expense reports for company employees.
I would like to create a Power Apps application where on this page

s44_0-1641987879360.png

 

there is a button (located somewhere on the red banner for example) which allows, when we click on it, to display all the expense reports that the connected manager has created.

 

But I have no idea how to go about it. Could you help me please? Thanks in advance !

 

My sharepoint list : s44_1-1641214922274.png

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    you can use directly without a button in a visible properti

     

    If(User().Email=YourGallery.Selected.'Created By'.Email ;true;false)
     
    or if you want a button to change this
    onselec properti of a button 
    If(User().Email=YourGallery.Selected.'Created By'.Email ;Set(varshow;true);Set(varshow;false))
    and on visible properti varshow
     
  • Hii_iii Profile Picture
    691 on at

    @Anonymous My project manager forces me to use a button xD

    It's like this ? :0  It's doesn't work :c 

    s44_0-1641994432725.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    the name of your gallery is wrong .. please use the name correctly

    If(User().Email=BrowseGallery.Selected.'Created By'.Email ;Set(varshow;true);Set(varshow;false))

  • Hii_iii Profile Picture
    691 on at

    It's doesn't work 😞  @Anonymous 

    s44_0-1641995112855.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    please.. pay atention on name of your gallery 

    have the number 1after the name 

    If(User().Email=BrowseGallery1.Selected.'Created By'.Email ;Set(varshow;true);Set(varshow;false))

  • Hii_iii Profile Picture
    691 on at

    Thank you so much ! The formula is correct. @Anonymous 

    But now, when I connect to the account of a person who has not created any expense report, when I click on the button I still see all the expense reports. While normally it's supposed to show none since I logged in with an account that didn't create any expense reports.

    s44_0-1641995810142.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    you need to make a filter in your gallery. what is the source of your data? you create a collect or is directly to sharepoint list?

     

  • Hii_iii Profile Picture
    691 on at

    I am directly on my Sharepoint list @Anonymous 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    how do you list the Items in the Browsegallery1 ?

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    try to

    embebed this on your code

    Filter(

    yourlistname;

    User().Email=BrowseGallery1.Selected.'Created By'.Email ;

    )

     

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
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard