cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

Hi @Anonymous ,

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
WarrenBelz
Super User III
Super User III

Hi @Anonymous ,

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

Anonymous
Not applicable

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!

Hi @Anonymous ,

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

Anonymous
Not applicable

Thank you!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (10,253)