Forum Discussion
Anonymous
9 years agoNot applicable
Count purchases after another purchase
Hello everybody, I've got a table like: id | timestamp | uid | tariff_name | 1 16.01.2017 id001 tariff_A 2 16.01.2017 id002 tariff_A 3 17.01.2017 id001 tariff_B 4 18.01....
BetterCallFrank
Resolver IV
9 years agohi Anonymous
you could do a calc column like this
CntLaterPurchases =
CALCULATE(
COUNTROWS(
FILTER(
table,
AND( table[uid] = EARLIER(table[UID]), table[id] > EARLIER(table[id]) )
)
)
)HTH,
Frank