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 / Use Sum with decimal n...
Power Apps
Answered

Use Sum with decimal number

(0) ShareShare
ReportReport
Posted on by 34

Hello i have a problem.

 

When I use the sum function on one of my fields the function doesn't take into account decimal numbers.

How can I make my sum function add all numbers and not only integers?

 

For information, the data I want to sum are stored in an excel document.

Categories:
  • eka24 Profile Picture
    20,925 on at

    Please what formula are you using?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Powell4 Profile Picture
    34 on at

    I use this formula : 

     

    Sum(Filter(TEMPS;CodCollab = CollabGalerie.Selected.CodCollab;If(!ActiverBoutonDate;Quand <= DatePicker1.SelectedDate; Quand >= DatePicker2.SelectedDate));Temps)

    It is used to return the total of a column in my table according to various parameters.

    The problem is that the function does not take into account decimal numbers.

     

  • Powell4 Profile Picture
    34 on at

    Someone can help me ?

  • WarrenBelz Profile Picture
    156,754 Most Valuable Professional on at

    Hi @Powell4 ,

    What exactly are you trying to total here? You have the table name and the field name the same.

    Sum(
     Filter(
     TEMPS;
     CodCollab = CollabGalerie.Selected.CodCollab;
    	 If(
     !ActiverBoutonDate;
     Quand <= DatePicker1.SelectedDate; 
     Quand >= DatePicker2.SelectedDate
     )
     );Temps
    )

    What is the name of the Table and what is the name of the field you are trying to total. Also what is the format of the field in your table.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    Powell4 Profile Picture
    34 on at

    Hello @WarrenBelz 

     

    Thank you for your message however I found the solution to my problem. The problem was the excel format of my column, it was not the right one.

  • RikarHV Profile Picture
    12 on at

    Hello @Powell4 ,

     

    Please, can you tell me which format did you use in the excel column? I am having the same problem.

     

    Thanks in advance!

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 Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard