John Brand Posted September 27, 2023 Share Posted September 27, 2023 I need to recreate this example chart using my own data. The Y axis will represent the average monthly production for a group of wells for each company A, B, and C. The X axis represents the cumulative production for those groups of said wells for companies A, B, and C. I am able to get the Y axis set up, but I'm having trouble with the X axis. I have a production data table where each record stores 1 month of production per well Link to comment Share on other sites More sharing options...
Gaia Paolini Posted September 27, 2023 Share Posted September 27, 2023 Maybe something likeSum([production]) over (Intersect([well],[company],AllPrevious([month]))) Link to comment Share on other sites More sharing options...
John Brand Posted September 27, 2023 Author Share Posted September 27, 2023 After selecting multiple wells from different operators from a map chart and using the expression above, the chart only shows two points Link to comment Share on other sites More sharing options...
John Brand Posted September 27, 2023 Author Share Posted September 27, 2023 The chart I'm looking for needs to look something like this. In this example though, I used 'months on' along the x axis which I don't want to use for my study Link to comment Share on other sites More sharing options...
Gaia Paolini Posted September 27, 2023 Share Posted September 27, 2023 can you share a sample dataset/dxp? Link to comment Share on other sites More sharing options...
John Brand Posted September 28, 2023 Author Share Posted September 28, 2023 See the chart on page 2 Link to comment Share on other sites More sharing options...
Gaia Paolini Posted September 29, 2023 Share Posted September 29, 2023 At first glance, your data depends on Farm not just Client, so that is why your lines are going up and down.If I Line By Farm as well, I get better lines. Does this solve the problem? Link to comment Share on other sites More sharing options...
John Brand Posted October 2, 2023 Author Share Posted October 2, 2023 not quite. In your image, I need there to be only 1 red line and 1 blue line representing the data on the x/y axes Link to comment Share on other sites More sharing options...
Gaia Paolini Posted October 3, 2023 Share Posted October 3, 2023 Looking at the data, [PERMIT_NUM] has the same granularity as [FARM] (there is one [PERMIT_NUM] per [FARM], whereas each client has 7 different values of [PErMIT_NUM]. When you are averaging or summing OVER something, you are actually averaging/summing for each distinct value of that quantity (maybe a bit counter-intuitive). So your X axis was calculating the sum for each [PERMIT_NUM] i.e. for each [FARM], but you said you want to have the values by [CLIENT] and average out the [FARM] (or [PERMIT_NUM]).In terms of the Y axis, I used the average of [GAS_QUANTITY]: since your line is by [CLIENT] this would average out the [FARM].So I set:X axis was <Sum([GAS_QUANTITY]) over (Intersect([CLIENT],AllPrevious([PRODUCTION_DATE]))) / 1000000>Y axis was Avg([GAS_QUANTITY])Line by and color by was [CLIENT] I got this plot Link to comment Share on other sites More sharing options...
John Brand Posted October 5, 2023 Author Share Posted October 5, 2023 Thank you. I am seeing the same results in the sample data that I sent you. However, in my full dataset (same data structure as the sample I sent you but different field names and many more records) I am seeing this result. Any idea why that might be happening? Link to comment Share on other sites More sharing options...
Gaia Paolini Posted October 6, 2023 Share Posted October 6, 2023 without seeing the actual column structure and axis definition, I am not sure. Different clients do start from different production dates. This is hidden by the cumulative sum but perhaps something else is now bringing it to the fore. I see from the truncated label on the Y axis that you are dividing by another column. Could it have something to do with it? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now