I have a hierarchy of items. Each level of t...

I have a hierarchy of items.

Each level of the hierarchy has a reference number,

which is a Text type column, so for instance 2.5.4.7 or 10.2.4.3

My problem is using these numbers to sort in a table view.

The sort will put a โ€˜10โ€™ before a โ€˜2โ€™ or a โ€˜9โ€™, etc, so

1.5.20.4 10.8.8.4 2.4.21.3

instead of

1.5.20.4 2.4.21.3 10.8.8.4

I couldnโ€™t find anything on this in the documentation or forum.

Does anyone know a way to achieve a โ€˜numericโ€™ sort on โ€˜textโ€™ numbers?

Thx

0 8 595
  • UX
8 REPLIES 8

You could create a number type VC with formula NUMBER(CONCATENATE(SPLIT([ColName],"."))) and sort using that.

One way is NUMBER(INDEX(SPLIT([ColName],"."),1)) and then sort with that number. If you need to sort with the 2nd value as well, you can create another VC with the formula NUMBER(INDEX(SPLIT([ColName],"."),2)) and so on.

Thanks, guys.

Iโ€™ll have a look at both these ideas.

Specialized hierarchical views are whatโ€™s really required. Please vote on it here:

I agree that built-in hierarchical functionality would be great, as my needs were pretty basic. In the end, I achieved the hierarchical functionality with table groupings, which seem to treat a textual โ€˜10โ€™ as greater than a textual โ€˜9โ€™, which kind of solved my problem, but restricted me to displaying data and choices in a certain way. I also used INDEX(SPLIT(โ€ฆ) to pull the numbers (still in textual format) from the hierarchical references (eg, โ€˜4.Building Systems, 1.HVAC System, 3.Environmental Controlโ€™), so I could have purely textual numeric references (eg, โ€˜4.1.3โ€™).

I too do Primavera P6 scheduling.
my contact info is on my website if you ever need anything. steadglobal.com

Thx, Grant. I donโ€™t actually use Primavera, but I appreciate the offer.

I guess a lot of estimating / controls software probably uses the same numerical references huhโ€ฆ

Top Labels in this Space