By default, the dimension tool will automatically measure the perpendicular distance between two selected elements (for example, between a point and an edge). If you want the measurement to be made between the two points you have clicked, you can press SHIFT when you choose the starting point of your measurement.
