Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to calculate YTD for current Year and YTD Month Ago for Current Year

User_F4K7GAug 26 2021 — edited Aug 26 2021

Hello,
I am showing Year, Month and Customer Counts in report. My requirement is to calculate Current year YTD and Current YTD Month Ago and get the difference or growth on these measures. So I am using
TODATE(Customer Counts, Dimension Date.Dim Date.Year)
for current YTD which is giving intended results. Now I want to calculate YTD month ago for same year and I am using
AGO(TODATE(Customer Counts, Dimension Date.Dim Date.Year), Dimension Date.Dim Date.Month, 1)
which is giving error of [nQSError: 22044] Nesting of AGO or TODATE functions with differing level arguments is not supported.
How to achieve this calculation.
Help would be appreciated.
Thank you.

This post has been answered by User_F4K7G on Aug 26 2021
Jump to Answer
Comments