Applying a Time Parameter to a dimension

I am trying to create a query that pulls back the data based on a Time parameter , [Time].[Time].[Quarter].&[1Qtr 13], etc., but the dimension that I am querying against is a Date field ,  example
[Consolidated Agent].[Earliest Active Contract Date].&[2013-01-01]. What the user wants is a parameter with the Year, Qtr, and Month for 2009-2014 available to choose from.
The only way I have figured out how to make it work is to create members for each time frame. Example:
 member [Consolidated Agent].[Earliest Active Contract Date].[2009] as
aggregate(Filter([Consolidated Agent].[Earliest Active Contract Date].Members,     
InStr( [Consolidated Agent].[Earliest Active Contract Date].CURRENTMEMBER.member_caption,"2009") >0)  )
member [Consolidated Agent].[Earliest Active Contract Date].[Qtr1_2009] as
aggregate([Consolidated Agent].[Earliest Active Contract Date].&[2009-01-01]:
[Consolidated Agent].[Earliest Active Contract Date].&[2009-03-31])
However, I would really like to figure a way to use the Time Dimension in the parameter and have it filter the Earliest Active Contract Date rather than creating 17 members for each year they want in the parameter.
I am in the process of learning MDX and so far have survived with searching the forums. I can't find a previous post that fits my problem this time however, so any help would be greatly appreciated.

You can't restrict the "List of Values" of one parameter based on the value of another parameter within the Reports Builder/Runtime parameter form.
The SQL select statements within LOV's are only executed once. They aren't re-calculated when you enter, leave or change other field values in the parameter form. This is mainly because there is no event model in the Reports parameter form and it only supports basic form functionality.
To do what you're after in a client-server environment you need to create an Oracle Forms "parameter form" and use that to execute the Report using the run_product() call. Actually, you should probably use Oracle Forms for any more generic "form" functionality such as radio buttons or check boxes.
If you're in a Web rather than Client-Server environment, it may be easier to create a JSP based parameter form. You can then use Reports 9i since it has JSP support to assist here.

