Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Answered

Auto numbering in column

(0) ShareShare
ReportReport
Posted on by 28

Hi, I have two outputs from two 'Select' actions. Both have the same columns. For output from the 'Select A' action, I want to add numbering in the column 'Line', starting from 1 until the end of the active rows (the table rows are not static.). For the output from the 'Select B' action, the numbering will follow the last number in the 'Select A' output. 

 

I did combine the two outputs using 'Union' under 'Compose' action. I am not sure if the numbering can be done after the 'Compose' action or during the 'Select' action. 

 

Any insight is very much appreciated. Thank you.

 

KooiJit_0-1701843882440.png

My flow:

KooiJit_1-1701844203644.png

 

  • KooiJit Profile Picture
    28 on at
    Re: Auto numbering in column

    Omg, you saved my day! 

     

    It works! I never knew it could be done like this. 

     

    Thank you so much for your prompt reply and help! Really appreciate it.

  • Verified answer
    v-yueyun-msft Profile Picture
    on at
    Re: Auto numbering in column

    Hi , @KooiJit 

    According to your description, you want to auto numbering in your array .

    This is my test array, which is similar to your select action output , here we do not need to add the Index column.

    vyueyunmsft_0-1701845853267.png

    Then we can use this action to add the Index Column:

    vyueyunmsft_1-1701845927862.png

     

    range(0,length(outputs('Compose_3')))
    outputs('Compose_3')?[item()]?['Document']
    outputs('Compose_3')?[item()]?['Count']
    add(item(),1)
     
     

    Best Regards,

    Yueyun Zhang

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1