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 / Sum of rows in a gallery
Power Apps
Answered

Sum of rows in a gallery

(0) ShareShare
ReportReport
Posted on by 391

Hey friends! 
I am attempting to get a total of total hours worked in a time tracker app I am creating. As enteries are input, I would like the highlighted numbers to automatically add into a field where I highlighted towards the bottom.

The labels are text labels, and are not currently connected to sharepoint. I will need these times to patch to sharepoint at some point, which is another thing I am struggling with. Anyone have any advice? I am including the screenshot as well as the code I used to get the numbers.

CodyO_0-1709592136379.png

 

Round(
 DateDiff(
 ThisItem.'Time In',
 ThisItem.'Time Out',
 TimeUnit.Minutes
 ) /60,
 2
)

 

TIA

Categories:
I have the same question (0)
  • Verified answer
    EddieE Profile Picture
    4,641 Moderator on at

    @CodyO 

    Try this on label outside your gallery

    Sum( yourGalleryName.AllItems, Value(yourTextLabelName.Text))

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard