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 / Create a subtotal in E...
Power Automate
Unanswered

Create a subtotal in Excel ms flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

All, 

 

I am using 'Add Row into a Table' in MSFLOW and i can create rows all day no problem. but what if i wanted to calculate the totals in a flow that runs after Add Row into a table. I can create the row manually in the sheet but if there is more rows that MSFLOW than i have alloted it goes over the total row, so intend to do it in FLOW for that reason. 

Thanks, Jason. 

Categories:
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    I am not sure with “but if there is more rows that MSFLOW than i have alloted it goes over the total row, so intend to do it in FLOW for that reason”, please provide more explanation on it.

    By the way, my understanding is that you are trying to calculate the totals in an Excel table then add a row in the table.

    I have made the following test for your reference.

    Trigger the flow by a button.

    Initialize a variable of type Integer. Set its name as Number.

    List rows present in a table.

    Add an Apply to each, select value from action List rows present in a table. Within the apply to each, add the action Increment variable, and input the following code in the Value field:

    int(item()?['number'])

    Add the action Add a row into a table. Fill in name field with Total, and number field with the variable Number.

    Please take a try with it and feel free post back if you need more help.

    1.PNG

     

    Best regards,

    Mabel

     

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
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard