Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm trying to sum the quantity of based on the most recent activity. For example using the chart below sum the qty for each campaign based on the highest "purchased period" only.
Campaign Purchase period Qty
A 30 10
A 30 5
B 30 20
B 60 30
C 30 20
C 60 30
C 90 40
Answer should be:
A = 15
B = 30
C = 40
=Sum(Aggr(If([Purchase Period] = Max(TOTAL <Campaign> [Purchase Period]), Sum(Qty)), Campaign, [Purchase Period]))
=Sum(Aggr(If([Purchase Period] = Max(TOTAL <Campaign> [Purchase Period]), Sum(Qty)), Campaign, [Purchase Period]))
Thank you!