I have a following data
I want to create the Index Level as shown in last column based on Region, Country, Store Type and Location column. So Region column will have its own serial number for each new region i.e. 'APAC is 1 and then EMEA will be 2' similarly its same for other columns(Country, Store Type, Location). I have tried to use partition to get the result but i am not able to get desired results.
