Jump to content

How to calculate an average, for an account across certain dates only


Anna Gleboff

Recommended Posts

I have multiple columns: Example: Score, AccountID, RecordedDate, EventDate

 

I would like to calculate the average score, for each accout, across RecordedDate upto and including the Event Date

 

So for example

 

 

 

AccountID

Recorded Date

Score

Event Date

 

 

100

1/1/2019

4

1/3/2019

 

 

100

1/2/2019

8

1/3/2019

 

 

100

1/3/2019

16

1/3/2019

 

 

200

1/1/2019

5

1/1/2019

 

 

200

1/2/2019

19

1/1/2019

 

 

 

Average for AccountID 100= 9.33

Average for AccountID 200= 5

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...