A test block to experiment with building hierarchies from flat files. Pretty messy at the moment.
The flatToHierarchy()
function transforms a flat and wide table into a hierarchy based on a sequence of field names. Adapted from this Stack Overflow answer.
forked from fogonwater‘s block: Building a hierarchy from a flat table
forked from anonymous‘s block: Building a radial hierarchy from a flat table