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 / Error when using Text ...
Power Apps
Answered

Error when using Text formula with Average result to give "hh:mm:ss" format

(0) ShareShare
ReportReport
Posted on by 7

Hi everyone! 

 

I have some type of error with try to give a "hh:mm:ss" to an Average result. 

This is the formula: 

Text(Average(
Filter(
'Archivo - Ciclos Repo';CLA_Tienda=HC_Tienda;CLA_Ciclo=Contract_5.Selected.Value;CLA_Inicio>DateAdd(Today();-5));CLA_Duración);"hh:mm:ss")

 

The average result is a number like this 0,00021412 (this number represent the difference between to date/times ).

theretrosurf_0-1611170436984.png

But, when i try with Text, the result is't correct. The correct result should be 00:00:18.

theretrosurf_1-1611170526061.png

 

Could someone help me? 

 

Thanks! 

 

 

 

 

Categories:
  • Verified answer
    theretrosurf Profile Picture
    7 on at

    I had to solve this error with this steps:

    First, i had to set a variable to give the average result:

    Set(durproms;Average(Filter('Archivo - Ciclos Repo';CLA_Tienda=HC_Tienda;CLA_Ciclo=Contract_5.Selected.Value;CLA_Inicio>Today();If(Contract_6.Selected.Value="Todos";true;CLA_Tipo=Contract_6.Selected.Value));CLA_Duración)

    Then, create the number using conversions factors. 

    Text(Time(Round(durproms*24;0);Abs(Round(durproms*24;0)*60-Round(durproms*24*60;0));Abs(Round(durproms*24*60;0)*60-Round(durproms*24*60*60;0));Abs(Round(durproms*24*60*60;0)*1000-Round(durproms*24*60*60*1000;0)));"[$-es-ES]hh:mm:ss.fff")

     

    Are there any more aesthetics solution?

     

    Thanks!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard