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 / Looping: Critical Assi...
Power Automate
Unanswered

Looping: Critical Assistance

(0) ShareShare
ReportReport
Posted on by 12

Hello,

 

I am trying to build invoices utilizing a excel file and ROW A shows the billing ID and then theres several rows with the description of different pay criteria.

 

i am trying to make a loop to count the number of rows until the next billing id change in the excel document but having trouble understanding how to do that. 

 

I am utilizing desktop automate for this.

 

anyone have any idea? 

  • VJR Profile Picture
    7,635 on at

    Can you post a screenshot which shows the change in pattern when the billing Id changes?

  • Amitaggarwal0 Profile Picture
    2 on at

    You need to take for loop and Variable

     

    you logic will be like

     

    for each   row in rows 

                CurrentBillingID = row[billingID]

                if(CurrentBillingID  equals PrevBillingID)

                   .......

                Else

                   ......  you encountered new BillingID

      PrevBillingID  =    CurrentBillingID 

     

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 Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard