How to create a YoY Aging report

Hello, 

 

Our company is looking to create a comparison of our A/R aging this year to last. As of now, we have the following beast mode to show this year, current. Is there a way to get another column in the report for comparison to last year?

 

(CASE  WHEN (DATEDIFF(CURRENT_DATE(),`Due Date`) <= 0) THEN '*Current' WHEN ((DATEDIFF(CURRENT_DATE(),`Due Date`) > 0) AND (DATEDIFF(CURRENT_DATE(),`Due Date`) < 31)) THEN '1 - 30 days' WHEN ((DATEDIFF(CURRENT_DATE(),`Due Date`) > 30) AND (DATEDIFF(CURRENT_DATE(),`Due Date`) < 61)) THEN '31 – 60 days' WHEN ((DATEDIFF(CURRENT_DATE(),`Due Date`) > 60) AND (DATEDIFF(CURRENT_DATE(),`Due Date`) < 91)) THEN '61 – 90 days' WHEN (DATEDIFF(CURRENT_DATE(),`Due Date`) > 90) THEN '90+ days' END )

Comments

This discussion has been closed.