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 / Show Total of Contents...
Power Apps
Answered

Show Total of Contents in Fields in a Row in Total Field at End of Row

(0) ShareShare
ReportReport
Posted on by 5,345 Moderator

I need to tally a row of fields into a 'Total' field. I can grab the first in the row and replicate in the 'Total' but my attempt to 'Sum', or add the all together, isn't working. What am I missing?

 

Phineas_0-1701105548814.png

Phineas_2-1701106126861.png

 

 

Categories:
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @Phineas 

     

    You need to convert these text values into numbers before summing them. You can use the Value function to convert text to numbers.

     

    Value(Label10.Text) + Value(Label10_1.Text)

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • Phineas Profile Picture
    5,345 Moderator on at

    Same result of '0', should be '8:00'.

    Phineas_0-1701110560687.png

     

  • Verified answer
    Phineas Profile Picture
    5,345 Moderator on at

    Got it, (courtesy of a previous conversation with @WarrenBelz)
    With(
    {
    _Time_1:
    Value(
            First(
                   Split(
                          Label10.Text,
                   ":"
               )
               ).Value
               ) +
                 Value(
                 Last( 
                     Split(
                          Label10.Text,
              ":"
            )
                 ).Value / 60
           ),
                _Time_2:
                Value(
                     First(
                          Split(
                              Label10_1.Text,
                ":"
             )
                       ).Value
                       ) +
                        Value(
                  Last(
                         Split(
                              Label10_1.Text,
               ":" 
           )
                  ).Value / 60
          )
    },
    With(
           {
               _Hours: 
                        Sum(
                             _Time_1 + _Time_2,
              0
             )
          },
                 Text(_Hours) &
                 ":" &
                 Text(
                      Mod(
                         (_Time_1 + _Time_2),
                 _Hours
                            ) * 60,
                    "00"
           )
    )
    )

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 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard