Hello Subhradeep,
As Sateesh said you can Hard-Core the values based on IF condition.
But this will not give exact values in case of Leap-Year.
For any Quarter First day and Last day is fixed. So you can Hard Core and use "DaysBetween" Function. For year you can use Existing Dimension to formulate Date,something like below
Start Date Q1:
= "01/01/" + [Year]
End Date Q1:
= "31/03/" + [Year]
If you use "DaysBetween" on these days it will take care of "Leap Year" Also.
Regards,
Sushil Padhye