Hello Ashish,
May be you could refer the following old posts
Period Over Period and Other Date Comparison Calculations (YoY, MoM, YTD, Rolling 90 days, etc) - #78 by Yuval.Shiboli
Hope this helps.
Cheers, Deep