Forum Discussion

160475's avatar
160475
Helper I
4 years ago
Solved

Count earliest time

dears,

 

good day!! 

i have a table that has a column called time_commet and i would like to count only earliest time for each employee how can i do that ?? 

  • Hi 160475 ,

     

    Please try some formulas like the following:

    earliest time =
    CALCULATE (
        MIN ( 'table'[time_comment] ),
        FILTER ( 'table', [employee] = EARLIER ( 'table'[employee] ) )
    )
    

     

    measure:

    earliest time =
    CALCULATE (
        MIN ( 'table'[time_comment] ),
        FILTER ( 'table', [employee] = SELECTEDVALUE ( 'table'[employee] ) )
    )
    

     

    If this does not work, please share some example data and expect result.

     

    Best Regards

    Community Support Team _ chenwu zhu

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

2 Replies