cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kobenix
Frequent Visitor

Looping: Critical Assistance

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? 

2 REPLIES 2
VJR
Super User
Super User

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

Amitaggarwal0
New Member

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 

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,738)