Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
krixtsup3r
Helper V
Helper V

Rows Added Power Query

Hi Guys, I have a dataset that I get from an API which updates an excel file. I used a power automate in doing this and what it does is that it will get the data from a server then update the entire excel file so it will be a new fresh data. 

x1.PNG

My question is that, is there a way for me to get how many rows were added? I'm thinking of incremental refresh, but how will it work if the file is a new one? Maybe a quick summary like below:

 

DatetimeTotal RowsRows Added
8/17/2021 7:00                 490,1320
8/17/2021 8:00                 495,794                      5,662
8/17/2021 9:00                 504,498                      8,704
8/17/2021 10:00                 507,498                      3,000
8/17/2021 11:00                 509,830                      2,332
8/17/2021 12:00                 512,617                      2,787

 

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

You could create a separate Excel file to store that info, and then add an action to your flow to update that Excel with the DateTime and count of rows in the http array (if I understand your Flow correctly).  You could also read in that Excel to get the sum of rows from previous refreshes to get the total rows.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

You could create a separate Excel file to store that info, and then add an action to your flow to update that Excel with the DateTime and count of rows in the http array (if I understand your Flow correctly).  You could also read in that Excel to get the sum of rows from previous refreshes to get the total rows.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Hi @mahoneypat , that is a great idea! so basically what my flow will do is:
1. Count the rows of existing file

2. Update the separate file and logged in the # of rows 

3. Run the Update file sequence

 

Did I get that right? I only know a few basics in flow, if you have a template or resource link to do that I would appreciate it but I will do googling for it. Thank you! 🙂

 

**I'll close this later today and might want to fish for more suggestions. 🙂

Sorry I don't have a template to share, but it seems like you have a good plan.

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.