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
Answered

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.

 

I tried this but it doesn't work:

Filter('Notes de frais';User().Email=BrowseGallery1.Selected.'Créé par'.Email)

s44_0-1642067087862.png

 

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_1-1642067187936.png

 

 

Could you help me please? Thanks in advance !

 

 

 

 

My sharepoint list : s44_1-1641214922274.png

 

Categories:
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Try this:

     

    Filter('Notes de frais';'Créé par'.Email=BrowseGallery1.Selected.'Créé par'.Email)

     

    That will filter your 2º gallery by Created By. So, imagine, tha tyou pick something created by you on browseGallery1. I twill only show items create by you on the seconde one.

     

    To fitler a gallery by User().Email try this:

    Filter('Notes de frais';'Créé par'.Email = User().Email)

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • Hii_iii Profile Picture
    691 on at

    @Nogueira1306 It's doesn't work 😞

    s44_0-1642070244536.png

     

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Instead of Created By field use the field that you creaetd "Nom Prenom"

     

    That means that the filter failed, the query failed

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • Hii_iii Profile Picture
    691 on at

    @Nogueira1306 How so ? Can you write me the line I should put please? I don't think I understood what you meant :0

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at
    Filter('Notes de frais';'Nom Prom'.Email=BrowseGallery1.Selected.'Nom Prom'.Email)
  • Hii_iii Profile Picture
    691 on at

    @Nogueira1306  Using this formula, when I click on the button nothing happens now 😞

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    My msitake. Because I only underssod now that you want to filter when you click a button...

    So, on app Start, write this:
    Set(varFilter; false)

     

    On Button, OnSelect:

    Set(varFilter; true)

    On gallery write this:

     

    If( varFilter = false;
    'Notes de frais'; //IT SHOWS EVERYTHING
    Filter('Notes de frais';'Créé par'.Email = User().Email)
    )

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

     

  • Hii_iii Profile Picture
    691 on at

    Thank you ! But can you show me where are OnGallery and On app Start please :0 ? I'm new to Power

    Apps >< @Nogueira1306 

    s44_0-1642076484161.png

     

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Gallery:

    Nogueira1306_0-1642077083830.png

     

     

    App OnStart:

    Nogueira1306_1-1642077121996.png

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • Hii_iii Profile Picture
    691 on at

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard