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 Automate / Auto numbering in column
Power Automate
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

 

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    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

  • KooiJit Profile Picture
    28 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 632

#2
Haque Profile Picture

Haque 458

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard