Announcements
I want Genarate Row Number in the Collection. I have a collection like this:
And I want column No. in the gallery numbered:
Gallery formula:
Hope you can help me solve this problem. Thank you everyone.
Hi @Edward00 ,
You can use the first part of the process in this blog of mine.
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
@Edward00
The following code should allow you to add row numbers into your collection.
ClearCollect(colSolution, ForAll(Sequence(CountRows(colMyCollection)), Patch(Last(FirstN(colMyCollection, Value)), {RowNumber: Value})))
You will need to create a new collection with the row numbers in.
Cheers!
After using the formula, my gallery has an error plus minus quantity button.
Is there a way to fix it? Thank you very much
Because now you are using a new collection, you will need to reference that for those functions.
I would suggest you to check the error message that comes up with those formula to know whats happening now.
If you've changed the Items property of your gallery to colSolution as @narayan225 suggested, the most likely cause of this error is that you would need to Patch colSolution rather than colAddCart.
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 401 Most Valuable Professional
11manish 201 Super User 2026 Season 2
MS.Ragavendar 128 Super User 2026 Season 2