How to align dimensions

Hi guys, I was trying to align the dimension as shown below but got problem doing it. I tried using "align to edge" command but I was not able to get the correct alignment as the 50mm.

Any tips? Thanks in advance!

SolidworksDrawings And Detailing