@AlejandroGomez The solution provided by you was for a flat list, and what we have is a hierarchical list; as mentioned below. Here, this is the source module which has the dimensionality as mentioned with the first 2 columns representing the hierarchy. This is the target module in which the first 2 columns represent the hierarchy. The 1st column is another hierarchy that roll up to P2 level. This is the expected data in the target module.
... View more