Jump to content

I'm trying to figure out how to create a calculated column based on an over function. I can do this using AllPrevious([DATE]), but how do I do this before a specific date (1/4/2023)?


Anthony Giambalvo

Recommended Posts

you could set up your calculated column as (use whatever date format you have for the specific date)

case when DateDiff('day',Date('01/04/2023'),[DATE])<=0 thenSum([AVG_GAS_RATE_MCFD]) OVER (Intersect([WELL_NME],AllPrevious([DATE])))end

but this effectively means truncating the value at the specified date and having null values after that. Is this what you had in mind?

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...