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 Apps / Column sum using Share...
Power Apps
Unanswered

Column sum using Sharepoint list

(0) ShareShare
ReportReport
Posted on by

Hi, I have a column X with calculated value : [column_Y] * [column__Z]. 

In my app I want to display the sum of all the rows of this column X. How can I make this ? 

I try to do this with this formula : Text(Sum(Inventaire;Value(TotalValue)))

But I have this error : "Failed to convert the value '3.75000000000000' to a number."

Thanks in advance

Categories:
I have the same question (0)
  • AndrewR1 Profile Picture
    1,572 Moderator on at

    The error you're encountering, "Failed to convert the value '3.75000000000000' to a number," is likely due to the way SharePoint stores calculated fields with decimal points. SharePoint sometimes stores calculated values with a large number of decimal places, and this can lead to issues when performing calculations in Power Apps.

    To address this issue and calculate the sum of the calculated column correctly, you can use the Round function to round the values to a reasonable number of decimal places before performing the sum. Here's how you can adjust your formula:

     

    Text(
     Sum(
     Inventaire,
     Round(Value(TotalValue), 2) // Adjust the decimal places as needed
     )
    )

     

     

    In this formula, the Round function is used to round the values in the TotalValue column to two decimal places before performing the sum. You can adjust the decimal places according to your needs.

    By rounding the values before summing them up, you can avoid precision issues and ensure that the values are properly converted to numbers without causing the conversion error.

  • ProtoSup Profile Picture
    on at

    Thanks a lot for your answer and your help @AndrewR1 ! 

    Here is a screenshot with your formula : 

    ProtoSup_0-1693382692934.png

    another idea ? 

  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @ProtoSup,

    You can set type of the Calculated column as number.

    vmingkzmsft_0-1693382895271.png

    And you do not need to use Value function to convert the value.

     

    Sum(Test1,multi)

     

    Note that Test1 is my SharePoint list name.

     

    Best Regards,

    Kyrie

     

  • ProtoSup Profile Picture
    on at

    Here is my column configuration, @v-mingkz-msft , @AndrewR1 :

    ProtoSup_0-1693383217546.png

     



    I have again the error 

  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    @ProtoSup 

    Please try

    Sum(Inventaire,TotalValue)
  • ProtoSup Profile Picture
    on at

    @v-mingkz-msft , definitely this error... please see my screen 

    ProtoSup_0-1693383803459.png

     

  • AndrewR1 Profile Picture
    1,572 Moderator on at

    Can you try this?

    Sum(Inventaire,Int(TotalValue))
  • ProtoSup Profile Picture
    on at

    Another idea ? 🙏 @AndrewR1 & @v-mingkz-msft 

    ProtoSup_0-1693384707679.png

     

  • AndrewR1 Profile Picture
    1,572 Moderator on at

    Hi @ProtoSup this is something to do with the fact that the 3.750000 is warped in single quotes '3.7500' this should be wrapped in double quotes  "3.7500" maybe try setting the data type back to text and then use the following formula:

     

    Sum(3,Value("3.750000000"))

     

  • ProtoSup Profile Picture
    on at

    Ok sir ! I have a potential issue ! please see my screenshots ! 
    with your formula : 

    ProtoSup_0-1693385675619.png

     After that i try with comma instead of point and it works !

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard