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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to give gallery ro...
Power Apps
Unanswered

How to give gallery row number

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Team,

How to find currently gallery number.
23 I'm able to find using of the current row.
How to find 1 (Gallery numbering)
12Screenshot 2020-10-04 192312.png
Thanks,
Raj

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at

    @Anonymous 
    To add the row number to a gallery you would need to use Collections.  Here's an example of how to do it.

    https://matthewdevaney.com/powerapps-collections-cookbook/add-a-row-number-column-to-a-collection/

    After applying the technique you would access the row number using this code.

    ThisItem.RowNumber

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."  

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @mdevaney 

    here I'm not parching any values.
    all the data are coming from backed.

    Thanks,
    Raj

  • mdevaney Profile Picture
    29,993 Moderator on at

    @Anonymous 
    Exactly.  Your back-end does not have this information so you must Collect the data then Patch a row number.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • mwafai Profile Picture
    4 on at

    you can use the below code :

    ClearCollect(myBoardGames5,
    {Game: "Monopoly"},
    {Game: "Clue"},
    {Game: "Scrabble"},
    {Game: "Backgammon"},
    {Game: "Chess"}
    );

    Collect(myBoardGames6,
    ForAll(
    Sequence(CountRows(myBoardGames5)),
    {
    myRecord: Last(FirstN(myBoardGames5,Value)),
    RowNumber: Value
    }
    ));

     

    And bind myBoardGames6 to your galary .solution reference :
    https://www.matthewdevaney.com/powerapps-collections-cookbook/add-a-row-number-column-to-a-collection/

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard