Jump to content

How do you calculate an average value based on distinct values in another column

Andrea Thompson

Recommended Posts

Hi All,


In my data I have mulitple entities, with multiple rows of data, identified by "NUMBER" column. For each entity, I have two MD perforation values, Perforatoin Min and Perforation Max, that I need to use to calculate the average TVD value for all rows that fall between the Perforation Min and Max values on the MD column. I have written this line:

Column Name: TVD_Effective If(([MD]>=[Perforation Min]) and ([MD]

  • Like 1
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...