Announcements
hi, how can I modify this code to add auto increment columns in the data displayed in gallery?
Sort(Filter(spTeachers,schoolyear = cboYear.Selected.Value && teacher_email = User().Email),subjectID)
Hi @jayBEEph ,
Is this what you mean (adding a sequential number in a column)
With( { wData: Sort( Filter( spTeachers, schoolyear = cboYear.Selected.Value && teacher_email = User().Email ), subjectID ) }, ForAll( Sequence(CountRows(wData)), Patch( Index( wData, Value ), {Increment: Value} ) ) )
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.
MVP (Business Applications) Visit my blog Practical Power Apps
muchas gracias.
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.
WarrenBelz 379 Most Valuable Professional
11manish 203 Super User 2026 Season 2
MS.Ragavendar 128 Super User 2026 Season 2