Here is a good video on how to compare different time periods or date ranges in power BI.
One of the best ways is to create comparative table, the user will have the possibility to choose any two time periods and the visuals will show the comparison value.
This videos explins it fully: