Forum Discussion
sagivh
6 years agoMicrosoft Employee
Aggregate text events with time difference
Hello, I am trying to aggregate events and cannot find the right method to do so. I have a data similar to this, its basiclaly a list of events with either error or succcess, a timestamp and a un...
- 6 years ago
Hi sagivh
try new table
Table = ADDCOLUMNS(summarize('Query';'Query'[User];"Lastevent";LASTNONBLANK('Query'[Event];1);"LastDate";LASTNONBLANK('Query'[Date];1));"diff";if([Lastevent]="success";DATEDIFF(FIRSTNONBLANK('Query'[Date];1);[LastDate];DAY);0))do not hesitate to give a kudo to useful posts and mark solutions as solution