Thanks for the great reply. Yes it helps!
Just a side note, do you know how to make the color codes stay only on this worksheet. For example, when I go to another worksheet to do another analysis, Sale and Cost and Sale GP will have different color codes?
Once you assign a color to any measure, same color will be repeated in other worksheets also. Its inbuilt feature of tableau. To avoid that you need to duplicate the measure and use it in other worksheet. Then you can use different color for those duplicate measures.
Hope this help.
You're welcome Kelvin!