Announcements
Hello,
How can i get the 2 last added items into the gallery?
Sort(Filter(ExpensesCollect,PlanTitle = Text(CurrentBudgetItem) ) ,'Id (ID)',Descending)
This code gives me all the records.
Thank you
Hi @TimmyBoy,
Do you want the Gallery only display the last two records?
If so, I think you could use the Modified column that records the latest modified date time for each item.
FirstN(Sort(Filter(ExpensesCollect,PlanTitle = Text(CurrentBudgetItem) ) ,Modified,Descending),2)
Or you could use the ID column as the sort column:
FirstN(Sort(Filter(ExpensesCollect,PlanTitle = Text(CurrentBudgetItem) ) ,'Id (ID)',Descending),2)
Hello @v-qiaqi-msft
Cool ,thanks
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 220 Super User 2026 Season 2
WarrenBelz 194 Most Valuable Professional
Mohsin Ali 150