cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gregbahr
Level: Powered On

Gallery Row Number

How can I add a row number to each row in a gallery?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Gallery Row Number

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

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Gallery Row Number

Hi @gregbahr 

Check out this article.  It has exactly how to do this. http://powerappsguide.com/blog/post/generating-row-numbers 

gregbahr
Level: Powered On

Re: Gallery Row Number

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.

Community Support Team
Community Support Team

Re: Gallery Row Number

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

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,483)