Get PTD (Period To Date) and YTD (Year to Date) Values.
Hi,
I'm trying to get the correct PTD & YTD values from APPS but am getting wrong results to what is in Oracle. In the below the MONTH_BUDGET is the PTD column and YTD_Budget is the YTD column.
In Oracle the first row below has a PTD of 0 and YTD of 0. The second row has a PTD of 125 and YTD of 125, which is a mix below.
This is the select I have for both columns...
NVL(gjl.line_entered_dr,0) as Month_Actual,
sum(glb.PROJECT_TO_DATE_CR) as ytd_actual,
gjl is the gl_je_lines table and glb is gl_balanceS.