Earlier: We used to show whatever is there in the Level05 as MappingCode in the Dimension of a chart.
Now: I would like to show the last value in between the levels(Level01-Level05).
if the value in the Level05(Refer row=1) is X5 that should be considered as MappingCode.
For the 2nd row as Level05 is NULL we will consider Y4 as the MappingCode. For the 3rd row as we dont have any values in the Level05 and Level04 we will consider Z3 as MappingCode which is there in Level03. For the 4th row as we dont have any value from Level02-Level05 we will consider A1 as the value for MappingCode. For the 5th row as dont have value for Level03-Level05 we will consider B2 as the value for MappingCode.
Please let me know how can manage this in the dimension of a chart.