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

How to sort after filtering

I have the below formula which populates a gallery fine. It populates with items which are equal to a global variable called spgCaseID and it works well. 

 

Data Items

Filter('Incident Log',spgCaseID = displayItem.ID)

 

However i wanted to limit the number of items that are populated to the last 5 items created. But i seem to have no idea how. I have tried with a Sort in there but well not understanding what I'm doing.

 

Any help would be great

1 ACCEPTED SOLUTION

Accepted Solutions
Mike8
Memorable Member
Memorable Member

Hello JoelHj,

Does this work for you?
LastN(Filter('Incident Log',spgCaseID = displayItem.ID),5)

View solution in original post

2 REPLIES 2
Mike8
Memorable Member
Memorable Member

Hello JoelHj,

Does this work for you?
LastN(Filter('Incident Log',spgCaseID = displayItem.ID),5)

View solution in original post

Anonymous
Not applicable

That did it. Seems so simple when i see it but i couldn't figure it out. Thank you so much. 

 

Thank you

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,432)