Presentation variable(Date) in German Format

Hi,
I like to know whether it is possible to use date(prompt) in German format.
e.g., We need to filter out the date(06.01.2009) which is given in Dashboard prompt as a Presentation variable.
The date which we have given in prompt should be accessed by reports to perform some calculations and return back the calculation values.
As we have tried the presentation variable(date) in US Format,it is working fine.
Regards,
Sakthi

Hi kishore,
I am not clear with the above mentioned forum link.
We are using presentation variable for dynamic calculations inside the report.
Suppose if we are giving date for dynamic calculation,as far as we are using this format (01.Jan.09) and convert the above format in required as used for calculations.
The problem comes when german date format(01.Dez.2008) is given in prompt,it will throw an error.
Because both German and US will have January & Januar Jan(First 3 letters as same) but when it comes for some months like December(Dezember(German)),we cannot convert into required format.
Is there any solution for the above issue.

Similar Messages

  • How can I pass a Presentation Variable (Date) into a prompt

    Hello
    How can I pass a Presentation Variable (date) into a prompt? I seem to be able to do this successfully for a non-date value but have had no luck with a Date variable.
    Here's a simplistic version of what I'm trying to do:
    1. I have a Presentation Variable called startDate which is a Date that defaults to this SQL - SELECT "Reporting Dates"."Measure Date" FROM Trading WHERE "Reporting Dates"."Date Name" = 'Current'.
    2. I now want to pass this variable into a prompt with SQL like this: SELECT "Position Date"."Position Date" FROM Trading where "Position Date"."Position Date" = date'@{startDate}{2009-04-24}'
    I get this error: Datetime value @{startDate}{2009-04-24} from @{startDate}{2009-04-24} does not match the specified format.
    Now I can use the exact same syntax in a filter. For example, a simple Answers request where I pick Position Date with a filter saying "Position Date"."Position Date" = date'@{startDate}{2009-04-24}' works fine.
    What am I doing wrong?
    Thanks!

    Can you provide more information please?
    1. What is the format of the first date prompt, is it YYYY-MM-DD or?
    2. Which data type is Position Date."Position Date" in the physical layer, date or date time?
    3. What is the column formula in the first prompt?
    4. The first prompt is set to drop-down or?
    5. If you are using this SQL Results in the second prompt:
    SELECT "Position Date"."Position Date" FROM Trading where "Position Date"."Position Date" = date '@{startDate}{2009-04-24}'
    then @{startDate} must be in YYYY-MM-DD format to work properly, otherwise (for example):
    datetime value 01/01/2000 from 01/01/2000 does not match the specified format.
    This doesn't work for example:
    SELECT Times.time_id FROM "Normal model" where Times.time_id =date '01/01/2000'
    Regards
    Goran
    http://108obiee.blogspot.com

  • We are not able to pass the presentation variables(date & Date1) to the det

    Hi,
    We have followed the below link to use the date between prompt and passed the presentation variables in the filter condition of the report criteria.
    http://obiee101.blogspot.com/2009/03/obiee-between-dates-prompt.html
    But we are not able to pass the presentation variables(date & Date1) to the detail report.
    Any suggestions are highly appreciated.
    Thanks in Advance
    Siva.

    Yes,I think it wont pass the parameters from one parent report to child report.one thing you can do is put the detailed report on a page in the same dashboard as that of prompt.Put the same between condition on that report also.Give navigation link to this page instead of report.You can hide this page as well so that it will be available only on navigation.
    i have not tried it.Give it a try.
    Regards,
    Sandeep

  • Presentation Variable Date Format

    Hi all trying to format a presentation variable in a Narrative view , Is there a way that this can be done using javascript or html that i can paste into narrative view.
    i want something like "the date being used is @{indate} for month end"
    Also date format needs to be dd.mm.yyyy ... its currenty being displayed as yyyy/mm/dd .. I dont want to add the columns in my report and hide them as there seems to be a performance lag when i do that.
    Any ideas .. Java gurus out there.
    I have tried @{indate}[dd.mm.yyyy] .. but that dont work.
    Cheers
    Jenny
    Edited by: user5470064 on Aug 18, 2011 9:58 AM
    Edited by: user5470064 on Aug 18, 2011 9:59 AM

    Here you go...
    I tried in my machine and its working great..
    In Answers--> in Criteria TAB, In the column's fx use below formula...
    case when 1=1 then EVALUATE('TO_CHAR(%1,%2)' as varchar(20),date '@{pv_date}{1998-07-05}','dd.mm.yyyy') else "ORE Time Dim"."Mnth Name" end
    pv_date is the presentation variable and
    For "ORE Time Dim"."Mnth Name" use any varchar datatype column...
    Hope it helpful...
    Thanks
    Ashish Gupta

  • Presentation variable data format

    Hi All,
    We are using date as presentation variable and using that presentation variable in reports column formula's, but in prompt date format is showing MM-DD-YYYY, but in report it is taking as YYYY-MM-DD because of this data format difference it is giving error on dashboard but working fine in report results. If we change the format of date as char and giving user input filter it is working fine but users want the prompt value as it is. So how can we change presentation variable format in column edit formula?
    Tanks in advance.

    Try to look into that prompt column to see why you are getting different date format.
    If it is not correct as per you application then I would suggest to correct it using column->Data Format and then Save.
    I would suggest to convert the filter to SQL format to handle it, you may get it after Filter... button add date and then use Advanced button. using SQL you have options to do it.
    Thanks
    Edited by: Srini VEERAVALLI on Apr 12, 2013 7:47 AM
    What is Print Date?!! Is that available column in Subject Area? If you dont know why its like that investigate.
    Edited by: Srini VEERAVALLI on Apr 12, 2013 8:10 AM

  • Presentation Variables Date Format

    Hi,
    I have a direct sql request that uses date presentation variables via a dashboard prompt:
    Direct SQL:
    select id, customer
    from test
    where date between @startdate and @enddate
    If I enter startdate '31/03/2013 00:00:00' in the dashboard prompt selection:
    OBIEE converts the above query into database date format:
    'YYYY-MM-DD HH24:MI:SS'
    The database is in date format DD-MON-YYY, this results in error ORA-01861: literal does not match format string
    can anyone help with where the date format should be set?
    Thanks

    There are different levels of users on this forum so you need to be more specific and provide examples to novice users....I want user to think on given hints and fix by himself instead of detailed with examples, this would help user to learn and think in new dimensions instead of depending on any one.
    Sometimes I'll be responding more detail based on their registered date with OTN and # posts posted.
    in your case my hint not fired!! so no full points ;)
    Check this
    Re: How set two presentation variables with one prompt
    Edited by: Srini VEERAVALLI on Apr 11, 2013 10:55 AM

  • Issue with referencing Presentation variables(Date cols) in Case statement

    Hi,
    I m trying to reference presentation variables created on a Date column in the case statement of one of the request's columns as shown below:
    case when "- Quote Details"."Creation Date" between '@{from}{1999-1-1}' and '@{until}{2999-1-1}' then "- Quote Metrics"."# of Quotes" end
    I m getting a view display error with the below error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1861, message: ORA-01861: literal does not match format string at OCI call OCIStmtExecute
    SQL Issued: SELECT "- Quote Types"."Level2 Name" saw_0, case when "- Quote Details"."Creation Date" between '4/1/2009' and '4/15/2009' then "- Quote Metrics"."# of Quotes" end saw_1 FROM "(Unity) Quotes Catalog" WHERE "- Quote Details"."Creation Date" BETWEEN timestamp '2009-04-01 00:00:00' AND timestamp '2009-04-15 00:00:00' ORDER BY saw_0
    When I created the prompt on the date field I put the following formula in the prompt:
    cast("- Time".Day as DATE)
    When I apply a filter on the request using these variables it works fine.
    If anyone has faced this kind of issue earlier and have a resolution, please help me out.
    Thanks,
    Kartik

    Thanks Goran!!
    I've created prompts by selecting columns from the logical tables (i.e. I've selected 2 different cols of datatype DATE...inorder to assign 2 presentation variables).
    Yes I m using calendar widget for prompts.
    I haven't included any filter in my report. I m trying to display a metric when it satisfies the case statement.
    I will defintley go through the blogs you mentioned for better understanding.
    Thanks,
    Kartik
    Query fired on physical db:
    WITH
    SAWITH0 AS (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5
    from
    (select T192898.QLS_FIRST_ACAP_DT as c1,
    TO_DATE('3/2/2009','mm/dd/yyyy') as c2,
    TO_DATE('4/29/2009','mm/dd/yyyy') as c3,
    T188666.LEVEL2_NAME as c4,
    T188666.ID as c5,
    ROW_NUMBER() OVER (PARTITION BY T188666.ID, T192898.QLS_FIRST_ACAP_DT ORDER BY T188666.ID ASC, T192898.QLS_FIRST_ACAP_DT ASC) as c6
    from
    XXSLS_GBL_QTE_TYPES_V T188666,
    XXSLS_GBL_QTE_DTL_F T192898
    where ( T188666.ID = T192898.QUOTE_TYPE_ID )
    ) D1
    where ( D1.c6 = 1 ) ),
    SAWITH1 AS (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3
    from
    (select count(distinct T192898.QUOTE_HEADER_ID) as c1,
    T188666.LEVEL2_NAME as c2,
    T188666.ID as c3,
    ROW_NUMBER() OVER (PARTITION BY T188666.ID ORDER BY T188666.ID ASC) as c4
    from
    XXSLS_GBL_QTE_TYPES_V T188666,
    XXSLS_GBL_QTE_DTL_F T192898
    where ( T188666.ID = T192898.QUOTE_TYPE_ID )
    group by T188666.ID, T188666.LEVEL2_NAME
    ) D1
    where ( D1.c4 = 1 ) ),
    SAWITH2 AS (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3
    from
    (select case when SAWITH1.c2 is not null then SAWITH1.c2 when SAWITH0.c4 is not null then SAWITH0.c4 end as c1,
    case when SAWITH0.c1 between SAWITH0.c2 and SAWITH0.c3 then SAWITH1.c1 else NULL end as c2,
    case when SAWITH0.c5 is not null then SAWITH0.c5 when SAWITH1.c3 is not null then SAWITH1.c3 end as c3,
    ROW_NUMBER() OVER (PARTITION BY case when SAWITH0.c5 is not null then SAWITH0.c5 when SAWITH1.c3 is not null then SAWITH1.c3 end , case when SAWITH1.c2 is not null then SAWITH1.c2 when SAWITH0.c4 is not null then SAWITH0.c4 end ORDER BY case when SAWITH0.c5 is not null then SAWITH0.c5 when SAWITH1.c3 is not null then SAWITH1.c3 end ASC, case when SAWITH1.c2 is not null then SAWITH1.c2 when SAWITH0.c4 is not null then SAWITH0.c4 end ASC) as c4
    from
    SAWITH0 full outer join SAWITH1 On SAWITH0.c5 = SAWITH1.c3
    ) D1
    where ( D1.c4 = 1 ) )
    select SAWITH2.c1 as c1,
    SAWITH2.c2 as c2
    from
    SAWITH2
    order by c1

  • Displaying a presentation variable in a certain format

    Hi Experts
    I have got presentation variable called WeekBetween, which is set by a slider (that is a dashboard prompt)
    When output the value of this variable (in a textbox @{WeekBetween}) it says *'1,53'*
    While the values are right, i would want this value to be formatted in the following way
    *1- 53*
    Please can someone help or suggest an accurate answer
    Kind Regards
    Hiten

    You can use the Replace function mentioned above only in column formula. If you do not want to use column formula to display this value, then you can opt for Javascript replace function. To implement it, you need to replace your presentation variable in text object with below code and ensure to check Contains HTML markup checbox.
    <div id=custDiv>@{WeekBetween}{Default Value}</div>
    <script>
    var i = document.getElementById('custDiv').innerHTML;
    document.getElementById('custDiv').innerHTML= i.replace(","," - ");
    </script>
    Let me know if this works for you.

  • VBA:comboboxes to present same date in different formats...ADAPT WITH CHANGE IN DATE

    Hi all, 
    I'm very new to VBA and excel development, so please take that into consideration as you read on.
    I'm trying to create a work form for a database that (should) collect various information in comboboxes, including the date, the weekday, and the month... Note: most of the time, the data will be inserted the day after it's been collected. So, I wanted to create
    one combobox for the date, one for the weekday, and one for the month, because I want columns for each of these in the database (If this is not necessary/efficient, please help! :) ) . 
    Here's what I've got so far:
    'worksheet setup
    Dim ws As Worksheet
    Set ws = Worksheets("LookupList")
    'Date dropdown setup
    Dim cDateToday As Range
    For Each cDateToday In ws.Range("DateList")
    With Me.cboDate
    .AddItem cDateToday.Value
    End With
    Next cDateToday
    'If today is Monday, then set date to last friday, if any other weekday, set it to day before that
    If Weekday(Date - 1) <> 2 Then
    Me.cboDate.Value = Format(DateAdd("D", -Weekday(Date) - 1, Date), "Medium Date")
    Else
    Me.cboDate.Value = Format(Date - 1, "Medium Date")
    End If
    Problem #1: Right now, I am getting the date values from the list
    DateList in the worksheet LookupList...is there a better way of doing this?
    Problem #2: When the user form is run, the correct date and format shows up. However, if I change the date, the dropdown list in the combobox starts from the initial date in given list...is there anyway to bring the list closer to the current
    date? Think Calendar View
    Problem #3: I want the weekday and month values to be directly correlated to the date value discussed above, so hypothetically when the user form is run the correct date, weekday, and month all show up (based on the same date value), then if
    I change the date, the weekday and month automatically update. Is this possible, if so how?
    The reason I want this functionality is so that on a Monday, I can run the work form and it will automatically have Friday's date, weekday, month info as it opens. When I'm done with Friday, I can run it again, switch the date to the Saturday's
    date (weekday and month automatically update), then repeat for Sunday.
    I have tried running the same code for the weekday and month as I have for the date, and they work
    until the date is changed. Once the date is changed, I have to manually change the weekday, which leads to format change, and same for month, which all leads to :( and confusion
    Again, I am very new to vba and don't know much about it all and appreciate any/all help!
    Thanks in advance!
    /Alex

    I can give you a little advice but I don't understand your comment "if I change the date, the weekday and month automatically update" Where do you want them to update?
    I am assuming that your entire question is referring to a Userform with the Combobox. Is this correct?
    The code can be much simpler to populate the combobox list. You already have a named range for the Dates so you can use that directly to populate the RowSource. (RowSource if the combox is on a Userform or ListFillRange for a combobox on a worksheet).
    Then the WorksheetFunction Workday can be used to get the previous workday without weekend days. It also looks after the previous day when the actual date is mid week. Look up the function on the worksheet Help because you can also have a separate list
    of holidays that will be excluded like weekend days.
    If you are new to VBA then a tip about Help. You need to be on the worksheet and click Help to get worksheet help and in the VBA editor you click Help to call the VBA help. Don't just select Help off the taskbar when changing between the worksheet and VBA
    because you will finish up with the incorrect Help file.
    Example of code to assign a named range to the RowSource of a ComboBox. Named range needs to be Global and not scoped to a worksheet otherwise the worksheet name is also required. 
        Me.cboDate.RowSource = "DateList"
    Example of code to assign the previous workday to the combobox value.
        'Following line sets value to previous workday (Mon to Friday)
        Me.cboDate.Value = WorksheetFunction.WorkDay(Date, -1) 
    Then there is another problem with ComboBoxes and dates. If the Dates are real dates on the worksheet (Not Text)  then the dropdown list displays in the same format as the worksheet but when the date is selected, it displays as a serial number. This
    can also be rectified with code but first I need to know what the format of the data is on the worksheet.
    Can you upload a copy of your workbook because it is like a picture is worth a thousand words. Same goes for having a copy of the workbook. If it has sensitive data then create a copy and remove the sensitive data.
    Regards, OssieMac

  • OBIEE 11g:  Use presentation variable in Column Heading

    Hi everyone,
    I was playing around with sample app dashboards and I saw a dashboard prompt that they converted into a column selector. I liked it and reproduced it in my own sandbox.
    I like the results, however, I would also like to change the column heading to clearly reflect which measure was selected. It's pretty clear when you are looking in the dashboard, but once you export the data, it can be confusing which measure was selected.
    That is why I would like to use a presentation variable in the column heading section. I tried to do this but it interpreted it as a literal instead of evaluating the statement.
    Is there anyway to get a variable in the column heading?
    Thanks!
    -Joe

    Hi,
    Have a look at the following links:
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    show the presentation variable on table column header
    Define presentation variable in column header
    hope it helps.
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • Date in german version

    hello,
    i want to create a form letter with the actual date.
    how can i get the actual date in a german version ?
    e.g. 24. April 20002
    i just get english versions of date.
    thank you
    Thorsten Lorenz

    Hi lorzen
    To get the date in German format all u have to do is to set
    NLS_LANGUAGE German
    example
    select sysdate from dual;
    result
    23-MDR-87
    hope that helps u
    wafaa

  • Presentation variable in column name

    Is there any way to add in column name presentation variable?
    Example
    *2007* =tmp_2ybefore
    *2008* =tmp_ybefore
    This variables are defined in prompt
    Sale *2007* -- Sale *2008*
    1,22------------2,86
    4,44------------3,29
    Edited by: Micek on 2009.04.10 09:15

    hi
    check this...
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    but it has its own disadvantages.... see

  • Presentation Variable in column heading

    Hi All,
    i have to use presentation variable in column heading. I can use it like @{presentation_variable} . I need to use @{presentation_variable}+15 in column header. what can i do for such a requirement. for example i have to display between 20 to 30 days in column header... 20 will be passed through presentation variable and i need to add 10 for displayng 30.
    thanks in advance for any help and any help will be appreciated..

    Hi,
    Have a look at the following links:
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    show the presentation variable on table column header
    Define presentation variable in column header
    Thanks
    Deva
    Edited by: Devarasu on Nov 17, 2011 3:03 PM

  • Date format is changing in presentation variable

    Hello,
    I have a problem with date stored in presentation variable.
    I have simple prompt with calendar field (default date value is setted from repository or session variable to current date). Selected date is stored in PP_DATE presentation variable.
    I have simple report with title to show the content of variable PP_DATE.
    And now the problem.
    When I navigate to dashboard page with this report I will get date from PP_DATE variable in some format (there is difference when I use repository or session variable). After I will push the start button I will get another date format from PP_DATE variable.
    Screenshots are stored and described in this PDF: [PDF with screenshots|https://docs.google.com/uc?export=download&id=0B2LOPOBteIShMDRmYTJlYTItNmYyZC00ODdkLWE5NjktNzI1N2RlNWMwZjBk]
    There is difference between session and repository variable. When I use repository variable I will get 'TIMESTAMP .......' from PP_DATE variable, which is the default initializer in repository variable manager. I tried to delete default initializer, but I is automatically added after saving changes.
    When is the default value of prompt setted from session variable I will get another format of date from PP_DATE variable which refers to DATE_TIME_DISPLAY_FORMAT = "yyyy-mm-dd hh:mi:ss.mss" (from NQSConfig.ini). I have changed DATE_TIME_DISPLAY_FORMAT from standard value "yyyy/mm/dd hh:mi:ss" to "yyyy-mm-dd hh:mi:ss.mss" because I am reading some data from excel, where are dates stored in MSSQL format. But this is not the reason of my problem. I have the same problem also with standard DATE_TIME_DISPLAY_FORMAT.
    The result of this strange behaviour is that I am getting errors when I am doing some calculations (for example TimeStampDiff) with PP_DATE variable. I am getting error when I am navigating to dashboard page. Everything is ok after I will push the start button.
    Do you have some tips?
    Thank you

    Kishore Guggilla wrote:
    Hey,
    you are talking about so many pieces here seems..
    first letz break down your issues list..
    1. error, this is because of default date(using repository variable) used in prompt..
    2. using presentation variables in timetampdiff functions..
    3. showing variable in title list..
    we'll go through each issue..
    because, its' messed up..I think that everywhere is the same problem. So solving issue number 1 will solve my other problems.
    "1. error, this is because of default date(using repository variable) used in prompt.. "
    I want to use date prompt with default date value (from repository or session variable) and then use pp_date presentation variable from this prompt to filter my results.
    I would like to use repos. or session variables, I dont want to write some select to fill default date value in each prompt.
    I tried to change one date in initialization block from "trunc(sysdate, 'DD')" to "to_char(sysdate, 'YYYY-MM-DD')" because it is the same format as DATE_DISPLAY_FORMAT = "yyyy-mm-dd" in NQSConfig.ini
    And now it seems to be working now.
    I can use repository var. as default date value in my prompt and use date variable pp_date to filter my results. Report return result after navigation on it and after pushing Go button.
    Can you confirm me that date format in initialization block must be the same as DATE_DISPLAY_FORMAT = "yyyy-mm-dd" in NQSConfig.ini?

  • Date format in presentation variable

    Dear Guru,
    My prompt has a calendar month edit box which is in "YYYY / MM" format. I have set this as a presentation variable p_month.
    Now I need to add 1 month to this presentation variable in the filter, I have tried to write the sql but it is complicated, and it does not work. Anyone could help?
    Thanks a lot,
    Joe

    Thanks, but I have tried the following, it returns a error msg.
    "Snapshot Date"."Snapshot Month" IN ('@{p_snapshot_month}', Timestampadd(sql_tsi_month,1,cast(Evaluate('To_Date(%1,%2)',cast('@{p_snapshot_month}' as char),'YYYY / MM') as date)))
    "Snapshot Date"."Snapshot Month" IN (@{p_snapshot_month}, Timestampadd(sql_tsi_month,1,cast(Evaluate('To_Date(%1,%2)',cast('@{p_snapshot_month}' as char),'YYYY / MM') as date)))
    "Snapshot Date"."Snapshot Month" IN ('p_snapshot_month', Timestampadd(sql_tsi_month,1,cast(Evaluate('To_Date(%1,%2)',cast('@{p_snapshot_month}' as char),'YYYY / MM') as date)))
    Error msg:
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1861, message: ORA-01861: literal does not match format string at OCI call OCIStmtExecute: select distinct D1.c8 as c1, D1.c9 as c2, D1.c24 as c3, D1.c26 as c4, D1.c25 as c5, D1.c17 as c6, D1.c10 as c7, D1.c1 / nullif( 1000, 0) as c8, D1.c7 / nullif( 1000, 0) as c9, D1.c7 / nullif( D1.c6 + D1.c3, 0) * 100 as c10, D1.c6 / nullif( 1000, 0) as c11, (D1.c6 + D1.c3) / nullif( 1000, 0) as c12, (D1.c6 + D1.c3) / nullif( D1.c1, 0) * 100 as c13, D1.c5 / nullif( 1000, 0) as c14, D1.c4 / nullif( 1000, 0) as c15, D1.c2 / nullif( 1000, 0) as c16, D1.c3 / nullif( 1000, 0) as c17, D1.c2 / nullif( D1.c1, 0) * 100 as c18, D1.c11 / nullif( 1000, 0) as c19, D1.c16 / nullif( 1000, 0) as c20, D1.c16 / nullif( D1.c15 + D1.c13, 0) * 100 as c21, D1.c15 / nullif( 1000, 0) as c22, (D1.c15 + D1.c13) / nullif( 1000, 0) as c23, (D1.c15 + D1.c13) / nullif( D1.c11, 0) * 100 as c24, D1.c14 / nullif( 1000, 0) as c25, D1.c12 / nullif( 1000, 0) as c26, D1.c13 / nullif( 1000, 0) as c27, D1.c12 / nullif( D1.c11, 0) * 100 as c28, D1.c18 / nullif( 1000, 0) as c29, D1.c23 / nullif( 1000, 0) as c30, D1.c23 / nullif( D1.c22 + D1.c20, 0) * 100 as c31, D1.c22 / nullif( 1000, 0) as c32, (D1.c22 + D1.c20) / nullif( 1000, 0) as c33, (D1.c22 + D1.c20) / nullif( D1.c18, 0) * 100 as c34, D1.c21 / nullif( 1000, 0) as c35, D1.c19 / nullif( 1000, 0) as c36, D1.c20 / nullif( 1000, 0) as c37, D1.c19 / nullif( D1.c18, 0) * 100 as c38 from (select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, sum(D1.c1) over (partition by D1.c17) as c11, sum(D1.c2) over (partition by D1.c17) as c12, sum(D1.c3) over (partition by D1.c17) as c13, sum(D1.c5) over (partition by D1.c17) as c14, sum(D1.c6) over (partition by D1.c17) as c15, sum(D1.c7) over (partition by D1.c17) as c16, D1.c17 as c17, sum(D1.c1) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c18, sum(D1.c2) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c19, sum(D1.c3) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c20, sum(D1.c5) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c21, sum(D1.c6) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c22, sum(D1.c7) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26 from (select sum(T767750.QUOTA_AMT) as c1, sum(T767750.TOTAL_NEW_PIPELINE_AMT) as c2, sum(T767750.NEW_PIPELINE_AMT) as c3, sum(T767750.M3_QUOTA_AMT) as c4, sum(T767750.M3_PIPELINE_AMT) as c5, sum(T767750.PIPELINE_AMT) as c6, sum(T767750.SALESORDER_AMT) as c7, T767904.PER_NAME_MONTH as c8, case when T540698.FIXED_HIER_LEVEL = 1 then T540698.CURRENT_LVL1_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 2 then T540698.CURRENT_LVL2_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 3 then T540698.CURRENT_LVL3_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 4 then T540698.CURRENT_LVL4_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 5 then T540698.CURRENT_LVL5_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 6 then T540698.CURRENT_LVL6_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 7 then T540698.CURRENT_LVL7_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 8 then T540698.CURRENT_LVL8_E (HY000)
    Edited by: Joe on Oct 8, 2010 2:00 AM

Maybe you are looking for