Forum Discussion
Time difference based on two key columns
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
Hi 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
- Elirot7 years agoFrequent Visitor
Hi Cherie,
Well, I've tried with the measure as well, but unfortunately got an error message - lack of resources (see image), even if I filter it down only to the current year.
Thanks
Eli
- v-cherch-msft7 years agoMicrosoft Employee
Hi Elirot
I've forgot your data is large. I would appreciated it if you could share your sample file which could reproduce your scenario.
Regards,
Cherie