Forum Discussion

Giavo's avatar
Giavo
Helper III
8 years ago
Solved

DATEDIFF between Rows and GROUP BY

Hello everybody. 2 DAX Questions about DATEDIFF.

1)I need to find the difference in minutes between the rows of "DateTime" column

2)I need to find the difference in minutes between the rows of "DateTime" column GROUPING BY "IWC Number"

 

Can you please help me with DAX ?

  • here is the output i see on my end from your data

21 Replies

  • when you said difference, you mean difference in minute from current row datetime to previous row datetime

    • Giavo's avatar
      Giavo
      Helper III

      Yes exactly, difference(in minutes) between row and row+1(i guess i should use DATEDIFF but i can't obtain the correct result. 

       

    • Giavo's avatar
      Giavo
      Helper III

      after having the first formula (datediff between row and row+1), i would like to see if i can sum this Minutes(datediff) for each "IWC Number". thanks

      • parry2k's avatar
        parry2k
        Super User

        do you mean difference between row and (row -1), not row + 1

  • Anonymous's avatar
    Anonymous
    Not applicable

    This is not helpful at all. Who approved this?