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 / Using check box to sor...
Power Apps
Answered

Using check box to sort entries by time stamp

(0) ShareShare
ReportReport
Posted on by 16

I am an amateur user. I am trying to use check box to pull items selected from the gallery and place them in a new screen sorted by timestamp. It is being used to check in students for their screener as they arrive for hybrid schooling during covid. I have tried a number of different things and no luck. Any ideas for me?rolling.png 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    If your 2 Galleries are connected to the same Datasource;

    In the Onselect of the icon inside Gallery1 in the First screen put;

    Set(MySelection, ThisItem)

     

    Then in the Default of the second Gallery in screen2 put;

    MySelection

     

    If that is not what you are looking for, Give the formula on the Items property of the second Gallery.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Jstbean ,

    Do you mean that:

    1)you want to check in student in rolling riders screen;

    2)sort the checked items of rolling riders screen based on the checked time in arrived screen?

    If so, I suggest you collect checked items and checked in time to a collection, then display and sort this collection in arrived screen.

    You could set like this:
    checkobox's OnCheck:

     

    Collect(test,ThisItem);
    //create a collection with selected items
    Collect(collection1,AddColumns(test,"time",""));
    //create a collection with a new time colom
    UpdateIf(collection1,uniquefield=ThisItem.uniquefield,{time:Now()});
    //update with checked time
    RemoveIf(collection1,IsBlank(time));
    //remove extra items
    RemoveIf(test,uniquefield=uniquefield)
    //remove extra items

     

     checkobox's OnUncheck:

     

    RemoveIf(collection1,uniquefield=ThisItem.uniquefield)

     

     

    set arrived gallery's Items:

    Sort(collection1, time)

    Then the checked items and checked time will display in arrived screen.

    1020.gif

     

     

    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

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard