Skip to main content
Solved

Hello, Within my workbench I need to obtain the values from a cell in the row above. But first I need to do some form of grouping and sorting to make sure I get the right values. Can anyone help me with how I can do this? Thank you!


Forum|alt.badge.img

The data I have looks like the table shown in the appendix 'Current format'. I want to come to the result shown in the appendix 'Needed result'.

 

So I need some form of grouping based on the ID column. And also a sorting based on the BOTTOM_DEPTH or based on the DBK column.

Within each group, the first row needs to get a top depth of zero. All following rows need to get the BOTTOM_DEPTH value of the row above.

Best answer by ebygomm

Once you have sorted into the correct order, you can use the Adjacent Feature option in an Attribute Creator with a conditional statement to get the correct values. If the ID does not match the ID of the feature above, set the TOP_DEPTH to 0, otherwise set it to the bottom depth of the previous feature (feature[-1])

Capture

View original
Did this help you find an answer to your question?

2 replies

ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • Best Answer
  • October 26, 2020

Once you have sorted into the correct order, you can use the Adjacent Feature option in an Attribute Creator with a conditional statement to get the correct values. If the ID does not match the ID of the feature above, set the TOP_DEPTH to 0, otherwise set it to the bottom depth of the previous feature (feature[-1])

Capture


Forum|alt.badge.img
  • Author
  • October 26, 2020
ebygomm wrote:

Once you have sorted into the correct order, you can use the Adjacent Feature option in an Attribute Creator with a conditional statement to get the correct values. If the ID does not match the ID of the feature above, set the TOP_DEPTH to 0, otherwise set it to the bottom depth of the previous feature (feature[-1])

Capture

Thank you for the quick reply @ebygomm​! It indeed gives me the result I need :-)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings