Subtracting Datetime using timestampadd or timestampdiff in Obiee

Hi,
I am trying to subtract the current date to the date i need without using between in the filters but using TIMESTAMPADD OR TIMESTAMPDIFF
For ex
From: 12/01/2013
TO:    12/07/2013
so i want only those records to be shown (between those records as well as the start date and end date)
Thank you,

So what's your problem using TIMESTAMPDIFF?
TIMESTAMPDIFF(SQL_TSI_DAY, Time."Day Date", CURRENT_DATE)

Similar Messages

  • Filter on the reports created using DIRECT DATABASE ACCESS in obiee 10g

    How do i filter on the report that is created by using DIRECT DATABASE ACCESS in obiee 10g?
    I have reprot A with link to report B, report B is created using DIRECT DATABASE ACCESS. so it is just a table, but i need to filter out 2 columns.
    here is the query in REPORT B:
    select strm, acad_group, crse_id, class_section, count(emplid) from v_crse_enrl
    group by crse_id, strm, class_section, acad_group;
    the link in REPORT A:
    '<a target="_blank" href="'||VALUEOF("bi_link")||'Go&Path=CF_CROSS_TEACHING_LIST&ACTION=Navigate&col1=STRM&val1='||view1_DIMEN.STRM||'&col2=CLASS_SECTION&val2='||TRIM(view1_DIMEN.CLASS_SECTION)||'">' ||view1_dimen.class_id||'</a>'
    from this link to report B.
    thank you!!

    I didnt tested using url, but the same works with using presentation variables.
    To your direct sql add where clause for those two columns like WHERE col='@{col1}' and col ='@{col2}'
    and try to run from url.
    let me know updates

  • What is use of protect filter in OBIEE

    Hi guys,
    Could you please let me know what is use of Protect filter in OBIEE ?
    Regards,
    sk

    "Protect filter" basically "hard-codes" a filter so that it won't be overwritten.
    Say you want to always filter a column for "X," but also want to include a value from a dashboard prompt. So you write the following:
    table.column = 'X'
    or
    table.column "Is prompted"
    The user chooses the value "Y" from the prompt and the filters now look like this:
    table.column = 'Y'
    or
    table.column = 'Y'
    Gone is the "X" value because it was overwritten by the prompt. If you protect the top filter, you will get:
    table.column = 'X'
    or
    table.column = 'Y'

  • Is it possible access to dashboards by using network users insted of obiee

    Hi,
    can anybody have idea about this
    is it possible access to dashboard by using network users.insted of obiee users.i.ewhen you are login into presentation services it will ask user name and password. in this case it will not like that when we are log in to the sysytem by using user name and password.by using that user name and password it can directly access to the dashboard is it possible or not?means that by using network username and password can i able to login to the dashboard by cliking the presentation url.with out asking username and password again.
    please help me
    thanking you

    Yes, you can and if your presentation services are hosted on a windows server, thats lot more easy. While the presentation server is being promoted, you can have users get authenticated using LDAP/AD and that way, you need not go through typing username/pwd once again.
    Configure SSO
    Set IIS authentication to “Windows authentication”:
    Open IIS Manager => Select Default website => Right-click => Properties => Directory Security tab => Authentication and access contol => Edit … => deselect “Enable anonymous access” => Select “Integrated Windows authentication” => Ok => Ok => Select All => Ok
    Open the instanceconfig.xml file (located in OracleBIData\web\config). Set <SSO enabled = “true”>. Save and close file.
    Restart your server and start your OBIEE services.. You are good to go now.
    Like others said, may be you are better off with closing your questions so others can use it.

  • Subtracting DATETIME in OBIEE 11g

    hi Experts,
    I have a requirement in which it will calculate the total number of days delayed:
    The scenario is:
    Planned End Date = 11/11/2012
    Actual End Date = 11/15/2012
    So the expected output will be = 4.
    how can I do this aggregation if the Data Type si DATETIME?
    Thanks,

    That is the correct syntax. Just replace the Planned End Date and Actual End Date with the required columns.
    for ex
    TIMESTAMPDIFF(SQL_TSI_DAY, "Calendar"."Time Id", "Calendar"."End Of Cal Month")

  • Unable to Open RPD in online mode by using the Admin tool in OBIEE 11g.

    Hi All,
    I Installed OBIEE 11g (11.1.1.5) in Linux Box.
    When I am trying to Open the RPD in online mode by using the Admin tool, I am facing the below error.
    Logon failed due to:[nqsError:43113] Message returned from obis
    [nQSError:13037] Cannot connect to BI Security Service,please make sure this is running properly (with SSL ot not) in EM.
    [nQSError:37001] Couldnot connect to the Oracle BI Server Instance.
    All my services are up and the status are Alive,My biserver is in Running Mode and I am able to open the Answers page too.
    I am able to open the same RPD in Offline mode but not in Online mode.
    I Created a System DSN in ODBC Data Source Administrator for opening the RPD by using the OracleBIServer1 driver,still the issue doesnt resolve.
    Any help is highly appreciated.
    Thanks,
    Praveen.
    Edited by: 885630 on Dec 21, 2011 3:33 AM

    Hi All,
    This question is answered.
    The Resolution is
    While Installing the RCU i created two instances so the RPD is not able to take the correct instance.After deleting the other instance now i am able to open the RPD in online mode as it is pointing to only one instance.
    Thanks,
    Praveen.

  • Issue in using rpd and webcat of OBIEE 11.1.1.5 on 11.1.1.6

    Hi All,
    I went through many topics on forums on how to upgrade the rpd and webcat from 11.1.1.5 to 11.1.1.6,it was mentioned that :
    The obiee11.1.1.5.0 RPD,Catalog are supporting in obiee11.1.1.6.0 version. but should deployee it via Weblogic EM(FMW)
    http://obiee11gqna.blogspot.com/2011/05/obiee-11g-deploy-rpd-create-new-catalog.html
    I tried using the same rpd and webcat from obiee 11.1.1.5 and followed the above steps but after services are successfully started I cannot open the rpd in online mode it throws the error:
    Successful completion of init block 'FndGetSecContext' is required.
    could not connect to the bi server instance
    and also on opening webcat its not accepting the paassword which earlier it had accepted.
    Can someone please let me know what could be the cause for the above issues.
    Thanks in Advance.
    Regards,
    Amrit

    Hi,
    befor deploying your obiee11.1.1.5.0 RPD file just open as offile mode via obiee11.1.1.6. rpd then try check the
    metadata gloable consistency (ctrl+k) then make sure no error i hope there is some issues on your init block its making problem just fix it then try deploy it and refresh GUID then try to login analytics it should work.
    Note: there are some init block (I hope this init block FNDGetSecContext having problem just double check )
    are failed just make sure and delete unused variables and init block and one more thing are u integrated with EBS?
    thanks
    Deva
    Edited by: Devarasu on Jun 21, 2012 1:53 PM

  • Use of lookup table in obiee 11g

    Hi All,
    I am working on OBIEE 11g RPD.
    Under BMM layer, when select logical table and go to there properties, In general section we have lookup table check box.
    what is use of that lookup table check box in obiee 11g.
    Thanx and Regards
    Prashant

    Please go thru this blog...nice explanation on Look up tables - new functionality in 11g
    http://www.rittmanmead.com/2010/08/oracle-bi-ee-11g-lookup-tables-sparse-and-dense-lookups/

  • What is use of set operators in OBIEE

    Hi Guys,
    Colud you please tell me what is main use of Set Operators (Intersection,Union,Union all)in OBIEE.
    Is it mandatory to use them in reports?
    Pls tell me.
    Regards,
    siva

    Hi,
    What scenario we are using set operators.
    For Eg.
    Col 1 is having values:
    A
    B
    C
    Col 2 is having values:
    1
    2
    3
    I have to create a new column in answers having values
    A
    B
    C
    1
    2
    3
    solution:
    You can use SET operators in OBIEE and it's really easy to set it in answers section. So create one request and then add other similar request to it by using UNION operator.
    or
    we can use case statement also.
    2. Is it mandatory to use them in reports?
    Normal reports not mandatory.
    Hope it helps.
    Thanks,
    satya

  • Using Essbase security filter in OBIEE request ?

    Hello,
    We would like to use OBIEE 11.1.1.6 with Essbase source. We already use Essbase security filter (on dimensions).
    For example, "userA" is allowed to access to Entity A and not Entity B and the opposite for "userB".
    If I loggin as "userA" in OBIEE, is it possible for OBIEE to connect to Essbase with "userA" so that Essbase return data only on Entity A and not Entity B ?
    Thanks!

    Hi,
    The way let OBIEE users, have Essbase security filters running for them, is by integrating OBIEE and EPM using Single Sign On. When, both OBIEE and EPM talk to the same Identity Store like OID/MSAD, you can set this up. For more integration steps, refer to http://www.google.com.sg/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDAQFjAA&url=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fmiddleware%2Fbi-foundation%2Fhfm-sso-obiee-1112x-1835570.pdf&ei=O7ElUeCTApGzrAeelIHwCw&usg=AFQjCNE1BzMQU6Cwny-0IwcvxkfxeqlONg&bvm=bv.42661473,d.bmk
    Hope this helps.
    Thank you,
    Dhar

  • Using System DSN Credentials in OBIEE 10g

    Hi Gurus/Experts
    This is what i read in one of the blogs... that If the Shared Logon option is not selected, connections through the connection pool use the database user ID and password specified in the DSN
    http://oracle-bi.siebelunleashed.com/articles/more-on-connection-pools/
    Thought of giving it a try..
    so created a System DSN
    In Connection Pool, Disabled the shared logon and chose the ODBC 3.5 and gave the DSN name from the dropdown.
    Now i am getting the below error in the Physical layer itself while viewing data...
    A general error has occurred. [nQSError: 16001] ODBC error state: 28000 code: 1017 message: [Oracle][ODBC][Ora]ORA-01017: invalid username/password; logon denied.
    My Question
    Can we really  use the credentials from the  System DSN , if the Shared Logon is unchecked?
    Note: The DSN is working fine when i test it...
    Thanks
    Ashish

    Let me tell you what i did..
    My Rpd was working fine and i had Shared Logon thing checked...
    Then i read this blog... and i thought of trying it out.. ie trying to use System DSN's credentials to see data... [can we store password in System DSN?]
    After that i went to the connection pool and removed username and password ( ie gave blank or null there) and unchecked the shared logon thing.
    [If i am disabling the shared logon  then whether i give username, password or not should be immaterial .. right?]
    Now i saved the Rpd... and then tried to view the data in physical layer ... its throwing the above error... or in other words its not taking the credentials that i had given while creating System DSN in windows [ ie in Run  type odbcad32 then that DSN stuff]
    Make sure the Physical Schema in Physical Layer RPD (green folder) is same as you have schema name is Database. Its same
    If this option is not selected, connections through the connection pool use the database user ID and password specified in the DSN or in the user profile.Specified in the DSN... see i mean the System DSN ie accessed in windows... and i havent given any user specific logon in OBIEE...
    You can also check the checkbox for required fully qualified names..Its already done...
    Let me know if you need more details
    Thanks
    Ashish

  • Using Essbase as source for OBIEE 10.1.3.3

    Our company is in the process of implementing OBIEE 10.1.3.3 and I was trying to import an Essbase database (7.1.6) as a source for the Physical layer. However it looks like there was a change from 10.1.3.2 to the version we have. The docs show you can select File/Import/XMLA, however in the newer version instead of XMLA you have "From Multi Dimensional...". When I select this option and fill in the Essbase Server name,ID & pswd it crashes the OBIEE Administrator client.
    The error I get before it wants to "Send the Report" mentions this:
    AppName: admintool.exe     AppVer: 10.1.3.3     ModName: essapinu.dll
    ModVer: 7.1.6.6218     Offset: 00008282
    I then tried another way by right clicking on the Physical layer and choose "New Database". In there you have a option for the database of "Essbase". However, even when I fill in the server and ID & pswd I can't find anything in the docs showing you how to have it list the Essbase applications and Databases. According to the Oracle Support the docs for 10.1.3.2 are the latest docs which don't mention anything about connecting to Essbase that I can see.
    Has anyone tried to use Essbase as the database source for OBIEE 10.1.3.3 and been successful? Any info would be helpful!!
    Thanks!

    It is my understanding you need at least 10.1.3.3.2 (upgrade/patch).
    I'm currently on 10.1.3.3.0 and will be using ESSBASE shortly - so we actually have purchased 10.1.3.3.3 (OBIEE Plus).

  • Unexpected result when parsing a datetime using sap.ui.core.format.DateFormat

    I am parsing datetime values in order to use them in an makit Chart.
    My x axis is a time axis with values in the JavaScript datetime format like 1408177125000.
    I wondered about a time shift in my axis and see the following result:
    console.log(Date(fValue) ): Thu Aug 28 2014 18:01:44 GMT+0200 (Mitteleuropäische Sommerzeit)
    console.log(oDateFormat.format(new Date(fValue))): 16.08.2014 11:23:33
    The date in line 01 is correct, the second one (16.8.) is not correct.
    I tried to simulate this behaviour in jsbin but there line 02 only states an error!?
    http://jsbin.com/sodetoyoqaba/1/edit?html,js,console
    I have no clue what is going wrong here. Any ideas?
    P.S. My app is running in SAP HCP Trial with sap.ui.version 1.22.6 while on jsbin it is version 1.22.7
    P.P.S When hitting the code manually in the jsbin console then I also get the wrong date 16.08.2014 there. So you can see the behaviour also there.

    That pretty much makes sense (although ignoring things is not very kind) 
    Good thing: Question is answered.
    Bad thing: The converted date is not what I expected from my datasource :-( At least I know where to search further now .
    Thanks,
    Mark

  • How to pass multiple parameters to Query using START WITH, CONNECT BY OBIEE

    Hi
    I have following oracle query which need to be used as a Data Source in OBIEE Physical Layer. I guess I have to create stored proc. How do I implement this in OBIEE RPD and how do I implement the respective Dashboard prompts for the parameters.
    SELECT
    CIRC.PATH_NAME, CIRC.BANDWIDTH , CIRC.CATEGORY, CIRC.CUSTOMER_ID,
    CIRC.STATUS, CIRC.CUSTOMER_NAME,
    QUER.LEV
    FROM
    CIRCUIT_PATH circ, VAL_CUSTOMER cust,
    ( SELECT
    DISTINCT CIRC_PATH_INST_ID, LEVEL LEV
    FROM
    CIRC_PATH_ELEMENT
    START WITH
    CIRC_PATH_ELEMENT.CIRC_PATH_INST_ID IN ( SELECT
    DISTINCT CIRC_PATH_INST_ID
    FROM
    PORTS a
    WHERE SITE_NAME = @variable('Enter a Site Name')
    AND CARD_SLOT = @variable('Enter a Card Slot')
    CONNECT BY
    PRIOR CIRC_PATH_ELEMENT.CIRC_PATH_INST_ID =
    CIRC_PATH_ELEMENT.PATH_INST_ID
    AND ELEMENT_TYPE != 'K' ) QUER
    WHERE
    circ.circ_path_inst_id = QUER.CIRC_PATH_INST_ID
    and circ.cust_inst_id = cust.cust_inst_id (+)
    ORDER BY
    LEV DESC , CIRC.PATH_NAME ASC, CIRC.BANDWIDTH ASC
    Thanks
    DG

    Hi John
    Thanks. I looked at your URL. I do have package. Just using procedure. So my initialization string (For stored proc in Physical Layer of RPD) is
    exec demo.add_employee(VALUEOF(NQ_SESSION.empid1));
    But when I run request in Answer I get the error
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 900, message: ORA-00900: invalid SQL statement at OCI call OCIStmtExecute: exec demo.add_employee(105); . [nQSError: 17011] SQL statement execution failed. (HY000)
    What should I put in initialization string in RPD?
    Thanks
    DG

  • Problems using TimestampAdd

    We are trying to use this function in a complex join at the physical layer in order to avoid using the ago function. Our initial idea is to join an alias of the fact table to the time dimension with a complex join, where the time dimension month = previous december month of the fact alias
    Our initial idea was to use the following as suggested:
    TimeStampAdd(SQL_TSI_MONTH, -1 * Month(fact.date), fact.date) = fact.date
    So if month is february (i.e. = 2) then the month is moved by -2 months, which would take me back to december. This currently gives no results when we output the metric we are interested in from our fact alias. One thing we see is that the date column has DATE format,not timestamp. Has anyone encountered this kind of problem?

    Thanks for the suggestion again mma, but using the following...
    TIMESTAMPADD( SQL_TSI_MONTH , -(1) * EXTRACT( MONTH FROM Dim_Time_T_Month.ID_MONTH), Dim_Time_T_Month.ID_MONTH) = Fact_ALIAS.ID_MONTH
    ...compiles ok, but no data is returend for the metric im bring over from the fact alias in Answers. Any ideas?

Maybe you are looking for

  • DataGrid with dynamic columns & renderers

    I'm developing using Flash Builder 4 & Flex SDK 4.1. I need to manage very dynamic DataGrid components and keep their definitions, which are all part of a complex item renderer of an Offers list. The objects structure is simplified as follows - Data:

  • ITUNES will NOT add mpeg4 files to library!!!!

    So I've tried many video converters on many settings...the files are fine. They play fine in quicktime. I cannot get the newly made video files into Itunes. .mp4 and .mov files will not add to the library. When i try, absolutely nothing happens Itune

  • Copy File Fails during Recovery on Pavilion DV6 Windows 7

    I need help!  I have a Pavilion DV6 with Windows 7, my hard drive died so I bought a new one, it is just like the one that died.  I ordered the recovery discs from HP  When it gets to 98% on the 2nd disc I get the following message Copy File Fails Fr

  • How can i change the directory permissions?

    my xampp htdocs directory does not include me as a user but has Nobody? how can i change the directory permissions because i cannot edit a file? Thank you

  • Editing problems

    I am capturing slides from a web site; I have encountered a problem with broken lines appearing from a previous screen shot.  The lines follow for about 4 - 6 slides then disappear.  What causes this overlay of lines?  The lines won't show on the act