It can be a challenge to balance the desire to get along with the desire to get ahead. Getting along suggests being flexible, being sensitive to what others want from you. Getting ahead suggests being focused, being less sensitive to others and more to your own values.
Is there a trick here? There is to a certain degree. One needs to be both, but in different arenas. Getting along is important. But one can be sensitive to others without being dominated by them. Getting ahead is important. But getting ahead does not mean succeeding at the expense of others.
There are ways to see this more clearly, Carina Strom Clark suggests being a “peaceful warrior”. I like that. In other words, never fight with people. The flip side is that one always is fighting for values.