Forum Discussion
Elirot
8 years agoFrequent Visitor
Time difference based on two key columns
Hi guys, I'm strugelling to get the duration in seconds between the minimum CompletedDate and maximum CompletedDate of the same AccountAppId and Team. If you look at the follwoing image of the d...
Elirot
7 years agoFrequent Visitor
Hi Cherie,
For the last week I was working on the solution you've suggested.
Using your firts way to create the group I came out with odd results, i.e. I've got the same Group for different AccountAppId/Team.
Using your second method, trying to create the second column (Column =
SUMX (
FILTER ( Table2, Table2[Index] <= EARLIER ( Table2[Index] ) ),
Table2[Sort]
),
the creation of it doesn't stop, i.e. it is already runs for days...
So, I'm not sure what's wrong with it, but each table has around 1.6M records.
Cheers
Eli
v-cherch-msft
Microsoft Employee
7 years agoHi Elirot
It seems a measure is better than calculated column for your data. Here is the file for your reference.
Group2 =
SUMX (
FILTER ( ALL ( table2 ), Table2[Index] <= MAX ( Table2[Index] ) ),
Table2[Sort]
)Regards,
Cherie