Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Splitting table rows from value

Hello,   I need to calculate the duration between Events for each particular user working in a specific file in a datasource that contains info from multiple users. Sample table below.   The goal...
  • amitchandak's avatar
    amitchandak
    6 years ago

    Try

    DateDiff = 'view-activated collected'[DateTime] - MINX(FILTER('view-activated collected',
    					'view-activated collected'[DocPath] = EARLIER('view-activated collected'[DocPath]) 
    				&& 'view-activated collected'[Username] = EARLIER('view-activated collected'[Username]) 
    				&& 'view-activated collected'[DateTime] > EARLIER('view-activated collected'[DateTime])
    				),'view-activated collected'[DateTime])