Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Avarage for Dates,

Guys, I have a table like that and the only thing i need is to make a chart when the time will be showed as avarege of each ID like we do in e.xcel

 

Data i have

IDTIME
A1207:00:00
A1307:40:00
A1207:30:00
A1507:15:00
A1608:12:00
A1707:17:00
A1208:06:00
A1607:24:00
A1308:09:00
A1608:21:00
A1308:13:00

 

what I want :  

 

id                avg

A1207:32:00
A1308:00:40
A1507:15:00
A1607:59:00
A1707:17:00
  • Hi Anonymous 

     

    You can try this Measure, just make sure you format the to "HH:mm:ss" as highlighted below.

    CONVERT() is a new function introduced in sep - 2019 release. 

    Measure = CONVERT( AVERAGE( 'Table'[TIME] ), DATETIME )  

    Or try the below, however, the FORMAT() function will return text instead.

     

    Measure 2 = FORMAT( AVERAGE( 'Table'[TIME] ), "HH:mm:ss" )

     

     

    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.

    Please feel free to connect with me.
    Mariusz Repczynski

     

     

     

1 Reply

  • Mariusz's avatar
    Mariusz
    Community Champion

    Hi Anonymous 

     

    You can try this Measure, just make sure you format the to "HH:mm:ss" as highlighted below.

    CONVERT() is a new function introduced in sep - 2019 release. 

    Measure = CONVERT( AVERAGE( 'Table'[TIME] ), DATETIME )  

    Or try the below, however, the FORMAT() function will return text instead.

     

    Measure 2 = FORMAT( AVERAGE( 'Table'[TIME] ), "HH:mm:ss" )

     

     

    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.

    Please feel free to connect with me.
    Mariusz Repczynski