Create prompt with date-filter and initialize it with current date

Oracle BI 11 g
Hi!
I need to create dashboard prompt with date-filter and initialize it with current date. How can I do that?
I tried to create repository initialization block and add variable. But I don't know what should I write to DataSource? I tried to use functions Now(), Current_Date, sysdate (for example, SELECT Now() FROM tbl_Calendar) but without results - when I pressed "Test..." button I got errors - something like "Now() is unknown function" or "Incorrect syntax near key word Current_Date".
After that I tied to use Presentation Variable in Prompt, but also without success ((
Please, help me.

I've created Repository Variable "CurrentDate", using SQL-query like this "select convert(varchar(10), getdate(), 104)" and now this variable is being initialized by value "07.04.2011". But I don't understand how to use this varible in DashboardPrompt! What item in list "Default selection" I should choose - "Variable Expression", "Server Variable" or something else? When I chose "Variable Expression" and write "CurrentDate" I got just string "CurrentDate" when preview Prompt. @{CurrentDate} gave me the same result.

Similar Messages

  • How to create prompt for inline filter?

    HI All. Can anyone plz help me, how to create prompt for inline filter?
    Let me give an examle...
    Suppose I've taken two columns as # of New Invoices and # of Cancelled Invoices
    Now, If I set a date prompt / month prompt, then the "# of cancelled invoices" column will fetch the number of cancelled invoice for that month only, which I have chosen in the prompt. But I want the "# of cancelled invoices" column to fetch data for the month chosen by me in another prompt.
    So, can anyone help me with the sql statement, which will fetch the prompt data (i.e., month / date chosen by the user) automatically and will furnish the result accordingly.
    Thanks.

    To create a column prompt:
    To create a dashboard prompt, use the following sub-procedure.
    Navigate to the Oracle BI Enterprise Edition Home page, locate the global header, hover the mouse pointer over the New menu to access the menu, and select Dashboard Prompt. From the Select Subject Area menu, select the subject area for which you want to create a prompt. The "Definition pane" is displayed.
    Click the New toolbar button in the Definition Pane to access the prompt type selection list. From the list, select Column Prompt. The "Select Column dialog" is displayed.
    Select a column and click OK. The "New Prompt dialog" displays. If your repository is configured for double columns, then ensure that you select the correct display column. For information on double columns, see "Understanding the Double Column Feature".
    The number of columns that you include in a prompt can affect performance. In general, you should limit the number of columns to as few as possible.
    If you are creating a dashboard prompt and want to add or remove related subject areas, then click the Select subject area button in the "Select Column dialog" to display the "Add/Remove Subject Areas dialog".
    To create an inline prompt, use the following sub-procedure.
    Create a new analysis or access an existing analysis for which you want to create a prompt. Click the Prompts tab. The "Definition pane" is displayed.
    Click the New toolbar button in the Definition Pane to access the prompt type selection list. From the list, select Column Prompt. The analysis' selected columns are displayed in the cascading menu that is adjacent to the Column Prompt selection item.
    http://webmastersomesh.com

  • Complex request with range filter and boolean search

    Hi
    I need a build and maintain complex requests to Oracle Endeca Server. These requests could include different types of attributes: string, datetime, int.
    For string attributes I have created a search interface and use boolean search. For datetime attributes I use a range filter. Separately it works as I expected, but it fails with combined search with range filter and boolean search in a single request. As I see from results range filter is completely ignored. What could be wrong with following request?
    <?xml version="1.0" ?>
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
    <ns3:Request xmlns:ns2="http://www.endeca.com/MDEX/lql_parser/types" xmlns:ns3="http://www.endeca.com/MDEX/conversation/1/0">
    <ns3:State/>
    <ns3:Operator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:RecordFilterOperator">
    <ns3:RecordFilter Name="OnlyData">AND(NOT(mdex-property_Key),NOT(mdex-dimension_Key),NOT(mdex-config_Key),NOT(mdex-precedenceRule_Key),NOT(system-group_Key),NOT(system-group-membership_Key))</ns3:RecordFilter>
    </ns3:Operator>
    <ns3:Operator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:SortOperator" Direction="Descending" Key="string_prop" OwnerId="Records"/>
    <ns3:Operator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:RangeFilterOperator">
    <ns3:RangeFilter AttributeName="dateTime_prop">
    <ns3:LowerBound Inclusive="true">2012-07-24T19:47:01Z</ns3:LowerBound>
    </ns3:RangeFilter>
    </ns3:Operator>
    <ns3:Operator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:SearchOperator">
    <ns3:SearchFilter SnippetLength="20" EnableSnippeting="true" Mode="Boolean" Key="orderSearch">multiple_prop : one</ns3:SearchFilter>
    </ns3:Operator>
    <ns3:ContentElementConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:RecordListConfig" HandlerFunction="RecordListHandler" HandlerNamespace="http://www.endeca.com/MDEX/conversation/1/0" Id="Records">
    <ns3:RecordsPerPage>3</ns3:RecordsPerPage>
    </ns3:ContentElementConfig>
    </ns3:Request>
    </S:Body>
    </S:Envelope>
    If my approach is incorrect could you provide me a a better way to handle such requests?
    Regards,
    Eugene.

    Hi Eugene,
    As you know, this issue has been discussed further, so I am posting here the summary of the findings, with the hope that this summary will benefit the Endeca Server user community at large.
    * Boolean search only works with range filters for the AND operator. The documentation link above confirms this.
    *Because of this restriction, you need to build another query that would achieve the same result. Both options are equally good and would achieve the results you need. Two suggestions that we've received were:
    - Option 1. You could perform the key restriction of the search via a restrictive search interface rather than using the boolean match mode. This would involve creating a search interface for each field and then querying against the search interface for the field in question:
    <Operator xmlns="http://www.endeca.com/MDEX/lql_parser/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SearchOperator">
    <SearchFilter SnippetLength="20" EnableSnippeting="true" Mode="All" Key="orderSearch_for_field_multiple_prop">one</SearchFilter>
    </Operator>
    For this option, you would have to create a search interface for each attribute, using the Config Web Service. Here is the topic about loading config documents into the Endeca Server:http://docs.oracle.com/cd/E29805_01/server.230/es_dev/toc.htm#Loading%20configuration%20documents
    - Option 2
    * You could implement the range filter through EQL row expression syntax instead and pass it in via the DataSourceFilterOperator, which acts as a prefilter on all other query logic, using the Conversation Web Service. Thus you might include:
    <Operator xmlns="http://www.endeca.com/MDEX/lql_parser/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="DataSourceFilterOperator">
    <DataSourceFilterString>dateTime_prop <= TO_DATETIME('2012-07-24T19:47:01Z')</DataSourceFilterString>
    </Operator>
    For this option, using the DataSourceFilter does not require you to model the rest of the query in EQL. It will perform slightly better than the filter in option 1 because of the order in which record set intersections are computed, but the difference is likely to be very small.
    Finally, if this addresses your question, please mark this question as answered, so that others can benefit from it on the forum. Big thanks to Endeca Server development team (you know who you are!), for helping to find solutions for this request.
    Julia
    Edited by: JuliaM on Aug 30, 2012 2:05 PM
    Edited by: JuliaM on Aug 30, 2012 2:06 PM

  • Run the data copy and comments copy with the same key

    I want to Run the data copy and comments copy with the same key.
    I tried to challenge in the following way, but it is an error.
    1. Add the process in the process chain [/ CPMB / COPY] process in the process chain that could be new to copy the chain [/ CPMB / COPY_COMMENTS] (see capture)
    2. Select the newly can process chain to add a package, make a change to the script as follows:
    PROMPT(RADIOBUTTON,%TARGETMODE%,"Handling of records",0,{"Copy records with match key","Copy by replacing data in same data region of Entity, Category, Time and Audit ID"},{"0","2"})
    PROMPT(RADIOBUTTON,%RUNLOGIC%,"Select whether to run default logic for stored values after copying",0,{"Yes","No"},{"1","0"})
    PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when importing data.",1,{"Yes, check for work status settings before importing","No, do not check work status settings"},{"1","0"})
    PROMPT(COPYMOVEINPUT,%SELECTION%,%TOSELECTION%,"Select the members to COPY and where to",%DIMS%,0)
    INFO(%TEMPNO1%,%INCREASENO%)
    INFO(%ACTNO%,%INCREASENO%)
    INFO(%SELECTION_KEYDATE%,)
    TASK(/CPMB/COPY_COMMENTS,SELECTION,%SELECTION%)
    TASK(/CPMB/COPY_COMMENTS,TOSELECTION,%TOSELECTION%)
    TASK(/CPMB/COPY_COMMENTS,CHECKLCK,%CHECKLCK%)
    TASK(/CPMB/CM_CONVERT,OUTPUTNO,%TEMPNO1%)
    TASK(/CPMB/CM_CONVERT,ACT_FILE_NO,%ACTNO%)
    TASK(/CPMB/CM_CONVERT,SAPPSET,%APPSET%)
    TASK(/CPMB/CM_CONVERT,SAPP,%APP%)
    TASK(/CPMB/CM_CONVERT,SELECTION,%SELECTION%)
    TASK(/CPMB/CM_CONVERT,TOSELECTION,%TOSELECTION%)
    TASK(/CPMB/CM_CONVERT,KEYDATE,%SELECTION_KEYDATE%)
    TASK(/CPMB/CLEAR_SOURCE_CUBE,CHECKLCK,1)
    TASK(/CPMB/CLEAR_SOURCE_CUBE,SELECTION,%TOSELECTION%)
    TASK(/CPMB/CLEAR_SOURCE_CUBE,KEYDATE,%SELECTION_KEYDATE%)
    TASK(/CPMB/CLEAR_SOURCE_CUBE,DUMPLOADMODE,3)
    TASK(/CPMB/APPEND_LOAD,PREPROCESSMODE,0)
    TASK(/CPMB/APPEND_LOAD,TARGETMODE,0)
    TASK(/CPMB/APPEND_LOAD,INPUTNO,%TEMPNO1%)
    TASK(/CPMB/APPEND_LOAD,ACT_FILE_NO,%ACTNO%)
    TASK(/CPMB/APPEND_LOAD,RUNLOGIC,1)
    TASK(/CPMB/APPEND_LOAD,CHECKLCK,1)
    TASK(/CPMB/APPEND_LOAD,KEYDATE,%SELECTION_KEYDATE%)

    We performed similar transfer of data from one planning model to another using DM package linked to BADI. In your scenario there is additional complexity of doing lookup from DSO and should be possible.
    Also check these references for performing lookup in DSO.
    abap code to populate data from DSO
    something about SAP: How to look for DSO&amp;#8217;s tables?

  • How to create a matrix with constant values and multiply it with the output of adc

    How to create a matrix with constant values and multiply it with the output of adc 

    nitinkajay wrote:
    How to create a matrix with constant values and multiply it with the output of adc 
    Place array constant on diagram, drag a double to it, r-click "add dimension". There, a constant 2D double array, a matrix.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Finding Last friday and Last monday of current date

    Hi
    Please help me to get the Last friday and Last monday of current date using an sql query.
    If I am running query on 7th July 2008 ,it should give me Last friday as 07/04/2008 and Last monday as 07/07/2008
    I need to compare it with another date filed
    eg: Select * from employee where ReportedDate between [Last Friday] and [Last Monday]

    It works many times but fails for this scenario- If today is Friday and I run following query today, it throws today's date, which is incorrect. I need previous Friday's date to be returned everytime.
    select next_day (sysdate-7,'FRIDAY') Last_Friday from dual
    Edited by: user6402026 on May 22, 2013 1:43 PM
    Edited by: user6402026 on May 22, 2013 1:43 PM

  • HT4847 How i can download my backup data? And how to manage the data on i Cloud?

    How i can download my backup data? And how to manage the data on i Cloud?

    You can't download an iCloud backup, except to restore it to your device should you ever need to.
    iCloud data can be managed within the apps on your iPad.  Any changes to the data within the apps corresponding to the data you are syncing with iCloud will take place in iCloud.  You can also manage some of this data on icloud.com from your computer.
    This article explains ways to manage your iCloud storage space, should you need to reduce you iCloud storage: http://support.apple.com/kb/ht4847.

  • How do I delete my email address that is paired with my Droid and replace it with another email address?   thanks!

    How do I delete the email address that Veriozon Wireless rep paired with my Droid and replace it with a different address?

    The easiest way would be to go to menu>settings>accounts & sync, select the account (I'm assuming you're referring to your gmail account, so select google), then press the remove account button at the bottom.  You may lose all your contacts and other data associated with your google account, possibly even your apps, so be aware of this beforehand.  You can then add the new account from the accounts & sync menu. 
    If you are willing to completely start over with your phone, another alternative would be to factory reset it (menu>settings>privacy>factory data reset).  This will return your phone to an out-of-the-box condition, and you can use a different gmail address if you like.

  • I have a MacBook Pro 15" and my warranty just ran out! I partitioned my harddrive into two partitions, one with Snow Leopard and the other with microsoft.This morning I turned on my Macbook Pro and it will not boot into Snow Leopard.

    Good Morning,
    I have a MacBook Pro 15" and my warranty just ran out! I partitioned my harddrive into two partitions, one with Snow Leopard and the other with microsoft.This morning I turned on my Macbook Pro and it will not boot into Snow Leopard. I shut it off took out the battery, reinstalled the battery. Then I put in the Snow Leopard CD and booted up to disk utility and The Snow Leopard partion would not show up?? I do see the microsoft partion.
    I also rebooted holding down the shift key and still no Snow Leopard
    Could you please tell me what I can do, what keys do I press on restart any advice to get Snow leopard back.
    thank you.

    Have you restarted holding down the Opt key?  That procedure should give you a gray screen with all of the partitions that exist.  Then select the SL partition for boot.  Also go to System Preferences and Startup Disk, unlock the lock and select the SL partition as the default boot partition, then relock.

  • HT4550 Why does my Safari open with American version and home page with Apple iPhone 5 advert even though I have changed them in preference

    Why does my Safari open with American version, and home page with Apple iPhone 5 advert even though I have changed them in preferences, it happens every time no matter how many times I change them, when I open Safari its back to the USA and Apple home page.

    Try this.
    Hold the shift key down and launch Safari.
    Best.

  • As I heard, If i get an unlocked iphone 5s, I can use it with my Wind Mobile which i have to have a $40 monthly plan for it. So, I want to buy an Iphone 5s that I can use it here with Wind Mobile and in turkey with my turkish line tht supoprts Iphone.

    As I heard, If i get an unlocked iphone 5s, I can use it with my Wind Mobile which i have to have a $40 monthly plan for it. So, I want to buy an Iphone 5s that I can use it here with Wind Mobile and in turkey with my turkish line that supports Iphone. So, is it possible that I can purchase an Iphone 5s that will be usable within Canada and Turkey? Im asking because, In Turkey, you need to register the Imei of the phone on your Passport to use it. Also, if i buy an unlocked Iphone 5s, will I be down to use it anywhere with any line?

    I dont know if you know the procedure in Canada and Turkey. Wind mobile wasnt supporting Iphones until they decided to let people use Iphone 5s with their $40 plan.And as i know, Turkey is the only country that asks you to register the imei on your passport to use it. So, most of people did not know it. so procedures are changing country by country. Are you sure that If I buy an Iphone 5s from a canadian apple store, use it with my wind mobile line and the turkish line in Turkey?

  • What is considered Data in a Data Plan and how can I reduce data usage?

    What is considered Data in a Data Plan and how can I reduce data usage?

    All the above, if u want to reduce try having your phone on wifi when you can like at home.  Also setting your major downloads only when you connec to wifi like updates etc

  • User start date can not be before the current date

    I'm creating users using the Reconciliation engine. The start date attribute doesn't appear to be reconciling. I get many different types of parse errors. The closest I appear to get is when I set the Xellerate User resource object recon field to have Start date as a date field, i receive the error:
    "User start date can not be before the current date.".
    I'm using 9.0.1.1. And I AM trying to create a user that has a start date before todays date.

    Resolution was to patch to 9.0.1.1578

  • How to only show data that hasn't passed the current data?

    I have some data in an xml file. I can get it to connect fine to an .html page. My question is how do I only show the data that hasn't passed the current date? Can this be done?

    The following is the XML file
    <?xml version="1.0" encoding="utf-8"?>
    <sports>
         <item>
              <date>2010-03-21</date>
              <opponet>Essendon</opponet>
              <location>MCG</location>
              <time></time>
         </item>
         <item>
              <date>2011-01-11</date>
              <opponet>Collingwood</opponet>
              <location>Etihad</location>
              <time></time>
         </item>
         <item>
              <date>2011-03-04</date>
              <opponet>Carlton</opponet>
              <location>Princes Park</location>
              <time></time>
         </item>
         <item>
              <date>2011-03-08</date>
              <opponet>Sydney</opponet>
              <location>SCG</location>
              <time></time>
         </item>
         <item>
              <date>2011-03-21</date>
              <opponet>Brisbane</opponet>
              <location>Gabba</location>
              <time></time>
         </item>
    </sports>
    The following is the HTML
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    function pad(number, length) {
         var str = '' + number;
         while (str.length < length) {
              str = '0' + str;
         return str;
    var dt= new Date()
    var today = dt.getFullYear()
        + '-' + pad(dt.getMonth()+1,2)
        + '-' + pad(dt.getDate(),2);
    var ds1 = new Spry.Data.XMLDataSet("asdf.xml", "sports/item[date > '"+today+"']", {sortOnLoad: "date", sortOrderOnLoad: "ascending", useCache: false});
    alert (today);
    </script>
    </head>
    <body>
    <div spry:region="ds1">
    <table>
        <tr>
          <th spry:sort="date">Date</th>
          <th spry:sort="opponet">Opponet</th>
          <th spry:sort="location">Location</th>
          <th spry:sort="time">Time</th>
        </tr>
        <tr spry:repeat="ds1" spry:odd=".atl" spry:hover=".alt">
          <td>{date}</td>
          <td>{opponet}</td>
          <td>{location}</td>
          <td>{time}</td>
        </tr>
      </table>
    </div>
    </body>
    </html>
    Gramps

  • Creating a time channel in the data portal and filling it with data - Is there a more efficient way than this?

    I currently have a requirement to create a time channel in the data portal and subsequently fill it with data. I've shown below how I am currently doing it:
    Time_Ch = ChnAlloc("Time channel", 271214           , 1      ,           , "Time"         ,1                  ,1)              'Allocate time channel
    For intLoop = 1 to 271214
      ChD(intLoop,Time_Ch(0)) = CurrDateTimeReal          'Create time value
    Next
    I understand that the function to create and allocate memory for the time channel is extremely quick. However the time to store data in the channel afterwards is going to be highly dependent on the length I have assigned to the Time_Ch. In my application the length of Time_Ch is variable but could easily be in the order of 271214 or higher. Under such circumstances the time taken to fill Time_Ch is quite considerable. I am wondering whether this is the most appropriate way of doing things or whether there is a more efficient way of creating a time channel and filling it.
    Thanks very much for any help.
    Regards
    Matthew

    Hi Matthew,
    You are correct that there is a more efficient way to do this.  I'm a little confused about your "CurrDateTimeReal" assignment-- is this a constant?  Most people want a Time channel that counts up linearly in seconds or fractions of a second over the duration of the measurement.  But that looks like you would assign the same time value to all the rows of the new Time channel.
    If you want to create a "normal" Time channel that increases at a constant rate, you can use the ChnGenTime() function:
    ReturnValue = ChnGenTime(TimeChannel, GenTimeUnit, GenTimeXBeg, GenTimeXEnd, GenTimeStep, GenTimeMode, GenTimeNo)
    If you really do want a Time channel filled with all the same values, you can use the ChnLinGen() function and simply set the GenXBegin and GenXEnd parameters to be the same value:
    ReturnValue = ChnLinGen(TimeChannel, GenXBegin, GenXEnd, XNo, [GenXUnitPreset])
     In both cases you can use the Time channel you've already created (which as you say executes quickly) and point the output of these functions to that Time channel by using the Group/Channel syntax of the Time channel you created for the first TimeChannel parameter in either of the above functions.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

Maybe you are looking for

  • Vendor master details report

    Dear all, We need to download all the vendor master data account groupwise from SAP. Is there any standard report available in SAP?? Like we have MM60 for material master data download. Regards, Santosh

  • Substitution for FI Parked document

    Hi all, I have a requirement to make some field like xref2 substitution when I make up a parked document via F-63. I am aware that regular OBBH substitution is not available for parked docs. So the question is do anyone could suggest any standard sol

  • ZET APP force quit and give reopen message (os x yosemite)

    This is the report Process:               Etisalat USB Modem [23405] Path:                  /Applications/Etisalat USB Modem.app/Contents/MacOS/Etisalat USB Modem Identifier:            com.joinair.DataCardUI Version:               PCM_ETIEGYV1.0.0B0

  • Java and txt

    Hello! I'm trying to write code, in order to be able to read/write from/to .txt files. I begun this morning and I've found some very useful things in the tutorials and the lists of this site. So I started writing code, but while everything's OK with

  • Email getting stuck on Deferred Workflow.

    Things we tried- 1.Refresh- Workflow Deferred Notification Agent Listener Workflow Deferred Agent Listener Workflow Java Deferred Agent Listener Workflow Agent Listener Service Workflow mailer Workflow mailer service And 2.Run the workflow background