This is do-able, but how to make it work depends a lot on how your source data is structured. If you want to do this with multiple measures, then it would be easiest if your source data was unpivoted, like the first example below.
I wrote out a bunch of relative time period calculations in my first reply of this thread:Relative Dates Filters as Dimension. One of these might get you started.
If you can put together sample data in a .twbx that represents how your source data is structured, I can give more specific help with your data.
All the best,