Forum Discussion

kahuna965's avatar
kahuna965
Frequent Visitor
3 years ago
Solved

Attain total hours based on single time column and unique values in other columns

I have a unique data source that provides start date/time, and end date/time in a single column. Another column simply writes a start or end value.  I would like to be able to write a function or dax...
  • kahuna965's avatar
    3 years ago

    For the sake of closing the post, I was able to solve this problem in a different manner.  I was able to get the filter suggested in the post to work for a smaller data set.   Once the set grew it would not solve.  My guess was that times repeated and it broke the filter.  Merging date/times and using this field in teh filter would also not work for some reason on larger data sets.

     

    Using the "Group By" function in power query allowed the creation of two new columns (max time and min time).  From there creating a duration/decimal hours was pretty simple.   

     

    That section of code looked like this