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 / Sum numbers stored as ...
Power Automate
Answered

Sum numbers stored as text in a sharepoint List

(0) ShareShare
ReportReport
Posted on by 30

People, I'm not new, but still consider myself as beginner here.

I have a SharePoint List, which its storing $ totals but in a text column.

 

I need to sum that column to be able to send the total in an email.

 

I know how to get Items and filter the SP list, I know how to send the email, but I don't know and can't seem to figure out how to first convert the column into numbers and then sum it (the filtered array of course).

 

any ideas?

Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,097 Super User 2025 Season 2 on at

    Hi @garzamalanUS 

     

    To improve execution time of 'apply to each' action, pls use the concurrency property of it. To enable & configure it, please perform the following steps:

    1. Firstly, click on ellipses (...) and select 'settings' from the menu:

    ManishSolanki_0-1682153373318.png

     

    ManishSolanki_1-1682153408331.png

     

    2. Next, click on toggle button to enable currency control setting:

    ManishSolanki_2-1682153492286.png

     

    3. The default value for Degree of Parallelism is set as 20. Here I have set its value to 40 but you may modify as per your need:

    ManishSolanki_3-1682153601429.png

     

    click 'Done' to save the setting.

     

    You will see some improvement in the execution time.

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

    Thanks

  • garzamalanUS Profile Picture
    30 on at

    I figure it out. Since it has a "." (dot), it doesn't recognize it as integer (duh!), I needed to use Float, and change the initialize variable type to Float also. So basically, your solution worked but I wasn't specific enough.

     

    Question, it takes about 30 seconds tu sum 60 records, any other solution that might take less time?

  • garzamalanUS Profile Picture
    30 on at

    It gives the following error

    Unable to process template language expressions in action 'Increment_variable' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

     

    My formula is

    int(items('Apply_to_each')?['Amount'])

     

    Sum.png

     

    This is a screenshot of my SPList column

    Sum 2.png

     

     

    And even the column shows the name Charge, in the backend is Amount

    Sum 3.png

  • Manish Solanki Profile Picture
    15,097 Super User 2025 Season 2 on at

    Hi @garzamalanUS 

     

    You can refer the below screenshot of actions to sum the SharePoint column, here Column2 is the field whose total is to be calculated:

    ManishSolanki_0-1682093494983.png

     

    Pls let me know if you face any problem & remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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
David_MA Profile Picture

David_MA 245 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 207 Most Valuable Professional

#3
trice602 Profile Picture

trice602 185 Super User 2025 Season 2

Last 30 days Overall leaderboard