web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Gallery Row Numbers

(0) ShareShare
ReportReport
Posted on by 6
Hi, I am creating a gallery that will be a repeating table for a form type experience. I want to add a unique "row number", this row number won't be going through to any sort of data source, it is there for cosmetic purposes only. I just want it there so when a new row is created you can differentiate the rows.
 
In this case I want the row numbers to be "User 1" , "User 2" , "User 3" etc. and then when the collection is cleared it shows  "User 1" , "User 2" , "User 3" etc.
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at
    Gallery Row Numbers
     
    To create a collection like that you can use the following code:
    ClearCollect(
        UserCollection, 
        ForAll(
             Sequence(3), 
            {Name: "User " & Text(Value)}
        )
    );
     
    Hope this helps.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 714 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 419 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 243

Last 30 days Overall leaderboard