Hi Alterxy Gurus
This is the first time I am posting a question here so apology in advance if I am making any mistake and missed any community rules
Requirement :
I am having two Data set which I am using to get the desired header
First Dataset - Actual Data
Second Dataset- Mapping Table

My first Dataset is having incorrect Hierarchy heading which I need to modify based on my mapping Table but I couldnt able to get the expected output. Can someone please help me with your expertise.
Attaching the sample data for your reference.
Note : (Office Environment )I am using the Alteryx 2018.3
(Personal PC)I am using the Alteryx 2019.3
FYI.. I was able to get my desired output but the workflow is not effective as per my understanding. In my real time scenario, I have roughly around 70 columns and data-set has 40 million rows of data which is taking quite a long time to execute the workflow.

Thanks in Advance,
Rajeev