Ive got several hierarchical parent-child relationships (e.g. company->country->region-> ... ) which are available as a CSVs.
Values (e.g. Sales figures) are provided on the node (lowest) level (e.g. on company), but I need to perform calculations on all levels (country, region etc).
I have not been able to find any kind of guidance on how to model this the best way. I have seen Ravindara's post Flattening the hierarchy using SQL code, but is this (still) the right approach?