Similar Messages

  • How to pass a run time parameter in a customized store procedure

    Hi Friend
    I have created customized Store Procedure for some logic. Presently i am executing the Store Procedure through the Data Manager Package.
    But i need to pass a run time parameter at the time of execution the data manager package. Basically i want pass the Materail Dimension Member at the time of data manager execution .
    Looking forward to your views on the same.
    thanks
    krish

    Hi Krish,
    For this, you maintain a script logic and from the script you call the stored procedure alongwith its parameters. Now build a DM on top of the script logic. While running the DM, it should ask the user to select the material members. These members will be automatically passed to the script through %MATERIAL_SET%. In your script, call the stored proc and once of the parameters should be %MATERAIL_SET%.
    Hope this helps.

  • Enforce Maximum Login Time Parameter

    Hello,
    When i set the "Enforce Maximum Login Time" parameter to True and the login time to 5 minutes. After this time, there is no user log out.
    Please is there any way to active this ?
    Thanks,

    Hi Abdelatif,
    When you change this parameter it will only be applied to "new " user logins.This change will have no effect on already logged in users. Have you tried a new login to see if the :05 logout is applied?
    Hope this helps!
    Rob
    Please remember to rate helpful posts........

  • French characters in run time parameter values doesn't show up in emails

    We have a custom workflow with configurations to send email when a request is assigned to a person and also to send email on request rejections.
    We are encountering following issues with respect to French characters that are available in the message body and message subject.
    Issue 1:Notifications are configured in Human Task (ApprovalTask.task) when a task is assigned. Since the message body contains French characters we have used ISO-8859-1 encodings to render the message properly to the user. The message body also has some run time content from the task payload.
    For e.g. À titre de responsable fonctionnel, une demande d''approbation pour un accès informatique vous est assignée.
    Acc&#232;s informatique demand&#233; : <%/task:task/task:payload/ns1:ObjectDetails/ns1:name%>
    In this case all static text values are rendered properly to the end user in his email. However the French characters in run time parameter values doesn't show up properly and has some weird characters.
    Issue 2: Unable to change the default subject shown in the approval task emails i.e. Notifications are configured in Human Task (ApprovalTask.task) when a task is assigned. By default it shows Action Required: Approval. How can this default value be changed?
    Issue 3: We have an Email Activity in Bpel process that follows a task rejection. The emailpayload is ISO-8859-1 encoded and works for the message body. However the email subject shows up with ISO-8859-1 encodings itself and doesn't convert to proper string in the end user's email. Is there any specific setting required for french characters in subject?

    Hi Kulwinder,
    Thanks for your reply.
    In fact I do, I've follewed the "Using SAP HANA Variables with SAP BusinessObjects BI4.0" guide.
    Please note, when I use a fix value to parameter is working fine, for example:
    SELECT *
    FROM "_SYS_BIC"."prueba-concepto/CV_TEST_VAR_II" ('PLACEHOLDER' = ('$$FECHA$$','20130530'))
    But when I set prompt of the DataFoundation parameter I get and error, this is my sentence:
    SELECT *
    FROM "_SYS_BIC"."prueba-concepto/CV_TEST_VAR_II" ('PLACEHOLDER' = ('$$FECHA$$',@Prompt(FECHA)))
    To me is very curious that I can't enter a value in the DataPreview in Hana Studio, because is not requested, even when the input parameter have been set as mandatory
    Have you idea of what could be happening?

  • TIme Parameter from PM to AM Range

    I was just wondering if it was possible to have a time parameter that starts at a PM time to AM time? By default, it doesn't allow me to have a start time i.e. 5 PM to end time i.e. 2 AM.
    Any suggestions would be helpful.
    Thank you in advance,

    This is still an open issue for me. I will re-describe what I now have.
    I have a Start Time and an End Time Parameter and a Time field.
    My selection criteria for Time is: time({table.Time}) >= time({?Start Time}) and
      time({Table.Time}) < time({?End Time})
    When my Start Time is less than my End Time (e.g. 9 AM to 5 PM), my report generates and selects the data between the time range of 9 AM to 5 PM.
    When my Start Time is greater than my End Time (e.g. 5 PM to 9 AM), my report doesn't generate anything. I would like this option so that I can report on what happens after hours. Is this possible?
    Thank you in advance,

  • URL Reporting Time parameter value.

    We have installed Business objects XIR2 and one of our application uses URL reporting to call a crystal report. Parameter values are retrieved from the database and used in the url.  Reports that do not have a time parameter works fine.  Even though I pass the time parameter value Im still prompted for the value.  The format of the url I use is http://hostname/businessobjects/viewrpt.cwr?init=dhtml&apstoken=<token>&prompt0=02:02:20&prompt1=LOCCODE
    where prompt0 is of type par_time.  Could someone please help me with the correct format to use for parameter type time?

    Ted, I checked the prompt order and the prompt type and they are correct.  These reports are working fine on Crystal 9.  Also reports that do not have a time parameter works fine in Crystal 11. Its only when reports with time parameter are called Im prompted for a value to be entered in hh:mm:ss format although I tried passing the value in hh:mm:ss format and Time(hh, mm, ss) format in the url.  The report comes up fine after entering the value in hh:mm:ss value in the prompt.  I tried encoding the url but it didnt work.  If I encode the entire url Crystal prompts me to enter values for all parameters.

  • Passing  Time Parameter to a SQL Script

    I am trying to create an SSIS package that will extract data from a non BPC database  to load into BPC. I am calling the package from DM prompting for the time parameter.  However,   I am having problems passing the parameter to the SQL script.  I am using OLEDB Data source task using the SQL command - Using the following scrip where the '?'' is the prompt for the BPC time parameter.  Any suggestions on how to resolve would be greatly appreciated.
    SELECT
             CASE
                      WHEN LEN(GLAccountNumber)=10
                      THEN LEFT(GLAccountNumber,6)
                      ELSE GLAccountNumber
             END                                                   AS ACCOUNT     ,
             'F_CLO'                                               AS ACCTDETAIL  ,
             'ACTUAL'                                              AS CATEGORY    ,
             RTRIM(CompanyCode)                             AS COMPANY     ,
             RTRIM(CompanyDepartment)                              AS COSTCENTER  ,
             'FM'                                                  AS DATASRC     ,
             'NON_INTERCO'                                         AS INTERCO     ,
             'NOMAT'                                               AS MATERIALS   ,
             'NOPC'                                                AS PROFITCTR   ,
             'LC'                                                  AS RPTCURRENCY ,
             CAST(YearNumber AS CHAR(4)) + '.' + MonthAbbreviation AS [TIME]      ,
             SUM(TransactionAmount)                                AS SIGNEDDAA
    FROM     dbo.GLTransactionDimension a WITH (nolock)
             JOIN dbo.GLTransactionFacts b WITH (nolock)
             ON       a.GLTransactionDimensionKey = b.GLTransactionDimensionKey
             JOIN dbo.DateDimension c WITH (nolock)
             ON       b.EntryDateDimensionKey = c.DateDimensionKey
    WHERE    EntryDateDimensionKey         LIKE
              CASE
                      WHEN RIGHT(?,3)='APR' THEN '200904%'
                      WHEN RIGHT(?,3)='MAY' THEN '200905%'
               END
             AND      RowType = 'T'
    GROUP BY CompanyCode ,
             DepartmentCode     ,
             CompanyDepartment  ,
             GLAccountNumber    ,
             YearNumber         ,
             MonthAbbreviation
    ORDER BY CompanyCode ,
             DepartmentCode     ,
             GLAccountNumber    ,
             YearNumber         ,
             MonthAbbreviation

    Hi Steven,
    Use SQL task without parameter
    Into DM package into Modify script Build a variable where you will build the entire sql string and of course you will be able to pass also the variable.
    After that you will call into Modify scrip something like:
    TASK( Yourtask, SQL, "the entire SQL with parameter")
    Regards
    Sorin

  • Applying ACE connection parameter map?

    How do I apply the connection parameter map in a configuration like this to the service policy int827?  Do I need to define the traffic?  Can I specify only one source destination flow to apply the set tcp half-closed TCP normalization against?
    Any help would be appreciated.
    Thank you all,
    Jon
    policy-map type loadbalance first-match wss-1100-l7slb
      class class-default
        sticky-serverfarm sticky-srcip-1100
    policy-map type loadbalance first-match wss-1101-l7slb
      class class-default
        sticky-serverfarm sticky-srcip-1101
    parameter-map type connection TCPIP_PARAM_MAP
    set tcp timeout half-closed 180
    policy-map multi-match int827
      class wss-1100
        loadbalance vip inservice
        loadbalance policy wss-1100-l7slb
      class wss-1101
        loadbalance vip inservice
        loadbalance policy wss-1101-l7slb
    interface vlan 827
      bridge-group 1
      no normalization
      access-group input etherany
      access-group input ip-any-any
      access-group output ip-any-any
      service-policy input mgmt
      service-policy input int827
      no shutdown
    interface vlan 828
      bridge-group 1
      no normalization
      access-group input etherany
      access-group input ip-any-any
      access-group output ip-any-any
      no shutdown
    interface bvi 1
      mac-address autogenerate
      ip address x.x.x.6 255.255.255.0
      peer ip address x.x.x.7 255.255.255.0
      no shutdown
    ip route 0.0.0.0 0.0.0.0 x.x.x.1

    Yes, you always need to define interesting traffic to apply the connection parameter-map. If you apply "tcp timeout half-closed" to any traffic then you need to define class-map with 0.0.0.0. If you want to apply the
    "tcp timeout half-closed" to the current class-map, then you can assoicate it with a multi-match policy map as below :
    The service policy always applies to the incoming interface.
    parameter-map type connection TCPIP_PARAM_MAP
    set tcp timeout half-closed 180
    policy-map multi-match int827
      class wss-1100
        loadbalance vip inservice
        loadbalance policy wss-1100-l7slb
        connection advanced-options
      class wss-1101
        loadbalance vip inservice
        loadbalance policy wss-1101-l7slb
        connection advanced-options
    Just one more side note for the timeout parameter. The timeout value (default or other wise) remains the same irrespective of normalization or no norm.
    If you have a parameter map configured for timeout then it should still take in affect when you have normalization disabled.
    The only difference is that with normalization enabled, ACE will send a reset back after the timeout expires and will silently drop it when no norm is configured.
    regards
    Andrew

  • Issue with Run time parameter values

    Hi All,
    Am facing an error while loading EBS 11.5.10 Financial data. Problem is, my parameters in the SQL Qualifier query (run time parameters in the SQL query) were not being replaced with appropriate values during run time. This is happening for the task "SDE_ORA_Reverse_GLJournals_ImportReference_Extract" that have SQL query in 'mplt_BC_ORA_XactsimpGlrfExtract' mapplet.
    Ihave checked in parameter file and it have values for those Run time parameters. For some reasons, these values were not being picked up by that SQL query.
    Can someboday help me on this about possible reason(s) behind this?

    There are 5 tasks SDE_PSFT_PayrollFact_Total, SDE_PSFT_PayrollFact_Earnings, SDE_PSFT_PayrollFact_EarningsOther, SDE_PSFT_PayrollFact_Deductions, SDE_PSFT_PayrollFact_Taxes are failing all are with same error READER_1_1_1> PR_18012 SQL Error [
    ORA-00936: missing expression Database driver error...
    I verified the mapplet in that missing expression is $$LAST_EXTRACT_DATE value.
    If you know any workaround for this issue please suggest
    I am attaching one of the error logs.
    DIRECTOR> VAR_27028 Use override value [DataWarehouse] for session parameter:[$DBConnection_OLAP].
    DIRECTOR> VAR_27028 Use override value [PSFT_9_0_HCM] for session parameter:[$DBConnection_OLTP].
    DIRECTOR> VAR_27028 Use override value [12] for mapping parameter:[$$DATASOURCE_NUM_ID].
    DIRECTOR> VAR_27027 Use default value [] for mapping parameter:[mplt_BC_PSFT_PayrollFact_Total.$$INITIAL_EXTRACT_DATE].
    DIRECTOR> VAR_27027 Use default value [] for mapping parameter:[mplt_BC_PSFT_PayrollFact_Total.$$LAST_EXTRACT_DATE].
    DIRECTOR> VAR_27028 Use override value [DEFAULT] for mapping parameter:[$$TENANT_ID].
    DIRECTOR> TM_6014 Initializing session [SDE_PSFT_PayrollFact_Total_Full] at [Wed Dec 10 13:41:44 2008]
    DIRECTOR> TM_6683 Repository Name: [Oracle_BI_DW_Base]
    DIRECTOR> TM_6684 Server Name: [Oracle_BI_DW_Base_Integration_Service]
    DIRECTOR> TM_6686 Folder: [SDE_PSFT_90_Adaptor_Test]
    DIRECTOR> TM_6685 Workflow: [SDE_PSFT_PayrollFact_Total_Full]
    DIRECTOR> TM_6101 Mapping name: SDE_PSFT_PayrollFact_Total [version 1]
    DIRECTOR> TM_6827 [C:\Informatica\PowerCenter8.1.1\server\infa_shared\Storage] will be used as storage directory for session [SDE_PSFT_PayrollFact_Total_Full].
    DIRECTOR> CMN_1805 Recovery cache will be deleted when running in normal mode.
    DIRECTOR> CMN_1802 Session recovery cache initialization is complete.
    DIRECTOR> TM_6703 Session [SDE_PSFT_PayrollFact_Total_Full] is run by 32-bit Integration Service [node01_HSCHBSCGN20031], version [8.1.1], build [0831].
    MANAGER> PETL_24058 Running Partition Group [1].
    MANAGER> PETL_24000 Parallel Pipeline Engine initializing.
    MANAGER> PETL_24001 Parallel Pipeline Engine running.
    MANAGER> PETL_24003 Initializing session run.
    MAPPING> CMN_1569 Server Mode: [ASCII]
    MAPPING> CMN_1570 Server Code page: [MS Windows Latin 1 (ANSI), superset of Latin1]
    MAPPING> TM_6151 Session Sort Order: [Binary]
    MAPPING> TM_6156 Using LOW precision decimal arithmetic
    MAPPING> TM_6180 Deadlock retry logic will not be implemented.
    MAPPING> TM_6307 DTM Error Log Disabled.
    MAPPING> TE_7022 TShmWriter: Initialized
    MAPPING> DBG_21075 Connecting to database [orcl], user [obaw]
    MAPPING> TM_6007 DTM initialized successfully for session [SDE_PSFT_PayrollFact_Total_Full]
    DIRECTOR> PETL_24033 All DTM Connection Info: [<NONE>].
    MANAGER> PETL_24004 Starting pre-session tasks. : (Wed Dec 10 13:41:45 2008)
    MANAGER> PETL_24027 Pre-session task completed successfully. : (Wed Dec 10 13:41:46 2008)
    DIRECTOR> PETL_24006 Starting data movement.
    MAPPING> TM_6660 Total Buffer Pool size is 32000000 bytes and Block size is 1280000 bytes.
    READER_1_1_1> DBG_21438 Reader: Source is [HR90DEV], user [sysadm]
    READER_1_1_1> DBG_21438 Reader: Source is [HR90DEV], user [sysadm]
    READER_1_1_1> BLKR_16003 Initialization completed successfully.
    WRITER_1_*_1> WRT_8147 Writer: Target is database [orcl], user [obaw], bulk mode [OFF]
    WRITER_1_*_1> WRT_8124 Target Table W_PSFT_PAYROLL_F_TMP :SQL INSERT statement:
    INSERT INTO W_PSFT_PAYROLL_F_TMP(EMPLID,EMPL_RCD,PAYGROUP,PAY_PERIOD_START_DT,PAY_PERIOD_END_DT,CHECK_DT,OFF_CYCLE,PAGE_NUM,LINE_NUM,SEPCHK,COMPANY,DEPTID,LOCATION_CD,PLAN_TYPE,BENEFIT_PLAN,BENEFIT_RCD_NBR,DEDCD,DED_CLASS,DED_SLSTX_CLASS,ADDL_NBR,PAY_EARN_START_DT,PAY_EARN_END_DT,ERNCD,COUNTRY,STATE,LOCALITY,TAX_CLASS,PAYROLL_TYPE,PAY_DETAIL_FLG,PAYROLL_AMOUNT,CHANGED_ON_DT,DATASOURCE_NUM_ID,INTEGRATION_ID,TENANT_ID,X_CUSTOM) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
    WRITER_1_*_1> WRT_8270 Target connection group #1 consists of target(s) [W_PSFT_PAYROLL_F_TMP]
    WRITER_1_*_1> WRT_8003 Writer initialization complete.
    READER_1_1_1> BLKR_16007 Reader run started.
    READER_1_1_1> PR_18039 Application Source Qualifier [mplt_BC_PSFT_PayrollFact_Total.Sq_Payroll_Total] is reading from PeopleSoft.
    WRITER_1_*_1> WRT_8005 Writer run started.
    WRITER_1_*_1> WRT_8158
    *****START LOAD SESSION*****
    Load Start Time: Wed Dec 10 13:41:46 2008
    Target tables:
    W_PSFT_PAYROLL_F_TMP
    READER_1_1_1> PR_18008 Application SQ instance [mplt_BC_PSFT_PayrollFact_Total.Sq_Payroll_Total] User SQL Query [SELECT 
    PS_PAY_CHECK.COMPANY , 
    PS_PAY_CHECK.PAYGROUP , 
    PS_PAY_CHECK.PAY_END_DT , 
    PS_PAY_CHECK.OFF_CYCLE , 
    PS_PAY_CHECK.PAGE_NUM , 
    PS_PAY_CHECK.LINE_NUM , 
    PS_PAY_CHECK.SEPCHK , 
    PS_PAY_CHECK.EMPLID , 
    PS_PAY_CHECK.EMPL_RCD , 
    PS_PAY_CHECK.DEPTID , 
    'TOTAL_GROSS' SUMMARY_TYPE,
    PS_PAY_CHECK.TOTAL_GROSS SUMMARY_AMOUNT, 
    PS_PAY_CHECK.CHECK_DT , 
    PS_PAY_CHECK.LOCATION , 
    PS_PAY_CHECK.UPDATE_DT 
    FROM 
    PS_PAY_CHECK 
    WHERE
    PS_PAY_CHECK.PAYCHECK_STATUS IN ('A','F','R') AND 
    PS_PAY_CHECK.PAY_END_DT >= 
    UNION ALL
    SELECT 
    PS_PAY_CHECK.COMPANY , 
    PS_PAY_CHECK.PAYGROUP , 
    PS_PAY_CHECK.PAY_END_DT , 
    PS_PAY_CHECK.OFF_CYCLE , 
    PS_PAY_CHECK.PAGE_NUM , 
    PS_PAY_CHECK.LINE_NUM , 
    PS_PAY_CHECK.SEPCHK , 
    PS_PAY_CHECK.EMPLID , 
    PS_PAY_CHECK.EMPL_RCD , 
    PS_PAY_CHECK.DEPTID , 
    'TOTAL_TAXES' SUMMARY_TYPE,
    PS_PAY_CHECK.TOTAL_TAXES SUMMARY_AMOUNT, 
    PS_PAY_CHECK.CHECK_DT , 
    PS_PAY_CHECK.LOCATION , 
    PS_PAY_CHECK.UPDATE_DT 
    FROM 
    PS_PAY_CHECK 
    WHERE
    PS_PAY_CHECK.PAYCHECK_STATUS IN ('A','F','R') AND 
    PS_PAY_CHECK.PAY_END_DT >= 
    UNION ALL
    SELECT 
    PS_PAY_CHECK.COMPANY , 
    PS_PAY_CHECK.PAYGROUP , 
    PS_PAY_CHECK.PAY_END_DT , 
    PS_PAY_CHECK.OFF_CYCLE , 
    PS_PAY_CHECK.PAGE_NUM , 
    PS_PAY_CHECK.LINE_NUM , 
    PS_PAY_CHECK.SEPCHK , 
    PS_PAY_CHECK.EMPLID , 
    PS_PAY_CHECK.EMPL_RCD , 
    PS_PAY_CHECK.DEPTID , 
    'TOTAL_DEDUCTIONS' SUMMARY_TYPE,
    PS_PAY_CHECK.TOTAL_DEDUCTIONS SUMMARY_AMOUNT, 
    PS_PAY_CHECK.CHECK_DT , 
    PS_PAY_CHECK.LOCATION , 
    PS_PAY_CHECK.UPDATE_DT 
    FROM 
    PS_PAY_CHECK 
    WHERE
    PS_PAY_CHECK.PAYCHECK_STATUS IN ('A','F','R') AND 
    PS_PAY_CHECK.PAY_END_DT >= 
    UNION ALL
    SELECT 
    PS_PAY_CHECK.COMPANY , 
    PS_PAY_CHECK.PAYGROUP , 
    PS_PAY_CHECK.PAY_END_DT , 
    PS_PAY_CHECK.OFF_CYCLE , 
    PS_PAY_CHECK.PAGE_NUM , 
    PS_PAY_CHECK.LINE_NUM , 
    PS_PAY_CHECK.SEPCHK , 
    PS_PAY_CHECK.EMPLID , 
    PS_PAY_CHECK.EMPL_RCD , 
    PS_PAY_CHECK.DEPTID , 
    'NET_PAY' SUMMARY_TYPE,
    PS_PAY_CHECK.NET_PAY SUMMARY_AMOUNT, 
    PS_PAY_CHECK.CHECK_DT , 
    PS_PAY_CHECK.LOCATION , 
    PS_PAY_CHECK.UPDATE_DT 
    FROM 
    PS_PAY_CHECK 
    WHERE
    PS_PAY_CHECK.PAYCHECK_STATUS IN ('A','F','R') AND 
    PS_PAY_CHECK.PAY_END_DT >= ]
    READER_1_1_1> CMN_1761 Timestamp Event: [Wed Dec 10 13:41:46 2008]
    READER_1_1_1> PR_18012 SQL Error [
    ORA-00936: missing expression
    Database driver error...
    Function Name : Execute
    SQL Stmt : SELECT
    PS_PAY_CHECK.COMPANY ,
    PS_PAY_CHECK.PAYGROUP ,
    PS_PAY_CHECK.PAY_END_DT ,
    PS_PAY_CHECK.OFF_CYCLE ,
    PS_PAY_CHECK.PAGE_NUM ,
    PS_PAY_CHECK.LINE_NUM ,
    PS_PAY_CHECK.SEPCHK ,
    PS_PAY_CHECK.EMPLID ,
    PS_PAY_CHECK.EMPL_RCD ,
    PS_PAY_CHECK.DEPTID ,
    'TOTAL_GROSS' SUMMARY_TYPE,
    PS_PAY_CHECK.TOTAL_GROSS SUMMARY_AMOUNT,
    PS_PAY_CHECK.CHECK_DT ,
    PS_PAY_CHECK.LOCATION ,
    PS_PAY_CHECK.UPDATE_DT
    FROM
    PS_PAY_CHECK
    WHERE
    PS_PAY_CHECK.PAYCHECK_STATUS IN ('A','F','R') AND
    PS_PAY_CHECK.PAY_END_DT >=
    UNION ALL
    SELECT
    PS_PAY_CHECK.COMPANY ,
    PS_PAY_CHECK.PAYGROUP ,
    PS_PAY_CHECK.PAY_END_DT ,
    PS_PAY_CHECK.OFF_CYCLE ,
    PS_PAY_CHECK.PAGE_NUM ,
    PS_PAY_CHECK.LINE_NUM ,
    PS_PAY_CHECK.SEPCHK ,
    PS_PAY_CHECK.EMPLID ,
    PS_PAY_CHECK.EMPL_RCD ,
    PS_PAY_CHECK.DEPTID ,
    'TOTAL_TAXES' SUMMARY_TYPE,
    PS_PAY_CHECK.TOTAL_TAXES SUMMARY_AMOUNT,
    PS_PAY_CHECK.CHECK_DT ,
    PS_PAY_CHECK.LOCATION ,
    PS_PAY_CHECK.UPDATE_DT
    FROM
    PS_PAY_CHECK
    WHERE
    PS_PAY_CHECK.PAYCHECK_STATUS IN ('A','F','R') AND
    PS_PAY_CHECK.PAY_END_DT >=
    UNION ALL
    SELECT
    PS_PAY_CHECK.COMPANY ,
    PS_PAY_CHECK.PAYGROUP ,
    PS_PAY_CHECK.PAY_END_DT ,
    PS_PAY_CHECK.OFF_CYCLE ,
    PS_PAY_CHECK.PAGE_NUM ,
    PS_PAY_CHECK.LINE_NUM ,
    PS_PAY_CHECK.SEPCHK ,
    PS_PAY_CHECK.EMPLID ,
    PS_PAY_CHECK.EMPL_RCD ,
    PS_PAY_CHECK.DEPTID ,
    'TOTAL_DEDUCTIONS' SUMMARY_TYPE,
    PS_PAY_CHECK.TOTAL_DEDUCTIONS SUMMARY_AMOUNT,
    PS_PAY_CHECK.CHECK_DT ,
    PS_PAY_CHECK.LOCATION ,
    PS_PAY_CHECK.UPDATE_DT
    FROM
    PS_PAY_CHECK
    WHERE
    PS_PAY_CHECK.PAYCHECK_STATUS IN ('A','F','R') AND
    PS_PAY_CHECK.PAY_END_DT >=
    UNION ALL
    SELECT
    PS_PAY_CHECK.COMPANY ,
    PS_PAY_CHECK.PAYGROUP ,
    PS_PAY_CHECK.PAY_END_DT ,
    PS_PAY_CHECK.OFF_CYCLE ,
    PS_PAY_CHECK.PAGE_NUM ,
    PS_PAY_CHECK.LINE_NUM ,
    PS_PAY_CHECK.SEPCHK ,
    PS_PAY_CHECK.EMPLID ,
    PS_PAY_CHECK.EMPL_RCD ,
    PS_PAY_CHECK.DEPTID ,
    'NET_PAY' SUMMARY_TYPE,
    PS_PAY_CHECK.NET_PAY SUMMARY_AMOUNT,
    PS_PAY_CHECK.CHECK_DT ,
    PS_PAY_CHECK.LOCATION ,
    PS_PAY_CHECK.UPDATE_DT
    FROM
    PS_PAY_CHECK
    WHERE
    PS_PAY_CHECK.PAYCHECK_STATUS IN ('A','F','R') AND
    PS_PAY_CHECK.PAY_END_DT >=
    Oracle Fatal Error
    Database driver error...
    Function Name : Execute
    SQL Stmt : SELECT
    PS_PAY_CHECK.COMPANY ,
    PS_PAY_CHECK.PAYGROUP ,
    PS_PAY_CHECK.PAY_END_DT ,
    PS_PAY_CHECK.OFF_CYCLE ,
    PS_PAY_CHECK.PAGE_NUM ,
    PS_PAY_CHECK.LINE_NUM ,
    PS_PAY_CHECK.SEPCHK ,
    PS_PAY_CHECK.EMPLID ,
    PS_PAY_CHECK.EMPL_RCD ,
    PS_PAY_CHECK.DEPTID ,
    'TOTAL_GROSS' SUMMARY_TYPE,
    PS_PAY_CHECK.TOTAL_GROSS SUMMARY_AMOUNT,
    PS_PAY_CHECK.CHECK_DT ,
    PS_PAY_CHECK.LOCATION ,
    PS_PAY_CHECK.UPDATE_DT
    FROM
    PS_PAY_CHECK
    WHERE
    PS_PAY_CHECK.PAYCHECK_STATUS IN ('A','F','R') AND
    PS_PAY_CHECK.PAY_END_DT >=
    UNION ALL
    SELECT
    PS_PAY_CHECK.COMPANY ,
    PS_PAY_CHECK.PAYGROUP ,
    PS_PAY_CHECK.PAY_END_DT ,
    PS_PAY_CHECK.OFF_CYCLE ,
    PS_PAY_CHECK.PAGE_NUM ,
    PS_PAY_CHECK.LINE_NUM ,
    PS_PAY_CHECK.SEPCHK ,
    PS_PAY_CHECK.EMPLID ,
    PS_PAY_CHECK.EMPL_RCD ,
    PS_PAY_CHECK.DEPTID ,
    'TOTAL_TAXES' SUMMARY_TYPE,
    PS_PAY_CHECK.TOTAL_TAXES SUMMARY_AMOUNT,
    PS_PAY_CHECK.CHECK_DT ,
    PS_PAY_CHECK.LOCATION ,
    PS_PAY_CHECK.UPDATE_DT
    FROM
    PS_PAY_CHECK
    WHERE
    PS_PAY_CHECK.PAYCHECK_STATUS IN ('A','F','R') AND
    PS_PAY_CHECK.PAY_END_DT >=
    UNION ALL
    SELECT
    PS_PAY_CHECK.COMPANY ,
    PS_PAY_CHECK.PAYGROUP ,
    PS_PAY_CHECK.PAY_END_DT ,
    PS_PAY_CHECK.OFF_CYCLE ,
    PS_PAY_CHECK.PAGE_NUM ,
    PS_PAY_CHECK.LINE_NUM ,
    PS_PAY_CHECK.SEPCHK ,
    PS_PAY_CHECK.EMPLID ,
    PS_PAY_CHECK.EMPL_RCD ,
    PS_PAY_CHECK.DEPTID ,
    'TOTAL_DEDUCTIONS' SUMMARY_TYPE,
    PS_PAY_CHECK.TOTAL_DEDUCTIONS SUMMARY_AMOUNT,
    PS_PAY_CHECK.CHECK_DT ,
    PS_PAY_CHECK.LOCATION ,
    PS_PAY_CHECK.UPDATE_DT
    FROM
    PS_PAY_CHECK
    WHERE
    PS_PAY_CHECK.PAYCHECK_STATUS IN ('A','F','R') AND
    PS_PAY_CHECK.PAY_END_DT >=
    UNION ALL
    SELECT
    PS_PAY_CHECK.COMPANY ,
    PS_PAY_CHECK.PAYGROUP ,
    PS_PAY_CHECK.PAY_END_DT ,
    PS_PAY_CHECK.OFF_CYCLE ,
    PS_PAY_CHECK.PAGE_NUM ,
    PS_PAY_CHECK.LINE_NUM ,
    PS_PAY_CHECK.SEPCHK ,
    PS_PAY_CHECK.EMPLID ,
    PS_PAY_CHECK.EMPL_RCD ,
    PS_PAY_CHECK.DEPTID ,
    'NET_PAY' SUMMARY_TYPE,
    PS_PAY_CHECK.NET_PAY SUMMARY_AMOUNT,
    PS_PAY_CHECK.CHECK_DT ,
    PS_PAY_CHECK.LOCATION ,
    PS_PAY_CHECK.UPDATE_DT
    FROM
    PS_PAY_CHECK
    WHERE
    PS_PAY_CHECK.PAYCHECK_STATUS IN ('A','F','R') AND
    PS_PAY_CHECK.PAY_END_DT >=
    Oracle Fatal Error]
    READER_1_1_1> CMN_1761 Timestamp Event: [Wed Dec 10 13:41:46 2008]
    READER_1_1_1> BLKR_16004 ERROR: Prepare failed.
    WRITER_1_*_1> WRT_8333 Rolling back all the targets due to fatal session error.
    WRITER_1_*_1> WRT_8325 Final rollback executed for the target [W_PSFT_PAYROLL_F_TMP] at end of load
    WRITER_1_*_1> WRT_8035 Load complete time: Wed Dec 10 13:41:46 2008
    LOAD SUMMARY
    ============
    WRT_8036 Target: W_PSFT_PAYROLL_F_TMP (Instance Name: [W_PSFT_PAYROLL_F_TMP])
    WRT_8044 No data loaded for this target
    WRITER_1__1> WRT_8043 ****END LOAD SESSION*****
    MANAGER> PETL_24031
    ***** RUN INFO FOR TGT LOAD ORDER GROUP [1], CONCURRENT SET [1] *****
    Thread [READER_1_1_1] created for [the read stage] of partition point [mplt_BC_PSFT_PayrollFact_Total.Sq_Payroll_Total] has completed. The total run time was insufficient for any meaningful statistics.
    Thread [TRANSF_1_1_1] created for [the transformation stage] of partition point [mplt_BC_PSFT_PayrollFact_Total.Sq_Payroll_Total] has completed. The total run time was insufficient for any meaningful statistics.
    Thread [WRITER_1_*_1] created for [the write stage] of partition point [W_PSFT_PAYROLL_F_TMP] has completed. The total run time was insufficient for any meaningful statistics.
    MANAGER> PETL_24005 Starting post-session tasks. : (Wed Dec 10 13:41:47 2008)
    MANAGER> PETL_24029 Post-session task completed successfully. : (Wed Dec 10 13:41:47 2008)
    MAPPING> TM_6018 Session [SDE_PSFT_PayrollFact_Total_Full] run completed with [0] row transformation errors.
    MANAGER> PETL_24002 Parallel Pipeline Engine finished.
    DIRECTOR> PETL_24013 Session run completed with failure.
    DIRECTOR> TM_6022
    SESSION LOAD SUMMARY
    ================================================
    DIRECTOR> TM_6252 Source Load Summary.
    DIRECTOR> CMN_1740 Table: [Sq_Payroll_Total] (Instance Name: [mplt_BC_PSFT_PayrollFact_Total.Sq_Payroll_Total])
         Output Rows [0], Affected Rows [0], Applied Rows [0], Rejected Rows [0]
    DIRECTOR> TM_6253 Target Load Summary.
    DIRECTOR> CMN_1740 Table: [W_PSFT_PAYROLL_F_TMP] (Instance Name: [W_PSFT_PAYROLL_F_TMP])
         Output Rows [0], Affected Rows [0], Applied Rows [0], Rejected Rows [0]
    DIRECTOR> TM_6023
    ===================================================
    DIRECTOR> TM_6020 Session [SDE_PSFT_PayrollFact_Total_Full] completed at [Wed Dec 10 13:41:48 2008]

  • Query time affected when using dimensions that are at a lower grain

    Hi all,
    I have a product dimension that has one hierarchy and 7 levels: All Product -> Category -> BU -> Class -> Department -> SubDept -> Item. The lowest level has about 8 million members. The Department level has about 1500 members
    Some of my Cubes are actually mapped to fact tables where the grain is at Department level. So I've ensured that in the Cube Mappings Editor, the Department Id of the fact table is mapped to the Department level of the Product Dimension, and I can actually see in the Cube's Aggmap, it is using LOAD_STATUS to limit the Product dimension to the Department level members for the aggregation.
    Querying the Cube using SQL brings back the correct result across different level combination, however the query constantly takes about 2 - 3 mins to complete.
    As a test, I've built another dimension that goes down to the Department level only, and issue the same query against the Cube. The difference is significant as the query takes roughly less than 1 second to complete, and returns exactly the same result.
    Any idea? I am using AWM 11.2.0.1.0A
    Thanks

    The stats you posted are puzzling. Usually the sum of loop and fetch time is close to the total time, but there is a big missing chunk of time in your case. It is clearly related to the calculated measures, since removing them solves the problem.
    The most common problem with calculated measures is that they can cause the cube to loop densely (i.e. all logical member combinations) instead of sparsely (i.e. only the member combinations that have data). But I don't think this is the problem in your case since the difference between rows_read and rows_returned is small
    ROWS_READ 212ROWS_RETURNED 185
    NULLTRACK_SUPPRESSED 27>
    If dense looping has happened then the rows_read is often orders of magnitude greater than rows_returned. You can see the looping strategy by running
    select value || ' : ' || details as loop from cube_operations_log where name = 'LOOP_OPTIMIZED'Here is an example of the output for a good (sparse) loop.
    LOOP
    ON : LOOP AGGMAP(PRICE_COST_CUBE_SOLVE_AGGMAP PRICE_COST_CUBE_PRT_TEMPLATE)Here is the output if I add a year to date calc to the cube.
    LOOP
    ON : LOOP UNION(AGGMAP(PRICE_COST_CUBE_SOLVE_AGGMAP PRICE_COST_CUBE_PRT_TEMPLATE
    ) AGGMAP(DENSE(TIME) PRICE_COST_CUBE_SOLVE_AGGMAP PRICE_COST_CUBE_PRT_TEMPLATE))Note that TIME is now looped densely, but the code is still trying to loop the other dimensions sparsely. Finally, here is the loop if I add a random olap dml calculation to the cube.
    LOOP
    DISABLED :There is now no optimized looping and the cube will be looped densely.
    So it may be worth checking the loop descriptor for your fast and slow cases, but my best guess at the moment is that the performance gap has something to do with your specific calculations. If I were you I would add them back one at a time to see if you can find a particular measure, or type of measure, that is causing the slowdown.

  • Real - Time Apply some times uses Archived log file

    Hi All,
    I have a doubt on real time apply in Oracle 10g 10.2.0.4 version where arch process has been configured on primary database and standby has been configured for maximum performance mode with real time apply.
    But in standby alert log file i use to find below message rarely
    Media Recovery Log /oraclearch/oraarch/ctdr/5548.dbf
    Media Recovery Log /oraclearch/oraarch/ctdr/5549.dbfSo my doubt is why archived files are applied as standby has been configured for real time apply where it should apply only from standby online redo log files.
    Also i dont find any information on standby database in the view v$standby_log that these standby online log files have been archived in archived column, so how to find how much of data has been written by rfs process on SRL's...
    -Yasser

    hi,
    As the remote file server (RFS) process writes the redo data to standby redo log files on the standby database, log apply services can recover redo from standby redo log files as they are being filled.
    please check http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/log_apply.htm
    thanks,
    baskar.l

  • SSRS Date and time Parameter

    Hi Forumers'
    Im trying to design a report in SSRS with date and time parameters
    I would like to combined the fromdate,fromtime and stored the value to @Fromdatetime and
    same with also todate,totime into @ToDatetime. i will used this in a where clause condition.
    can you give me guys an idea. btw, i'm using Text queries not stored procedure.
    Right now I tried this query but i got an error.
    The variable name '@FromDatetime' has already been declared. Variable names must be unique within a query batch or stored procedure.
    DECLARE @fromDateTime as datetime, @toDateTime as datetime
    SET @fromdatetime = dbo.getCombinedDateTime(@fromDate,@fromTime)
    SET @todatetime = dbo.getCombinedDateTime(@toDate,@toTime)
    Select
    v.JOURNALID
    ,v.TRANSDATE
    ,v.ITEMID
    ,v.QTY
    ,v.COSTAMOUNT
    ,v.JOURNALTYPE
    ,v.BOMLINE
    From INVENTJOURNALTRANS v with (nolock)
    Where v.TRANSDATE between @FromDatetime and @ToDatetime
    and v.JOURNALTYPE=3
    and v.BOMLINE=0
    Thank you.
    jov

    Hope this will help you. Set a parameter for  @timezoneoffset= 8, including the startdate, Enddate, StartTime,  EndTime and FromDatetime and ToDatetime. Then in your dateset properties navigate to parameters then in the parameter value of @FromDatetetime
    and ToDatetime you created you will combine the @Startdate and Starttime:
    by the way,   @timezoneoffset, set this as hidden in parameter visibility, then in default values under specify values place the 8.
    Here we go:
    In your parameters you have the following data:
    StartDate:             Starttime:
    EndDate:               EndTime:
    in your dataset properies under expression of @FromDatetime and @Todatetime you have to combine the parameter you setup.
    @FromDatetime
    =Parameters!StartDate.Value &" "&Parameters!Starttime
    @Todatetime
    =Parameters!EndDate.Value &" "&Parameters!Endtime
    In your select statement you have to do like this.
    SELECT * FROM WHERE DATEADD(HOUR,convert(int,@timezoneOffset), pt.CREATEDDATETIME) BETWEEN (@fromDateTime)
    AND  (@toDateTime)

  • How do you apply customized time spans to multiple files?

    I have multiple different movie files I am using to create TIFFs.  I have a customized render setting that I apply to all of the different files in the render queue.  Once I apply this Render Setting to all of the files I am having to click on that setting and customize it for time span for a specific end.  This customization option is not available when creating the original customized Render Setting.  Is there a way to apply this specific time span to all of the different files other than having to click on each individual file separately? 

    No. Off hand I'm not even aware of a script for this, but something like this one might be possible to modify to suit your needs.
    Mylenium

  • Create Time Dim from 2 dimensions

    Hi all,
    I have an essbase cube with 2 dimensions related to time.
    Year (Contains Years) and Time (that contains Qtr, Months and days).
    I'm working with OBIEE and would like to know if I can create 1 Time dimension that combines Year and Time so I can have:
    2010
    - QTR1
    -- Jan
    -- Feb
    -- Mar
    2011
    - QTR1
    -- Jan
    -- Feb
    -- Mar
    I've been playing a little bit in the OBIEE BMM, but I get the error "Missing most detailed table for dimension tables [Time, Year]. Could not load navigation space for subject area xxx"
    Any thoughts?
    Thanks

    Any one?

  • Last Aggregation Method not getting applied for Time hierarchy(Y, Q & M)

    Hi,
    OBIEE: 11.1.1.6.2
    In my application there is a measure (closing balance) that we wish pick as LAST when ever we associate this measure to time hierarchy. In order to achieve this configuration we have set the Aggregation method as:
    Logical Column Window > Aggregation tab > Based on Dimensions (checked) > Under Logical Dimension
    Other: SUM(Measure)
    Time Hierarchy: LAST(Measure)
    Now what happens is that when we see this measure against the time hierarchy the the LAST value is not picked up, Example:
    Time-Hierarchy:
    2008
    2008-Q4
    Oct-2008
    Nov-2008
    Dec-2008
    What's happening is, instead of picking the Dec-2008 value, the 2008-Q4 value is displayed as Oct-2008 value. Which means that OBIEE is sorting the months under the Quarter node in alphabetical order (D, N & O) and then picking the LAST value as 'Oct-2008'.
    Kindly suggest what can be done to pick the right node value of Dec-2008.
    Thanks
    Prashant

    Hi,
    chek weather u have any data for DEC-2008 in fact table
    in which level u put the week,month, year hirarchy.chckthe session query weather it is doing any filter or order by
    mark helps
    thanks
    Edited by: Rupesh Shelar on Apr 7, 2013 10:03 PM

Maybe you are looking for