I have a feeling that ??? comes up when there is no direct flight between old and new destination. I just tried a couple of pairs that I asked the agent about and every time that there is a nonstop flight between the two, Qatar's system returned the distance.