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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Auto numbering in column
Power Automate
Unanswered

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard