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 / Increment Excel number...
Power Automate
Unanswered

Increment Excel number series

(0) ShareShare
ReportReport
Posted on by 126

Hi All,

Having bit a of a trouble while trying to increment a number series on a table.

Basically the last number is read from a PostgreSQL database and posted on the first line.

I can get that done, but cannot increment it to the rest of the lines.

Any suggestions would be highly appreciated.

My project is in a standstill coz of this.

Cheers

 

increment excel.PNG

Categories:
I have the same question (0)
  • Verified answer
    Achavan Profile Picture
    286 on at

    Hi @Pat_Wickramage ,

    1. Initialize variable of type integer and initialize with value (which is first row number/key)

    2. apply to each looping

    3. Use increment variable 

    Achavan_0-1620279676187.png

     

     

    Did I answer your question? Please consider to mark my post as a solution to help others.

  • Pat_Wickramage Profile Picture
    126 on at

    Thanks @Achavan 
    I tried that.

    But it was on a infinite loop updating the entire column rather than each cell.
    And 'loop until' is a problem cause the number of rows keep changing based on daily export.

    Have I missed something?

  • Verified answer
    flavia.takushi Profile Picture
    on at

    @Pat_Wickramage. see this example of flow and check if it works:

    You may have to adjust the trigger and parameters according to your needs.

     

    flaviatakushi_0-1620872137870.png

    flaviatakushi_1-1620872176046.png

    Cellvalue: int(items('Apply_to_each')?['AD_User_Training_ID'])

     

    If this helps you, please mark as solution.

  • Pat_Wickramage Profile Picture
    126 on at

    Thanks guys figured it out.
    This is all I had to do.

    Web capture_18-5-2021_132716_australia.flow.microsoft.com.jpeg

    If it's a never ending one, use 'do-until'
    Cheers

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard