I had 3 dimentions in a pivot table; I had used rank(sum(Amount)) expression to get rank; but while I am expanding each column of pivot table; rank is splited based on secondary dimention. It should not be splited.
In short, Rank should be based on 1st dimention only, rest of the dimentions should not be considered while ranking.(See the attached image)