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 / Summary upcoming booking
Power Apps
Unanswered

Summary upcoming booking

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

Another question 😉 I want to create a summary page of  upcoming booking (all bookings I have).

 

What I already do:

A SP list with Booking date (Date de réservation) and Created by

 

What I need:

A summary page to show to users all the upcoming bookings they have + cancel button

 

BUT I can't create my gallery function... I've done something like that but... 

 

SortByColumns(Filter([@'Reservation parking AIX']; 'Réserver par'.Email = _CurrentUser.email && Date de 'Date de réservation'>=Today());"Date de réservation";Ascending

 

For cancel button, I don't already have chance to try haha, but I think that I will ad icon on gallery, and add this function:

Remove( [@'Reservation parking AIX']; thisitem )

 

Many many thanks for your help 😉

 

Cheers, 

Bastien

gallery.png
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at

    Hi @Anonymous ,

    Firstly, I would set a Variable for the user's email in App OnStart

    Set(varUserMail,User().Email)

    then your filter

    SortByColumns(
     Filter(
     [@'Reservation parking AIX']; 
     'Réserver par'.Email = varUserMail && 
     DateDiff(
     Today();
     'Date de réservation';
     Days
     )>=0
     );
     "Date de réservation";
     Ascending
    )

     then on the Remove icon (in the gallery)

    RemoveIf(
     [@'Reservation parking AIX'];
     ID=ThisItem.ID
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Many thanks for your reply @WarrenBelz , but I have an issue... 😞

     

    I've created the variable (on attach)

     

    After that, back to my Gallery - Adding the filter (on attach) but I have a yellow warning icon.

    "Issue , Delegation warning. The "filter" part of this formumla might not work correctly on large data sets"

     

    Last thing, on my Gallery, I added a text part with 

    ThisItem."Date de reservation" 

    To have all my futures reservation dates, but I have a new issue 😞

     

    So I don't test yet the Remove icon haha 😉

     

    I thanks you all for your help on my first Power apps journey haha

     

    Cheers, 

    Bastien

    variable.png
    Gallery Item.png
    Label text date.png
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Last thing, I always have this message when I adde the "ThisItem" : "The formula uses scope, which is not presently supported for evaluation"

     

    Again: Thanks a lot 😉

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @Anonymous ,

     

    You received the delegation warning because the DateDiff function is not delegable to SharePoint, so you can set Items for Gallery as following:

    SortByColumns(
     Filter(
     [@'Reservation parking AIX']; 
     'Réserver par'.Email = varUserMail && 
     Today()>='Date de réservation'
     )>=0;
     "Date de réservation";
     Ascending
    )

     

    Can you show me also the text error when you insert the label ?

     

  • WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at

    Hi @bastienO
    Covering your questions:-
    You only need to do this at App OnStart to save an unnecessary data query

    Set(_CurrentUser,User())

    You then have _CurrentUser.FullName and _CurrentUser.Email available for use.
    Next, the Delegation warning is because Date queries are not Delegable and also I suspect 'Réserver par'.Email being a complex field type. There are a number of workarounds for this depending on your needs. I will start with a fairly easy one that will work if all the items you are looking for are in the newest 2,000 records (or whatever your delegation limit is set to)
    Using the User syntax above

    With(
     {
     wParking:
     Sort(
     AddColumns(
     'Reservation parking AIX';
     "ResEmail";
     'Réserver par'.Email
     );
     ID;
     Descending
     )
     },
     SortByColumns(
     Filter(
     wParking; 
     ResEmail = _CurrentUser.Email && 
     DateDiff(
     Today();
     'Date de réservation';
     Days
     )>=0
     );
     "Date de réservation";
     Ascending
     )
    )

    On your last question, where are you using this (Is the delete button in the gallery or out side it). If outside it, you can use

    RemoveIf(
     [@'Reservation parking AIX'];
     ID=YourGalleryName.Selected.ID
    )

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at

    Hi @Anonymous ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard