Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
how to calculate the time difference between two consecutive rows (current row - previous row) in a Column data
COLLECTION DTM In sample data.
Thereafter i want to check whether the difference in timing less than one minute. IF its less than one minute then 1 otherwise 0
Note: I have 20 lakh rows of data. I want a solution which will fit the data size.
HI @Kumshan450
If you add the following calculated column to your table, it will show the number of seconds between the current and previous row, which you can then use in an IF statement to
Seconds Diff =
VAR StateName = '2018'[State Name]
VAR BranchName = '2018'[Branch Name]
VAR CurrentCollectionDTM = '2018'[Collection DTM]
VAR PreviousCollecitonDTM =
MAXX(
FILTER(
'2018',
'2018'[State Name] = StateName &&
'2018'[Branch Name] = BranchName &&
'2018'[Collection DTM] < CurrentCollectionDTM
),
'2018'[Collection DTM]
)
RETURN IF( DATEDIFF(PreviousCollecitonDTM,CurrentCollectionDTM,SECOND)<60,1,0)
Hi, Its unable to handle large volume of data.
How many rows in your data table?
I have 20 lakh rows of data
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 34 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 66 | |
| 64 | |
| 31 | |
| 26 | |
| 26 |