Announcements
How can I add a row number to each row in a gallery?
Hi @gregbahr
Check out this article. It has exactly how to do this. http://powerappsguide.com/blog/post/generating-row-numbers
The problem with this solution is it counts the number of records in the collection. I have a gallery that displays a subset of the collection, and I want to display a row number for each row in the gallery.
Hi @gregbahr ,
I cannot think of a smarter way but the below one:
1. Create a new collection with the ID field like:
ClearCollect(C2,{ID:1},{ID:2},{ID:3})
2. Add this column to the collection that is the data source of your gallery.
AddColumns(C1,"ID",C2.ID)
Regards,
Mona
im trying your method but i dont know why the id column in c1 is not creating and if creating its not callable or showing... can you kindly help me with it?
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 395 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 260 Most Valuable Professional