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 / Division by zero error
Power Apps
Answered

Division by zero error

(0) ShareShare
ReportReport
Posted on by 98

I'm having a division by zero error where it doesn't show the result I need.

With(
 {
 _Hours:
 RoundDown(
 ThisItem.'Quantidade de horas';
 0
 )
 };
 Text(_Hours; "00") & ":" & 
 Text(
 Round(
 Mod(
 ThisItem.'Quantidade de horas';
 _Hours
 ) *60;
 2
 );
 "00"
 )
)
Categories:
I have the same question (0)
  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    I //THINK// that might resolve it, let me know

    With(
     {
     _Hours:
     RoundDown(
     ThisItem.'Quantidade de horas';
     0
     )
     };
     Text(_Hours; "00") & ":" & 
     Text(
     IfError(Round(
     Mod(
     ThisItem.'Quantidade de horas';
     _Hours
     ); 0) *60;
     2
     );
     "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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard