cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Filtering gallery from newest item in SharePoint list to oldest item

Hi everyone,

 

I have a gallery in PowerApps that show list items from a SharePoint list. Currently all new items (in PowerApps gallery as well as SharePoint list) are saved underneath all others. I want to change the order in the PowerApps gallery and display the newly added item on top of the gallery.

 

Can anyone help me with this?

 

Thanks

Dorothee

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Filtering gallery from newest item in SharePoint list to oldest item

Hi @Dorothee ,

Try

Sort(
   Filter(
      'Datasource';
       Requestor.Email=User().Email;
       'Current Approval Status'.Value="Draft"
   );
   ID;
   Descending
)

 

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.

View solution in original post

4 REPLIES 4
Super User
Super User

Re: Filtering gallery from newest item in SharePoint list to oldest item

Hi @Dorothee ,

Sort(
   YourGalleryName,
   ID,
   Descending
)

 

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

Highlighted
Helper I
Helper I

Re: Filtering gallery from newest item in SharePoint list to oldest item

Hi Warren,

 

I already set a filter on this gallery: Filter('Datasource';Requestor.Email=User().Email;'Current Approval Status'.Value="Draft") and I can't just add jour Sort function afterwards. It gives me an error.

Can you tell me where to insert the Sort function?

 

Thanks so much!

Highlighted
Super User
Super User

Re: Filtering gallery from newest item in SharePoint list to oldest item

Hi @Dorothee ,

Try

Sort(
   Filter(
      'Datasource';
       Requestor.Email=User().Email;
       'Current Approval Status'.Value="Draft"
   );
   ID;
   Descending
)

 

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.

View solution in original post

Highlighted
Helper I
Helper I

Re: Filtering gallery from newest item in SharePoint list to oldest item

Thank you!

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (5,173)