Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Average time, not earliest or latest

We have an Time column, wich has information about how long user took to interate with our interface, the problem, is that when I put this value on Matrix table, on values, it's not possible to selec...
  • alanhodgson's avatar
    alanhodgson
    9 years ago

    Anonymous,

     

    It is because the data type is Time. PBI can not take the average of a time value.

     

    Does the data in the column need to be Time (like 12:32pm) or does it just represent the minutes that users interacted? In which case the data type can be a number type and you can take the average of that.

     

    Best,

     

    Alan

  • alanhodgson's avatar
    alanhodgson
    9 years ago

    TomEvers2,

     

    Great observation! I was trying to figure out what it was going off of.

     

    Anonymous you can use the simple DAX formula below to create a new calculated column to convert the current decimal column (0.020262458) back to minutes:

     

    ='Table'[Column] * 1440

     

     

    1440 just represents the number of minutes in a day.

     

    Best,

     

    Alan