Let me show one way to use a parameter to create the view you are looking.
For this example I'm using Sample-Superstore Dataset I added more rows with 2018 data so we can have TODAY() values
The parameter looks like this
Now every time you select an element in this parameter you are specifying 2 periods a "Period to Show" and a "Period to Compare"
Here are my calculations to show quantities sold for each period selected
NOTE: You might want to play in the Quarter and Year part you could use days if that makes more sense to you, this is for simplifying
NOTE: TODAY() is an inclusive date.
Bar represents the period to show(including today) Line, represent period to compare(Same period back)
Attached .twbx file for reference ( Ver 10.5)
Let me know if this helps!
Book1.twbx 1.5 MB