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 / Different Sum() result...
Power Apps
Unanswered

Different Sum() results (Totals) depending on browser language settings

(0) ShareShare
ReportReport
Posted on by 13

Hi everyone, 

I'm facing a very weird problem.

 

Problem:

I want to build a total for a specific SharePoint list column (calulated based on other columns).

When my browser language settings are set to English, everything works fine. But when I change the browser language settings to German, the formula gets messed up and returns wrong values. 

 

Tech Stuff

My formula: Text(Sum(Source; 'Gesamt'); "#,###.00 €"; "de-De")

Result with English Browser Settings (correct): 1.124.572,61 €

Result with German Browser Settings (not corrcet): 99.300.030.550.000.000,00 €

 

SharePoint Column 'Gesamt' (Calculated): =Menge*Preis

SharePoint Column 'Menge' (Text)

SharePoint Column 'Preis' (Currency)

 

The SharePoint calculation for 'Menge' works fine. 

 

Wild guessing:

I know that in SharePoint Online it is not possibly by default to build a total for a calculated column so I expected some problems...

 

My guess is that SharePoint returns the values differently depending on the language setting and messes up the commas and periods in German, for example.

 

So is there any way to "convert" the values or tell Power Apps how to handle / sum the values?
Do you have any ideas?


Thanks in advance 🙂

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi! I'm currently facing the same problem. I'm wondering if you ever managed to find a solution for this?

  • JatinSaini Profile Picture
    428 on at

    It appears that the issue you are facing is related to the way numbers are formatted in different language settings, leading to incorrect results in your Power Apps formula when the browser language settings are set to German. The problem lies in the way the numbers are represented with commas and periods in different locales.

    When the browser language is set to English, the numbers are formatted with periods as decimal separators and commas as thousand separators, which is the standard English representation. However, when the browser language is set to German, the format changes to use commas as decimal separators and periods as thousand separators.

    To address this problem and ensure consistent results in your Power Apps formula, you can modify the formula to take into account the different number representations in different language settings. One way to do this is by using the Replace function to replace the commas and periods with the appropriate characters.

    Here's a modified version of your formula that should work with both English and German language settings:

     

     

     

     

    Text(
     Sum(
     Source;
     Value(
     Replace(
     Replace(
     'Gesamt';
     "."; // Replace periods with empty string
     ""
     );
     ","; // Replace commas with periods
     "."
     )
     )
     );
     "#,###.00 €";
     "de-De"
    )

     

     

     

    This modified formula uses the Replace function to first remove periods and then replaces commas with periods to ensure that the numbers are consistently formatted with periods as decimal separators and commas as thousand separators.

    By applying this modification, your formula should provide correct results regardless of the browser's language settings.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard