Skip to main content

Hello All,

 

I have a requirement to calculate current year quarter comparison with the exact last year quarter ( ex: 2019Q2- 2020Q2).

 

Picture is for reference-

 

Comparison between Last Year Quarter to Current Year Quarter

 

Regards

답변 4개
  1. 2020년 6월 4일 오후 5:37

    Try this,

    For current year  if {FIXED: MAX(QUATER([Date]))} = QUarter([Date]) AND

    AND YEAR([DATE])= {FIXED : MAX(YEAR([DATE])) THEN [PROFIT] END

     

    For previous year

    if {FIXED: MAX(QUATER([Date]))} = QUarter([Date]) AND

    AND YEAR([DATE])= {FIXED : MAX(YEAR([DATE]))}-1 THEN [PROFIT] END

     

    For Growth, just do

    (Current-previous)/(Current+ previous) then format to percentage

     

    Alternative, you can make use of table calculation by using LOOKUP function

     

    Mark as helpful if this helps.

0/9000