Previous year up to a certain date

This video describes how to compute previous year values up to a certain date in DAX and Power BI.
This technique is useful in case the data is presenting incomplete months or years.