Also can we create time hierarchy on this data ? for two levels only Quarter and Year and then use time series function.
That in itself is the whole answer to your question. You need properly configured time dimensions - so "Time" = TRUE and valid chronological keys for all levels.
As soon as you have that all the time series functionalities are at your disposal. Including AGO which will allow you to do "Quarter AGO" measures on the quarter level of your time hierarchy.
For a quick fix you can use below. It is always better to configure at RPD level.
for Previous quarter end date.
for year start date
Apply a filter for between clause and use the below with CURRENT_DATE for YTD
timestampadd(SQL_TSI_DAY,(-DAYOFYEAR(Date '2017-03-31'))+1,Date '2017-03-31')