A mammogram is done in a number of settings:
As part of routine screening for breast cancer
Due to an abnormality detected on physical assessment of your breasts by yourself or by your doctor