Comparing with previous selected time period in DAX

This video describes how you can create a comparison with the previous time period in a visualization, regardless of whether the time periods are consecutive or not.