Calculating values across multiple years

Hi,
I have a stored procedure that has 10 rows for each of the last 10 years and about 25 columns for various different values for each given year.
I need to create a report that shows all the values (columns) for only year 3, year 7, and year 10.  My problem is, I have a formula that calculates the value for year 3 that requires information from year 1, and 2.  The formula for year 7 requires information from year 4, 5, and 6 and so on.
I plan to use a crosstab but how can I use values from previous years into the year I am printing in a cross tab?
Can anyone provide any help?
Thanks,
Zack H.

Carl,
This is a very plausible way of doing it.
However, I was thinking more along the lines of storing the values of each field in an array for each year and then call up whatever value I wanted from the array into my calculation.  For instance, the stored procedure returns 10 rows x 25 columns = or 250 field values.  I wanted to create an array say numbervar array_year1, array_year2 and so on.
Then, in my calculation, I can call up whatever value I wanted like array_year2[5]/array_year1[5].
Can this approach be acheived?
Any help would be appreciated.
Thanks again,
Zack

Similar Messages

  • Forecast Roll-Over Script across multiple years

    Hello Experts,
    I currently have the below Script and Prompt but it only works for one Fiscal year and I need help changing it so that it can be used across multiple years, my issue is below:
    If I have project TEST and it started in 2013.011 and ends in 2014.004, I have forecast values for all periods so when I run the script I'm prompted to "select forecast year" and "select forecast version based on previous period"
    So when I run from 2013.11 (forecast version P11) to 2013.12 (forecast version P12) that works fine but it's not working to roll-over from 2013.012 to 2014.001
    Any help is much appreciated.
    Thx,
    Shane
    *****SCRIPT*****
    //%CATEGORY_SET% - contains P9, STARTMNTH = 10, PREVFC=P8
    *SELECT(%SM%,"[STARTMNTH]",F_CATEGORY,"[ID]='%F_CATEGORY_SET%')
    //$YY$ - contain planning year selected by user from DM combobox
    *SELECT(%FCSTMNTH%,"[ID]",TIME,"[ID]>'$YY$.%SM%' AND [YEAR]='$YY$' AND [CALC]='N'")
    *SELECT(%ACTMNTH%,"[ID]",TIME,"[ID]<'$YY$.%SM%' AND [YEAR]='$YY$' AND [CALC]='N'")
    *SELECT(%PF%,"[PREVFCST]",F_CATEGORY,"[ID]='%F_CATEGORY_SET%')
    //To copy FORECAST XX we use
    *XDIM_MEMBERSET F_CATEGORY=%PF%
    *XDIM_MEMBERSET TIME=$YY$.%SM%,%FCSTMNTH%
    *WHEN F_CATEGORY
    *IS *
    *REC(EXPRESSION=%VALUE%,F_CATEGORY=%F_CATEGORY_SET%)
    *ENDWHEN
    //To copy ACTUAL we use
    *XDIM_MEMBERSET F_CATEGORY=ACTUAL
    *XDIM_MEMBERSET TIME=%ACTMNTH%
    *WHEN F_CATEGORY
    *IS *
    *REC(EXPRESSION=%VALUE%,F_CATEGORY=%F_CATEGORY_SET%)
    *ENDWHEN
    *****PROMPT*****
    PROMPT(MESSAGE,"Create Forecast Based on Previous")
    PROMPT(COMBOBOX,%YY%,"Select Forecast Year:",0,,{2014,2015,2016,2017,2018})
    PROMPT(SELECTINPUT,%SELECTION%,,"Select the Forecast Version:","F_CATEGORY")
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SUSER,%USER%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPPSET,%APPSET%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SAPP,%APP%)
    INFO(%EQU%,=)
    INFO(%TAB%,;)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,TAB,%TAB%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,EQU,%EQU%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,SELECTION,%SELECTION%)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,LOGICFILENAME,FORECAST.LGF)
    TASK(/CPMB/DEFAULT_FORMULAS_LOGIC,REPLACEPARAM,YY%EQU%%YY%)

    OK - I'll try explain this another way, I have 2 records for "ACTUALS" in 2013 (this is DEV system)
    1st record - Project A-000001 / 2013.010 for $2000
    2nd record - Project A-000036 / 2013.012 for $5000
    Prompts
    PARAM - YY=2013
    DATA REGION - F_CATEGORY=P12
    Here's the Script:
    //%CATEGORY_SET% - contains P9, STARTMNTH = 10, PREVFC=P8
    *SELECT(%SM%,"[STARTMNTH]",F_CATEGORY,"[ID]='%F_CATEGORY_SET%')
    //$YY$ - contain planning year selected by user from DM combobox
    *SELECT(%FCSTMNTH%,"[ID]",TIME,"[ID]>'$YY$.%SM%' AND [CALC]='N'")
    *SELECT(%ACTMNTH%,"[ID]",TIME,"[ID]<'$YY$.%SM%' AND [YEAR]='$YY$' AND [CALC]='N'")
    *SELECT(%PF%,"[PREVFCST]",F_CATEGORY,"[ID]='%F_CATEGORY_SET%')
    //To copy FORECAST XX we use
    *XDIM_MEMBERSET F_CATEGORY=%PF%
    *XDIM_MEMBERSET TIME=$YY$.%SM%,%FCSTMNTH%
    *WHEN F_CATEGORY
    *IS *
    *REC(EXPRESSION=%VALUE%,F_CATEGORY=%F_CATEGORY_SET%)
    *ENDWHEN
    //To copy ACTUAL we use
    *XDIM_MEMBERSET F_CATEGORY=ACTUAL
    *XDIM_MEMBERSET TIME=%ACTMNTH%
    *WHEN F_CATEGORY
    *IS *
    *REC(EXPRESSION=%VALUE%,F_CATEGORY=%F_CATEGORY_SET%)
    *ENDWHEN
    RESULT
    PLS note that there is only 1 record for "ACTUAL" and that's the 1st record - Project A-000001 / 2013.010 for $2000
    2nd record - Project A-000036 / 2013.012 for $5000 is MISSING
    LGX:
    *XDIM_MEMBERSET F_CATEGORY=P11
    *XDIM_MEMBERSET TIME=2013.012,2014.001,2014.002,2014.003,2014.004,2014.005,2014.006,2014.007,2014.008,2014.009,2014.010,2014.011,2014.012,2015.001,2015.002,2015.003,2015.004,2015.005,2015.006,2015.007,2015.008,2015.009,2015.010,2015.011,2015.012,2016.001,2016.002,2016.003,2016.004,2016.005,2016.006,2016.007,2016.008,2016.009,2016.010,2016.011,2016.012,2017.001,2017.002,2017.003,2017.004,2017.005,2017.006,2017.007,2017.008,2017.009,2017.010,2017.011,2017.012,2018.001,2018.002,2018.003,2018.004,2018.005,2018.006,2018.007,2018.008,2018.009,2018.010,2018.011,2018.012,2019.001,2019.002,2019.003,2019.004,2019.005,2019.006,2019.007,2019.008,2019.009,2019.010,2019.011,2019.012,2020.001,2020.002,2020.003,2020.004,2020.005,2020.006,2020.007,2020.008,2020.009,2020.010,2020.011,2020.012
    *WHEN F_CATEGORY
    *IS *
    *REC(EXPRESSION=%VALUE%,F_CATEGORY=P12)
    *ENDWHEN
    *XDIM_MEMBERSET F_CATEGORY=ACTUAL
    *XDIM_MEMBERSET TIME=2013.001,2013.002,2013.003,2013.004,2013.005,2013.006,2013.007,2013.008,2013.009,2013.010,2013.011
    *WHEN F_CATEGORY
    *IS *
    *REC(EXPRESSION=%VALUE%,F_CATEGORY=P12)
    *ENDWHEN
    LOG:
    LOG BEGIN TIME:2014-03-14 09:36:23
    FILE:\ROOT\WEBFOLDERS\F_COUNCIL \ADMINAPP\Forecasting\TEST.LGF
    USER:096655
    APPSET:F_COUNCIL
    APPLICATION:Forecasting
    [INFO] GET_DIM_LIST(): I_APPL_ID="Forecasting", #dimensions=8
    F_CATEGORY,F_ENTITY,F_PERSON,F_PROJECT,F_SECTION,F_WBSE,MEASURES,TIME
    #dim_memberset=2
    F_CATEGORY:P11,1 in total.
    TIME:2013.012,2014.001,2014.002,2014.003,2014.004,...85 in total.
    REC :%VALUE%
    CALCULATION BEGIN:
    QUERY PROCESSING DATA
    QUERY TIME : 1235.46 ms. 285  RECORDS QUERIED OUT.
    QUERY REFERENCE DATA
    CALCULATION TIME IN TOTAL :672.78 ms.
    285  RECORDS ARE GENERATED.
    CALCULATION END.
    ENDWHEN ACCUMULATION: 285  RECORDS ARE GENERATED.
    DATA TO WRITE BACK:
    F_CATEGORY    F_ENTITY    F_PERSON    F_PROJECT    F_SECTION    F_WBSE    TIME    SIGNEDDATA
    P12    4000    000000    A-000036    000    A-000036.1.01    2013.012    103.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2014.001    104.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2014.002    105.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2014.003    106.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2014.004    107.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2014.005    108.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2014.006    109.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2014.007    110.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2014.008    111.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2014.009    112.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2014.010    113.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2014.011    114.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2014.012    115.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2015.001    116.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2015.002    117.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2015.003    118.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2015.004    119.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2015.005    120.00
    P12    4000    000000    A-000036    000    A-000036.1.01    2015.006    121.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2013.012    235.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2014.001    236.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2014.002    237.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2014.003    238.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2014.004    239.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2014.005    240.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2014.006    241.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2014.007    242.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2014.008    243.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2014.009    244.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2014.010    245.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2014.011    246.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2014.012    247.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2015.001    248.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2015.002    249.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2015.003    250.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2015.004    251.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2015.005    252.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01    2015.006    253.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2013.012    344.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.001    345.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.002    346.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.003    347.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.004    348.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.005    349.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.006    350.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.007    351.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.008    352.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.009    353.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.010    354.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.011    355.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.012    356.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2015.001    357.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2015.002    358.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2015.003    359.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2015.004    360.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2015.005    361.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.01    2015.006    362.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2013.012    494.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.001    495.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.002    496.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.003    497.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.004    498.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.005    499.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.006    500.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.007    501.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.008    502.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.009    503.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.010    504.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.011    505.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.012    506.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2015.001    507.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2015.002    508.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2015.003    509.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2015.004    510.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2015.005    511.00
    P12    4000    000000    A-000036    000    A-000036.1.01.01.02    2015.006    512.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2013.012    573.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2014.001    574.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2014.002    575.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2014.003    576.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2014.004    577.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2014.005    578.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2014.006    579.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2014.007    580.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2014.008    581.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2014.009    582.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2014.010    583.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2014.011    584.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2014.012    585.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2015.001    586.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2015.002    587.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2015.003    588.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2015.004    589.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2015.005    590.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02    2015.006    591.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2013.012    663.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.001    664.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.002    665.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.003    666.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.004    667.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.005    668.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.006    669.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.007    670.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.008    671.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.009    672.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.010    673.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.011    674.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.012    675.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2015.001    676.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2015.002    677.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2015.003    678.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2015.004    679.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2015.005    680.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.01    2015.006    404.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2013.012    765.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.001    766.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.002    767.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.003    768.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.004    769.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.005    770.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.006    771.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.007    772.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.008    773.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.009    774.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.010    775.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.011    776.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.012    777.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2015.001    778.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2015.002    779.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2015.003    780.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2015.004    781.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2015.005    782.00
    P12    4000    000000    A-000036    000    A-000036.1.01.02.02    2015.006    493.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2013.012    430.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2014.001    431.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2014.002    432.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2014.003    433.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2014.004    434.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2014.005    435.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2014.006    436.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2014.007    437.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2014.008    438.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2014.009    439.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2014.010    440.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2014.011    441.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2014.012    442.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2015.001    443.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2015.002    444.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2015.003    445.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2015.004    446.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2015.005    447.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03    2015.006    448.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2013.012    584.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.001    585.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.002    586.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.003    587.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.004    588.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.005    589.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.006    590.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.007    591.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.008    592.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.009    593.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.010    594.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.011    595.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.012    596.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2015.001    597.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2015.002    598.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2015.003    599.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2015.004    600.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2015.005    601.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.01    2015.006    602.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2013.012    606.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.001    607.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.002    608.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.003    609.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.004    610.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.005    611.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.006    612.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.007    613.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.008    614.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.009    615.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.010    616.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.011    617.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.012    618.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2015.001    619.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2015.002    620.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2015.003    621.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2015.004    622.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2015.005    623.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.02    2015.006    624.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2013.012    824.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.001    825.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.002    826.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.003    827.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.004    828.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.005    829.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.006    830.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.007    831.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.008    832.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.009    833.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.010    834.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.011    835.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.012    836.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2015.001    837.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2015.002    838.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2015.003    839.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2015.004    840.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2015.005    841.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.03    2015.006    842.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2013.012    125.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.001    126.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.002    127.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.003    128.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.004    129.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.005    130.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.006    131.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.007    132.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.008    133.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.009    134.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.010    135.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.011    136.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.012    137.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2015.001    138.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2015.002    139.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2015.003    140.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2015.004    141.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2015.005    142.00
    P12    4000    000000    A-000036    000    A-000036.1.01.03.04    2015.006    143.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2013.012    407.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2014.001    408.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2014.002    409.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2014.003    410.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2014.004    411.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2014.005    412.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2014.006    413.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2014.007    414.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2014.008    415.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2014.009    416.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2014.010    417.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2014.011    418.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2014.012    419.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2015.001    420.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2015.002    421.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2015.003    422.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2015.004    423.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2015.005    424.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.01    2015.006    425.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2013.012    606.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2014.001    607.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2014.002    608.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2014.003    609.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2014.004    610.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2014.005    611.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2014.006    612.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2014.007    613.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2014.008    614.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2014.009    615.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2014.010    616.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2014.011    617.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2014.012    618.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2015.001    619.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2015.002    620.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2015.003    621.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2015.004    622.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2015.005    623.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.02    2015.006    624.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2013.012    726.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2014.001    727.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2014.002    728.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2014.003    729.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2014.004    730.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2014.005    731.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2014.006    732.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2014.007    733.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2014.008    734.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2014.009    735.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2014.010    736.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2014.011    737.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2014.012    738.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2015.001    739.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2015.002    740.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2015.003    741.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2015.004    742.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2015.005    743.00
    P12    4000    000000    A-000036    000    A-000036.1.01.05.03    2015.006    744.00
    285  RECORDS HAVE BEEN WRITTEN BACK.
    WRITING TIME :543.97  ms.
    [INFO] GET_DIM_LIST(): I_APPL_ID="Forecasting", #dimensions=8
    F_CATEGORY,F_ENTITY,F_PERSON,F_PROJECT,F_SECTION,F_WBSE,MEASURES,TIME
    #dim_memberset=2
    F_CATEGORY:ACTUAL,1 in total.
    TIME:2013.001,2013.002,2013.003,2013.004,2013.005,...11 in total.
    REC :%VALUE%
    CALCULATION BEGIN:
    QUERY PROCESSING DATA
    QUERY TIME : 1019.73 ms. 1  RECORDS QUERIED OUT.
    QUERY REFERENCE DATA
    CALCULATION TIME IN TOTAL :140.35 ms.
    1  RECORDS ARE GENERATED.
    CALCULATION END.
    ENDWHEN ACCUMULATION: 1  RECORDS ARE GENERATED.
    DATA TO WRITE BACK:
    F_CATEGORY    F_ENTITY    F_PERSON    F_PROJECT    F_SECTION    F_WBSE    TIME    SIGNEDDATA
    P12    4000    000000    A-000001    000    A-000001.1.01    2013.010    2000.00
    1  RECORDS HAVE BEEN WRITTEN BACK.
    WRITING TIME :480.96  ms.
    SCRIPT RUNNING TIME IN TOTAL:5.07 s.
    LOG END TIME:2014-03-14 09:36:28
    Prompts
    PARAM - YY=2014
    DATA REGION - F_CATEGORY=P1
    RESULT
    PLS NOTE - The 2nd record "ACTUAL" - Project A-000036 / 2013.012 for $5000 is MISSING
    LGX:
    *XDIM_MEMBERSET F_CATEGORY=P12
    *XDIM_MEMBERSET TIME=2014.001,2014.002,2014.003,2014.004,2014.005,2014.006,2014.007,2014.008,2014.009,2014.010,2014.011,2014.012,2015.001,2015.002,2015.003,2015.004,2015.005,2015.006,2015.007,2015.008,2015.009,2015.010,2015.011,2015.012,2016.001,2016.002,2016.003,2016.004,2016.005,2016.006,2016.007,2016.008,2016.009,2016.010,2016.011,2016.012,2017.001,2017.002,2017.003,2017.004,2017.005,2017.006,2017.007,2017.008,2017.009,2017.010,2017.011,2017.012,2018.001,2018.002,2018.003,2018.004,2018.005,2018.006,2018.007,2018.008,2018.009,2018.010,2018.011,2018.012,2019.001,2019.002,2019.003,2019.004,2019.005,2019.006,2019.007,2019.008,2019.009,2019.010,2019.011,2019.012,2020.001,2020.002,2020.003,2020.004,2020.005,2020.006,2020.007,2020.008,2020.009,2020.010,2020.011,2020.012
    *WHEN F_CATEGORY
    *IS *
    *REC(EXPRESSION=%VALUE%,F_CATEGORY=P1)
    *ENDWHEN
    *XDIM_MEMBERSET F_CATEGORY=ACTUAL
    *XDIM_MEMBERSET TIME=
    *WHEN F_CATEGORY
    *IS *
    *REC(EXPRESSION=%VALUE%,F_CATEGORY=P1)
    *ENDWHEN
    LOG:
    LOG BEGIN TIME:2014-03-14 09:40:55
    FILE:\ROOT\WEBFOLDERS\F_COUNCIL \ADMINAPP\Forecasting\TEST.LGF
    USER:096655
    APPSET:F_COUNCIL
    APPLICATION:Forecasting
    [INFO] GET_DIM_LIST(): I_APPL_ID="Forecasting", #dimensions=8
    F_CATEGORY,F_ENTITY,F_PERSON,F_PROJECT,F_SECTION,F_WBSE,MEASURES,TIME
    #dim_memberset=2
    F_CATEGORY:P12,1 in total.
    TIME:2014.001,2014.002,2014.003,2014.004,2014.005,...84 in total.
    REC :%VALUE%
    CALCULATION BEGIN:
    QUERY PROCESSING DATA
    QUERY TIME : 1342.07 ms. 270  RECORDS QUERIED OUT.
    QUERY REFERENCE DATA
    CALCULATION TIME IN TOTAL :716.94 ms.
    270  RECORDS ARE GENERATED.
    CALCULATION END.
    ENDWHEN ACCUMULATION: 270  RECORDS ARE GENERATED.
    DATA TO WRITE BACK:
    F_CATEGORY    F_ENTITY    F_PERSON    F_PROJECT    F_SECTION    F_WBSE    TIME    SIGNEDDATA
    P1    4000    000000    A-000036    000    A-000036.1.01    2014.001    104.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2014.002    105.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2014.003    106.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2014.004    107.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2014.005    108.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2014.006    109.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2014.007    110.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2014.008    111.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2014.009    112.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2014.010    113.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2014.011    114.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2014.012    115.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2015.001    116.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2015.002    117.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2015.003    118.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2015.004    119.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2015.005    120.00
    P1    4000    000000    A-000036    000    A-000036.1.01    2015.006    121.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2014.001    236.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2014.002    237.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2014.003    238.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2014.004    239.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2014.005    240.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2014.006    241.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2014.007    242.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2014.008    243.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2014.009    244.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2014.010    245.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2014.011    246.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2014.012    247.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2015.001    248.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2015.002    249.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2015.003    250.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2015.004    251.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2015.005    252.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01    2015.006    253.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.001    345.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.002    346.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.003    347.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.004    348.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.005    349.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.006    350.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.007    351.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.008    352.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.009    353.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.010    354.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.011    355.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2014.012    356.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2015.001    357.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2015.002    358.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2015.003    359.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2015.004    360.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2015.005    361.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.01    2015.006    362.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.001    495.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.002    496.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.003    497.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.004    498.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.005    499.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.006    500.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.007    501.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.008    502.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.009    503.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.010    504.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.011    505.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2014.012    506.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2015.001    507.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2015.002    508.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2015.003    509.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2015.004    510.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2015.005    511.00
    P1    4000    000000    A-000036    000    A-000036.1.01.01.02    2015.006    512.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2014.001    574.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2014.002    575.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2014.003    576.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2014.004    577.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2014.005    578.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2014.006    579.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2014.007    580.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2014.008    581.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2014.009    582.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2014.010    583.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2014.011    584.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2014.012    585.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2015.001    586.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2015.002    587.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2015.003    588.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2015.004    589.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2015.005    590.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02    2015.006    591.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.001    664.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.002    665.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.003    666.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.004    667.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.005    668.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.006    669.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.007    670.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.008    671.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.009    672.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.010    673.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.011    674.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2014.012    675.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2015.001    676.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2015.002    677.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2015.003    678.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2015.004    679.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2015.005    680.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.01    2015.006    404.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.001    766.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.002    767.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.003    768.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.004    769.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.005    770.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.006    771.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.007    772.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.008    773.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.009    774.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.010    775.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.011    776.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2014.012    777.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2015.001    778.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2015.002    779.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2015.003    780.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2015.004    781.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2015.005    782.00
    P1    4000    000000    A-000036    000    A-000036.1.01.02.02    2015.006    493.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2014.001    431.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2014.002    432.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2014.003    433.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2014.004    434.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2014.005    435.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2014.006    436.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2014.007    437.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2014.008    438.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2014.009    439.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2014.010    440.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2014.011    441.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2014.012    442.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2015.001    443.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2015.002    444.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2015.003    445.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2015.004    446.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2015.005    447.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03    2015.006    448.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.001    585.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.002    586.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.003    587.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.004    588.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.005    589.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.006    590.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.007    591.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.008    592.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.009    593.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.010    594.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.011    595.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2014.012    596.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2015.001    597.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2015.002    598.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2015.003    599.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2015.004    600.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2015.005    601.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.01    2015.006    602.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.001    607.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.002    608.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.003    609.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.004    610.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.005    611.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.006    612.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.007    613.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.008    614.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.009    615.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.010    616.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.011    617.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2014.012    618.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2015.001    619.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2015.002    620.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2015.003    621.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2015.004    622.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2015.005    623.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.02    2015.006    624.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.001    825.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.002    826.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.003    827.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.004    828.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.005    829.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.006    830.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.007    831.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.008    832.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.009    833.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.010    834.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.011    835.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2014.012    836.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2015.001    837.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2015.002    838.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2015.003    839.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2015.004    840.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2015.005    841.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.03    2015.006    842.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.001    126.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.002    127.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.003    128.00
    P1    4000    000000    A-000036    000    A-000036.1.01.03.04    2014.004 

  • Concatenate a column value across multiple rows - PDW

    We are using PDW based on SQL2014. We require an efficient logic on how to concatenate a column value across multiple rows. We have the following table
    T1
    (CompanyID, StateCD)
    Having following rows:
    1              NY
    1              NJ
    1              CT
    2              MA
    2              NJ
    2              VA
    3              FL
    3              CA
    We need a code snippet which will return following result set:
    1                    
    CT,NJ,NY
    2                    
    MA,NJ,VA
    3                    
    CA,FL
    We have tried built-in function STUFF with FOR XML PATH clause and it is not supported in PDW. So, we need a fast alternative.

    Hi Try this:
    SELECT * INTO #ABC
    FROM 
    SELECT 1 AS ID,'NY' AS NAME
    UNION 
    SELECT 1 AS ID,'NJ' AS NAME
    UNION 
    SELECT 1 AS ID,'CT' AS NAME
    UNION 
    SELECT 2 AS ID,'MA' AS NAME
    UNION 
    SELECT 2 AS ID,'NJ' AS NAME
    UNION 
    SELECT 2 AS ID,'VA' AS NAME
    UNION 
    SELECT 3 AS ID,'FL' AS NAME
    UNION 
    SELECT 3 AS ID,'CA' AS NAME
    )A
    CREATE TABLE ##CDB (ID INT, NAME NVARCHAR(800)) 
    DECLARE @TMP VARCHAR(MAX), 
            @V_MIN INT,
    @V_MAX INT,
    @V_COUNT INT
    SELECT @V_MIN=MIN(ID),@V_MAX=MAX(ID) FROM #ABC 
    SET @V_COUNT=@V_MIN
    WHILE @V_COUNT<=@V_MAX
    BEGIN
    SET @TMP = '' SELECT @TMP = @TMP + CONVERT(VARCHAR,NAME) + ', ' FROM #ABC 
    WHERE ID=@V_COUNT
    INSERT INTO ##CDB (ID, NAME) SELECT @V_COUNT AS ID ,CAST(SUBSTRING(@TMP, 0, LEN(@TMP)) AS VARCHAR(8000)) AS NAME 
    SET @V_COUNT=@V_COUNT+1
    END
    SELECT * FROM ##CDB
    OR
    SELECT * INTO #ABC
    FROM 
    SELECT 1 AS ID,'NY' AS NAME
    UNION 
    SELECT 1 AS ID,'NJ' AS NAME
    UNION 
    SELECT 1 AS ID,'CT' AS NAME
    UNION 
    SELECT 2 AS ID,'MA' AS NAME
    UNION 
    SELECT 2 AS ID,'NJ' AS NAME
    UNION 
    SELECT 2 AS ID,'VA' AS NAME
    UNION 
    SELECT 3 AS ID,'FL' AS NAME
    UNION 
    SELECT 3 AS ID,'CA' AS NAME
    UNION 
    SELECT 5 AS ID,'LG' AS NAME
    UNION 
    SELECT 5 AS ID,'AP' AS NAME
    )A
    CREATE TABLE ##CDB (ID INT, NAME NVARCHAR(800)) 
    DECLARE @TMP VARCHAR(MAX), 
            @V_MIN INT,
    @V_MAX INT,
    @V_COUNT INT
    SELECT @V_MIN=MIN(ID),@V_MAX=MAX(ID) FROM #ABC 
    SET @V_COUNT=@V_MIN
    WHILE @V_COUNT<=@V_MAX
    BEGIN
    SET @TMP = '' SELECT @TMP = @TMP + CONVERT(VARCHAR,NAME) + ', ' FROM #ABC 
    WHERE ID=@V_COUNT
    SELECT @V_COUNT AS ID ,CAST(SUBSTRING(@TMP, 0, LEN(@TMP)) AS VARCHAR(8000)) AS NAME INTO #TEMP 
    INSERT INTO ##CDB (ID, NAME) SELECT ID, NAME FROM #TEMP WHERE NAME<>''
    DROP TABLE #TEMP
    SET @V_COUNT=@V_COUNT+1
    END
    SELECT * FROM ##CDB
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • Calculated value from multiple rows in selection set

    Consider this query
    SELECT WELL.UWI
    FROM geo_formation A, WELL
    WHERE ( (select min(top_depth)
    from geo_formation B
    where B.uwi = A.uwi
    and form_id = 'WDBD' )
    (select min(top_depth)
    from geo_formation C
    where C.uwi = A.uwi
    and form_id = 'VKNS' )
    ) > 10
    AND A.uwi = WELL.UWI
    AND A.FORM_ID IN ('WDBD','VKNS')
    ORDER BY WELL.UWI, A.FORM_ID
    The question asked by the query is
    Show me all the entities (entities are identified by WELL.UWI)
    where the distance between the geological formations (identified by WDBD and VKNS)
    is greater than 10
    The distance in question of course is calculated in the
    (select min(top_depth)
    from geo_formation B
    where B.uwi = A.uwi
    and form_id = 'WDBD' )
    (select min(top_depth)
    from geo_formation C
    where C.uwi = A.uwi
    and form_id = 'VKNS' )
    portion of the where clause.
    ** My question:
    Is there any way to get this calculated value to be part of the selection list
    ie.
    SELECT WELL.UWI, 'the calculated value in question'
    FROM geo_formation A, WELL ...

    Thanks Barbara; once again your solution to one of my problems works like a charm.
    On top of that, I learned something important; I did not know that one can essentially achieve the same results as creating a temporary table by including the appropriate (select ...) in the from clause.
    Thanks again.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Barbara Boehmer ([email protected]):
    SELECT a.uwi, (bmin - cmin) distance
    FROM well a,
    (SELECT uwi, MIN (top_depth) bmin
    FROM geo_formation
    WHERE form_id = 'WDBD'
    GROUP BY uwi) b,
    (SELECT uwi, MIN (top_depth) cmin
    FROM geo_formation
    WHERE form_id = 'VKNS'
    GROUP BY uwi) c
    WHERE b.uwi = a.uwi
    AND c.uwi = a.uwi
    AND bmin - cmin > 10
    ORDER BY a.uwi
    /<HR></BLOCKQUOTE>
    null

  • Parameters spaning across multiple years.

    Hi,
    Can you help me regarding the parameters in Discoverer.
    The requirement is as follows.
    I have Four parameters .......
    Parameter 1:Start Year
    Parameter 2:Starting Month
    Parameter 3:Ending Year
    Parameter 4:Ending Month
    For EX:
    If values are as follows
    Parameter 1:2006
    Parameter 2:JULY
    Parameter 3:2008
    Parameter 4:FEB
    Now the report should display the data ranging from JULY 2006 to FEB 2008.
    Thanks in Advance.
    Regards
    Sridhar

    Create a calculation called get_start_date as
       to_date(:parameter_2||:parameter_1, 'MONYYYY')Create a second calculation called get_end_date as
       last_day(to_date(:parameter_4||:parameter_3, 'MONYYYY'))Then create a condition like
       report_date BETWEEN get_start_date AND get_end_date

  • Finding the minimum value across multiple rows (not in a single column)

    Hello,
    I am running some ad-hoc SQL to test a website implementation of a spec. The ad-hoc sql gives me a set of date values for a specific widget (called a Task). I need to find the Minimum of either (Task.EndDate + 1 year) or the MAX date from the list
    of other dates. I can easily get all of these dates, and compare them visually, but I'm not sure how to make SQL give me just the single value that I want. In the image below, you can see the results. The blue cell is the value I should get if I were to retrieve
    a single value. 
    select 
    [EndDate+12Mo] = DATEADD(year,1,t.EndDate)
    , [TaskEdit] =  t.EditTS
    , [ResearchEdit] = (select x.editts from Research x where t.researchid = x.researchid)
    , [DeliverableEdit] = (select max(x.EditTS) from Deliverable x where t.taskid = x.taskid)
    , [RTPEdit] = (select max(x.EditTS) from ResTaskParticipant x where (t.taskid = x.taskid and t.researchid = x.researchid) or (t.researchid = x.researchid and x.TaskID is null) )
    , [RelatedTaskEdit] = (select max(x.EditTS) from Task_Related x where t.taskid = x.Task1ID or t.TaskID = x.Task2ID)
    , [CrosscutEdit] = (select max(x.EditTS) from Task_Crosscut x where t.taskid = x.taskid)
    , [TaskFundingEdit]= (select max(x.EditTS) from TaskFunding x where t.taskID = x.taskID)
    , [ContractFundingEdit]= (select max(x.EditTS) from TaskFunding x inner join ContractFunding y on x.ContractFundingID = y.ContractFundingID where t.taskID = x.taskID)
    from task t
    where 
    t.tasknumber = 
    '2123.001'
    Thanks!
    Jennifer

    Sounds like this to me
    select CASE WHEN [EndDate+12Mo] < MAX(dt) THEN [EndDate+12Mo] ELSE MAX(dt) END AS YourDateValue
    from
    SELECT [EndDate+12Mo],dt
    from
    select
    [EndDate+12Mo] = DATEADD(year,1,t.EndDate)
    , [TaskEdit] = t.EditTS
    , [ResearchEdit] = (select x.editts from Research x where t.researchid = x.researchid)
    , [DeliverableEdit] = (select max(x.EditTS) from Deliverable x where t.taskid = x.taskid)
    , [RTPEdit] = (select max(x.EditTS) from ResTaskParticipant x where (t.taskid = x.taskid and t.researchid = x.researchid) or (t.researchid = x.researchid and x.TaskID is null) )
    , [RelatedTaskEdit] = (select max(x.EditTS) from Task_Related x where t.taskid = x.Task1ID or t.TaskID = x.Task2ID)
    , [CrosscutEdit] = (select max(x.EditTS) from Task_Crosscut x where t.taskid = x.taskid)
    , [TaskFundingEdit]= (select max(x.EditTS) from TaskFunding x where t.taskID = x.taskID)
    , [ContractFundingEdit]= (select max(x.EditTS) from TaskFunding x inner JOINContractFunding y on x.ContractFundingID = y.ContractFundingID where t.taskID = x.taskID)
    from task t
    where
    t.tasknumber =
    '2123.001'
    )t1
    UNPIVOT(dt FOR cat IN ([TaskEdit]
    , [ResearchEdit]
    , [DeliverableEdit]
    , [RTPEdit]
    , [RelatedTaskEdit]
    , [CrosscutEdit]
    , [TaskFundingEdit]
    , [ContractFundingEdit]))u
    )r
    GROUP BY [EndDate+12Mo]
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How do I search for common values across multiple columns?

    I am coordinating a schedule with 5 people across hundreds of dates, and have columns A-E filled with many rows of dates. How can I make a new column that displays all the dates (values) that each person (column) has in common with all the others?
    Is there a simple formula for this?
    thanks!

    Scarampella,
    A second table can be used to find your matching dates.
    Here's an example:
    The formula in Matching Dates is:
    =IF(ISERROR(MATCH(A,Table 1 :: A, 0)+MATCH(A,Table 1 :: B, 0)+MATCH(A,Table 1 :: C, 0)+MATCH(A,Table 1 :: D, 0)+MATCH(A,Table 1 :: E, 0)), "", A)
    Basically, I look for matches in each person's list of dates, and if any fail to produce a match with the date being examined, the result is a miss, and if all match, it's a hit. You can sort the result to get a short list of matches without spaces.
    Regards,
    Jerry

  • Add values across multiple subject areas

    Hello Everyone,
    This is a pressing issue i am facing at the moment. I am on OBIEE 11g latest version.
    This is the scenario at hand.
    There are several tables of which each connects to the same time dimension and a global customer dimension. There are several products such as deposits, loans, pawning, leases, etc.
    For the time being, i have created separate subject areas for each of these products. And each subject area has an INCOME column.
    The requirement is to get the total of all the income columns from all the subject areas so that that total can be used for other calculations.
    The most probable solution from my R&D seems to be trying to add several subject areas for querying purposes. (Add / Remove Subject Areas option)
    In the RPD, right clicked on the deposits subject area and clicked on the option "... star or snowflake schema". This created a copy of the subject area on the BMM and added it on to the presentation layer. Now in thr analysis, choosing deposits, i click on the Add / Remove Subject Areas. The option has the newly created copy of the subject area i already have.
    My requirement is to add deposits and loans and pawning and etc.... What am i doing wrong here?
    Also, is there any other method to approach the problem?

    Let me try to describe the model as best as possible.
    I am trying to calculate the profitability of each customer for two banks. These banks have deposits, loans, leases, etc. Each customer is identified by a global id. The global ID is a dimension table. Then there is a the time Dimension.
    Bank A has it's own deposits and Bank B does too. A customer can/cannot have accounts in Bank A/Bank B/or Both Bank A and B. Similarly a customer can have a lease in either or both of the banks and this continues for other products.
    Each Global ID is referenced to a Client ID. Each client ID can have several Internal Keys which are referenced to each account the customer might have.
    For bank A > deposits, i have a fact table which connects to the Dim Time and Dim Global customer table. there are other dimension tables which connect to the same fact.
    Similarly bank B > deposits has the same look and feel. Only thing is i connected the fact of bank b - deposits to the same Time and Global Customer table. So now there is a circular join. And this join gets really complicated when i add the fact tables of other categories such as leasing, pawning, etc. Since my goal is to calculate the total of profitability from each of these categories (deposits + loans + pawning +...), i tried to write a formula but i do get the error that "no fact exists"
    For the time being i have created individual connections for each product. For example, deposits will have its own global customer and time and be connected to that particular fact. Similarly, pawning will have its own global customer and time (created alias tables for each of them). So right now i have the profitability of each customer on different categories.
    What i want to do is get the total of profitability for an individual customer for all the product type the customer has, and use that for further specific formula calculations.

  • AWM Calculated Measure for Percent of Total Across Multiple Dimensions?

    I noticed that AWM has a Share function that gives me a percent total of a grain from a specific hierarchy's Top of Hierarchy, but is there any way to do that with multiple dimensions? For example, if I had a Share of Dimension X = 55% Where Time = 1/1/2013 and a Share of Dimension Y = 32% Where Time = 1/1/2013, then could I have a Share of both Dimension X and Dimension Y = 16% Where Time = 1/1/2013?

    I had used an alternate solution which is a bit more cumbersome using native OLAP_DML formulae/expression.
    The above expression using OLAP Expression Syntax is much better (if it works).
    I was not aware of this OLAP expression syntax when i needed to create a kpi for similar requirement.
    We had Qty measure and Share along dimension like "Qty - Share at Year level", "Qty - Share of Total Customer".
    We needed to get "Qty - Share at Total Customer, Year".
    Cube= SALESCUBE
    Base Meas = QTY
    Step 1) Create Measure which represents "Qty - Total Customer, Year" which will work in any reporting context ...
    Note: For time=day1/2/3/ within same year and customer=cust1/2/3/... or Total Customer, the expression result will be constant (result fixed for any dimension members/status along the 2 dimensions - TIME and CUST). Denominator Value changes each year since we have constrainted time dimension to the ancestor of current cell at YR level. If we choose anscestor at TOP level TOTTIME say then the value is fixed for all time dimension members/values.
    olap dml expression: QUAL(SALESCUBE_QTY, CUSTOMER limit(CUSTOMER to CUSTOMER_LEVELREL 'TCUST'), TIME limit(limit(TIME to ANCESTORS USING TIME_PARENTREL TIME(TIME TIME)) KEEP TIME_LEVELREL eq 'YR'))
    in awxml - this becomes:
    ETMeasureColumnName="QTY_TCUST_YR"
    Name="QTY_TCUST_YR"
    MeasureExpression="OLAP_DML_EXPRESSION(&apos;QUAL(SALESCUBE_QTY, CUSTOMER limit(CUSTOMER to CUSTOMER_LEVELREL &apos;&apos;TCUST&apos;&apos;), TIME limit(limit(TIME to ANCESTORS USING TIME_PARENTREL TIME(TIME TIME)) KEEP TIME_LEVELREL eq &apos;&apos;YR&apos;&apos;))&apos;, NUMBER)">
    <Classification
    Value="AwmDescriptionType=OLAP_DML_CALC"/>
    <Description
    Type="LongDescription"
    Language="AMERICAN"
    Value="Qty - Total Customer, Year">
    Step 2) Define the share measure explicitly since we have already calculated the denominator needed for composite share.
    Check for division by 0 error before performing the share calculation explicitly as Numerator= Qty (for current cell/reporting context) and Denominator = Qty - Total Customer, Year (from Step 1)
    olap dml expression: if SALESCUBE_QTY_TCUST_YR ne 0 then SALESCUBE_QTY / SALESCUBE_QTY_TCUST_YR else na
    in awxml - this becomes:
    ETMeasureColumnName="QTY_SHARE_TCUST_YR"
    Name="QTY_SHARE_TCUST_YR"
    MeasureExpression="OLAP_DML_EXPRESSION(&apos;if SALESCUBE_QTY_TCUST_YR ne 0 then SALESCUBE_QTY / SALESCUBE_QTY_TCUST_YR else na&apos;, NUMBER)">
    <Classification
    Value="AwmDescriptionType=OLAP_DML_CALC"/>
    <Description
    Type="LongDescription"
    Language="AMERICAN"
    Value="Qty - Share of Total Customer, Year">
    </Description>
    Report needs to use measure QTY_SHARE_TCUST_YR (Qty - Share of Total Customer, Year) defined in Step 2. It may be useful to expose/display intermediate measure QTY_TCUST_YR also so as to make the basis of calculation very clear to the user.
    Nick,
    If you customize above soln. to use Total Time, Total Prod and Total Organization (along 3 dimensions)... I am sure the fact table has a time dimension which should also be factored in in your calc/defn.
    If you have missed out the join to Time dimension from fact in your queries, in olap reporting terms, its similar to Time Dimension selection of Time level = TTIME Total Time (1 node at TOP).
    You need:
    Step 1) Qty - Total Time, Total Product and Total Org
    Step 2) Qty - Share of Total Time, Total Product and Total Org
    Then the example you gave should be covered via QTY and QTY_SHARE_TTIME_TPROD_TORG (Step 2)
    SUM(quantity)
    2875should be QTY, QTY_SHARE_TTIME_TPROD_TORG (=100%) at Time level = TTIME, Product level = TPROD, Org level = TORG
    SUM(quantity)
    345 [12% of all products sold]should be QTY, QTY_SHARE_TTIME_TPROD_TORG (=12% hopefully) at Time level = TTIME, Product level = PROD with report filter on product = 'CX-867054', Org level = TORG
    SUM(quantity)
    977 [34% of all products sold]should be QTY, QTY_SHARE_TTIME_TPROD_TORG (=34% hopefully) at Time level = TTIME, Product level = TPROD, Org level = STORE with report filter on store = 'NY_ALBA_013'
    SUM(quantity)
    88 [3.06% of all products sold]should be QTY, QTY_SHARE_TTIME_TPROD_TORG (=3.06% hopefully) at Time level = TTIME, Product level = PROD with report filter on product = 'CX-867054', Org level = STORE with report filter on store = 'NY_ALBA_013'
    HTH
    Shankar

  • Value of Multiple-Selection List box is not appearing "calculated value" field of it

    Hello,
    We have created one selection list box using control "Multiple Selection List Box", where user can select one or more values.
    We have created one view in InfoPath form, which have calculated value of fields(just showing purpose and printing purpose this view has ben created).
    In this when we try to show calculated value of field is of Multiple Selection List Box, it's showing as "Off".
    Could you please help us out.
    Thanking you in advance.
    Regards,
    Jayashri

    Hi,
    Thanks for your sharing! It will be beneficial to others in this forum who meet the same issue in the future.
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Spread Data Over Multiple Months & Years with Data from Multiple Years

    Hello Everyone,
    I have a complex calculation for spreading values over several months spanning mulitle years. Because we have a 36 month rolling Forecast, a more sophisticated calc is required as opposed to hard coding months or years.
    Heres the description:
    Users enter the following data,
    FY11     BegBalance     Number of BOD Members     10
              BOD Options Vesting Months     20
              BOD Options Accounting Value     10
              BOD Options- Number of Shares     100
              BOD Grant Month     Aug
    FY12     BegBalance     Number of BOD Members     5
              BOD Options Vesting Months     10
              BOD Options Accounting Value     5
              BOD Options- Number of Shares     200
              BOD Grant Month     Oct
    FY13     BegBalance     Number of BOD Members     20
              BOD Options Vesting Months     8
              BOD Options Accounting Value     20
              BOD Options- Number of Shares     100
              BOD Grant Month     Feb
    Based on the above;
    "BOD Stock" is calculated as following/month=Number of BOD Members*BOD Options Accounting Value*BOD Options- Number of Shares/ BOD Options Vesting Months
    Start month for the above is based on "BOD Grant Month". So, for instance considering data for FY11:
    The total "BOD Stock" value is $10000 (originating from FY11) with start month of AUG in FY11 and the number of months to spread over is 20 months. So, essentially the "BOD Stock" per month (originating from FY11) is $500 starting from AUG FY11 to Mar FY13.
    Similarly, the total "BOD Stock" value is $5000 (originating from FY12) with start month of OCT in FY12 and the number of months to spread over is 10 months. So, essentially the "BOD Stock" per month (originating from FY12) is $500 starting from OCT FY12 to JUL FY13.
    The challange I am facing is because of the number of months to spread. Because I have data to spread from multiple years and each year's data spills into the following years, each year should accumulate data from prior years. For instance;
    FY11 should include only FY11
    FY12 should include FY11 and FY12
    FY13 should include FY11, FY12 and FY13.
    Could anyone suggest a smarter way to do this without writting code for each year, maybe using @MDALLOCATE function? The following shows how data should be spread and accumulated.
                             BegBalance     Jan     Feb     Mar     Apr     May     Jun     Jul     Aug     Sep     Oct     Nov     Dec     Period
    FY11     Number of BOD Members          10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     100     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Aug     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               10000     #mi     #mi     #mi     #mi     #mi     #mi     #mi     500     500     500     500     500     #mi
    FY12     Number of BOD Members          5     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          10     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     5     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     200     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Oct     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               5000     500     500     500     500     500     500     500     500     500     1000     1000     1000     #mi
    FY13     Number of BOD Members          20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Vesting Months          8     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options Accounting Value     20     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Options- Number of Shares     100     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
         BOD Grant Month               Feb     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi     #mi
              BOD Stock               40000     1000     6000     6000     5500     5500     5500     5500     5000     5000     #mi     #mi     #mi     #mi
    Appreciate your inputs!
    Edited by: user10678366 on Oct 12, 2010 3:21 PM

    Why not use substitution variables for Years? you could have something like &Year1, &Year2, &Year3
    Cheers

  • Year Over Year Comparison for Multiple Years

    I have a business request where the client is asking for a year over year percentage comparison for multiple years
    So for example
              Applications
    2015     5
    2014     10
    2013     22
    So in year 2015 we can see that applications is currently down (5-50/10 - [New-Old/Old] by -50% compared to year prior
    In year 2014 we are down -55%
    Ultimately I wanted to display the following
              Applications
    2015     -50%
    2014     -55%
    2013    
    I have an idea of how to do this for a single year, where a presentation variable is fed in then I can just do this year minus previous year.
    I was wondering, how can I do this calculation or presentation in OBIEE? Can this be done within answers? Or does something need to be done in the RPD?

    As long as your model is correctly done with a time hierarchy you can just use the time series function AGO to get the value of previous year.
    So in the formula you can calculating your delta in % comparing the current year amount and the previous one.
    You can do it in the analysis directly, but if you will often need to access "previous year measures" would be a good idea to add it in the RPD so you don't need to write the formula every single time.

  • How do I total across multiple Tables? Help!

    how do I total across multiple Tables? Help!
    I feel like a complete noob.

    Hi Marc,
    There is no function explicitly for that sort of array calculation in Numbers.
    My favorite way is to use a list of Table Names and the INDIRECT(ADDRESS) function combination to produce a SUM across tables. I'm making the assumption that you want to do something like adding up all the values in a particular cell of multiple tables.  For example "give me the total of all the A1 cells in tables T1, T2, T3 and T4".  For this I would use the formula:
    =INDIRECT(ADDRESS(1,1,1,,A))
    to grab the cell contents of the table names mentioned in column A of a summary table.  Once you have them collected in your summary table, add them up.
    Here's a screen shot...
    Hope that gives you an idea for approaching this problem.
    Jerry

  • GL Account Line items - Across Fiscal year

    Hi,
    Is there any way to get the line items for GL accounts across fiscal years? Let us say the fiscal year is from Jan to Dec. If I want to see all the line items from Nov 2009 to Mar 2010 in one report, is there any standard report that would let me pull the line items across fiscal years? Have any one else come across this requirement?
    I was not able to find any standard report and was trying to develop using report painter. But did not have any luck with the period variable to go to the prior fiscal year when it gets to zero. I could give the period and year as March 2010 and give value 3 to a variable and it would go an get the line items/balances from Jan to Mar. But if I give the value to the variable as 5 I get an error message. (REPLACE_VARIABLES; SUBRC= 0; &ZPR3   Message no. GR016)
    Thanks in advance for your help. Points would be assigned for useful answers.
    Thanks,
    SD.

    The only way we can use FBL3N or FAGLL03 is  by entering the posting date in the main screen. As we are using 4-5-4 calendar, the period end dates are not the same as the month end dates.
    You can not enter the period and year in the dynamic selections and get the results.
    Is there any other method?
    Thanks,
    SD.

  • Can Windows Server Backup spread a single backup job across multiple disks if they are not set up as a virtual disk?

    This may be a dumb question, but I can't seem to find any definitive information after having done many, many searches.  Short question is - can Windows Server Backup spread a single backup job across multiple disks if they are not in a storage
    pool or some other RAID/JBOD structure?
    Background:
    I'm running Server 2012 Essentials with all Windows Updates installed.  I have been backing up approx 2.8TB of data (Bare Metal Recovery, C:, S: (shared folders), and system reserved) for the past year+ onto a storage pool made up of two-2TB external
    USB drives.  Backup is slow (takes approx 1.5 days to complete), but generally works.  Not surprisingly I was constantly getting capacity low messages so I decided to increase my backup storage pool by adding a 3TB drive and another spare 750GB drive
    for a total of 7.75TB.  Instead of having four separate external USB enclosures, I bot a 4-bay enclosure - Startech.com model #S3540BU33E to simplify this (or so I thought!).
    The first problem I had was adding the two new drives to the existing storage pool. I think that is because the Startech uses a JMicron USB controller that reports identical uniqueid's for all drives so only one shows up in the GUI interface for creating storage
    pools. After doing research on this, I set up a new storage pool and virtual disk using all four drives via Powershell and thought I was good. However, when the backup ran, it failed after filling the first drive, saying there was no remaining capacity. In
    reality there were three remaining empty drives and there storage pool reported almost 5TB of avail capacity. I assumed this was due to the identical uniqueid issue so I decided to try a different tactic.
    Instead of using a storage pool that combines all four disks into one virtual disk, I just added each of them to Windows Server Backup as individual drives thinking it would manage them collectively. I.e., when a drive filled up during a particular backup,
    it would just start using the next drive and so on. Apparently this was a foolish assumption because the backup failed again as soon as the first disk filled up.
    So now I don't know if this is still an issue with the identical uniqueid's or if Server Backup actually can't spread a single backup across multiple individual drives that aren't in a pool or other virtual disk implementation. Hence, my original question.
    My guess is that it does *not* spread them across individual disks, but I just wanted to get confirmation.
    Thanks

    Mandy,
    Thank you for following up on my question.
    Unfortunately the article you referenced doesn't address what I am trying to accomplish.
    The article focuses on saving the same backup job to multiple disks and rotating the disks between on and offsite for enhanced protection.  However, it still requires that an individual backup job fits on a single disk.
    What I am trying to determine is if a single backup job can span across more than one physical disk (during the backup process) without those physical disks being in some type of virtual disk implementation (e.g., storage pool, RAID, etc.).
    Thanks,
    Gerry

Maybe you are looking for

  • Copy Control between Sales Orders and Deliveries

    Hi Gurus, please can you tell me why copy control between Sales Order and Delivery doesn't work? At header level, into copy control, we can set 2 requirement routines, one as general requirement for copying (TVCPL-AUBED) and the other one as requirem

  • Problem Installing with Windows Vista

    I have windows Vista and I am trying to install flash player i go to save it then run it and i get a message saying only a single instance of this application can run. I have tried the offline version i have tried to delete all the folders that go wi

  • Output error

    Hi, Below is my code : When I execute this it is not displaying any data. Right now I don't want the values to be displayed in ALV just normal report. *& Report  ZTESTING1 REPORT  ZTESTING1. TABLES:        SSCRFIELDS,   " Fields on selection screens

  • How to select all the frames in a document?

    i did select only particular active session.is it possible to select all the frames in a document?

  • No images are shown in the Gallery

    Hi Everyone, It looks like all the picture i am taking with the camera are stored in the memory card, moreover the gallery is not showing any of them. Does anyone know how to make the pictures appear in the gallery again. regards,