Hi All,
I need to do a calculation for Column Z,
Z = X- MAX(Y) by the characteristic Region
Region | Store | X | Y | Z |
East | 23 | 0.45 | 1000 | |
East | 15 | 0.5 | 2000 | |
East | 45 | 0.61 | 3000 | |
East | 65 | 0.84 | 4000 | |
East | 32 | 0.35 | 5000 | |
West | 49 | 0.45 | 4500 | |
West | 52 | 0.5 | 3000 | |
West | 48 | 0.61 | 6500 | |
West | 95 | 0.84 | 4500 | |
West | 62 | 0.35 | 2300 |
i.e., For the first record Z = 0.45 - 5000 = 4999.55
and the first record in region West Z = 0.45 - 6500 = 6499.55
My issue is I could get the formula right if I have Store in that table but I don't want Store, I want to show it by Region level.
In a particular region which store has a max value Y.
Please suggest any ideas.
Thanks,
Gokul