For Quarter calculation, we are doing as below. we are basically doing average for each month.
If the Quarter is a completed Quarter, we divide it by 3. If Quarter is current Qtr then for first month of Qtr say it is Apr then Sum(Apr), When we enter May, it is (Apr+May)/2, for Jun (Apr+May+Jun)/3. I have done by creating a variable as below and used in expression.