Jump to content

I am trying to create a cumulative sum on a line plot


Meghan Whipple

Recommended Posts

I know you have to make the X Axis categorical in order for a cum sum function to work on a line plot, but then I can't plot lines from Column values. And I have to have a Line from Column value for type curve reasons. So how would I write the Y Axis function to create a cumulative sum plot I want it to sum the average of numerous wells' oil volumes by month. I have the below, but the sum is coming out too large and I don't know why. Any help would be greatly appreciated.

Sum(Avg([Oil TC BOPM])) over (Intersect(AllPrevious([MonthsProducing]),[API])) / 1000 / (Count([MonthsProducing]) OVER (Intersect([API])) / UniqueCount([MonthsProducing]) OVER (Intersect([API])))

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