Forum Discussion

rolfstar's avatar
rolfstar
Frequent Visitor
7 years ago
Solved

Average Time in chart

Hello!  I have raw data like this     https://dropmefiles.com/p7Mqd     so first i'm trying to get min and max time by measeres per day  1) Measure MinTime = MINX(SUMMARIZE(raw;[Date];[T...
  • HotChilli's avatar
    HotChilli
    7 years ago

    Hi,  I've just had a look at your pbix.

    The Duration column won't chart properly because it doesn't have the correct datatype.  It is set as Time which is not correct, it needs to be a decimal or whole number.  That means the calculation of Duration needs to change.  Use DATEDIFF and decide which units you want (HOURS, MINUTES or SECONDS).

    You will then be able to chart Date against Average Duration.   You might have to write a measure to alter the average calculation because powerbi will not throw away the line with 0 duration.