Forum Discussion
Gap Time for One Column Timestamp
- 6 years ago
Not exact, but try.
diff = datediff(table[Fecha del evento],max(filter(table,table[hour] =earlier(table[hour]) && table[TimeStamp] < earlier(table[TimeStamp]) && table[Evento] = "BAJA-DEFINITIVA"),table[TimeStamp]),MINUTE) OR diff = datediff(table[Fecha del evento],max(filter(table,table[hour] =earlier(table[hour]) && table[ID] < earlier(table[ID]-1) && table[Evento] = "BAJA-DEFINITIVA"),table[TimeStamp]),MINUTE)Change as per need
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
Not exact, but try.
diff =
datediff(table[Fecha del evento],max(filter(table,table[hour] =earlier(table[hour]) && table[TimeStamp] < earlier(table[TimeStamp])
&& table[Evento] = "BAJA-DEFINITIVA"),table[TimeStamp]),MINUTE)
OR
diff =
datediff(table[Fecha del evento],max(filter(table,table[hour] =earlier(table[hour]) && table[ID] < earlier(table[ID]-1)
&& table[Evento] = "BAJA-DEFINITIVA"),table[TimeStamp]),MINUTE)
Change as per need
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin