Prompt for date between..... and ........

Hi Guys,
How could I translate something like this in BI
undefine day
select sum(total_revenue) from resv_history
where day between '&DAY' and '&DAY'
and day between '&DAY' and '&DAY';
So, I would need two prompts where in each I could select a period between two dates. Is it possible at all?
The results should show as below
TOTAL REVENUE
20-APR-07-25-APR-07 20-MAY-08-28-MAY-08
300000 Euro 550000 Euro
Does it make sense?
Thanks and Regards
Giuliano

Hi.
You need four date prompts.
See similar blog entries, everything is there:
OBIEE same dimension different value measures (example with two date prompts - is equal)
http://108obiee.blogspot.com/2009/07/obiee-same-dimension-different-value.html
or
Comparing Arbitrary Time Periods (example with four date prompts - is between)
http://kpipartners.blogspot.com/2009/07/comparing-arbitrary-time-periods.html
Regards
Goran
http://108obiee.blogspot.com
Edited by: Goran O on 2009.08.07 01:06

Similar Messages

  • Calendar prompt for Date variable from bex

    Hi All,
    I have a Bex query where I have a variable on 0CALDAY
    - Customer exit (i_step = 1 to populate with current date)
    - Single value
    - Mandatory
    I created universe on this query and in webI selection screen i do see the variable prompt.
    I am not able to see the current date populated automatically since exit values are not populated to WebI at runtime.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly.
    I am currently on BO XI 3.1 SP3.
    Is there any specific setting in Universe or bex query which is required to get this Calendar prompt instead of list of values for dates?
    Note: When we were on SP1 the universe created then had same variable from bex and it still shows us Calendar prompt but ever since we upgraded to SP3 for the query splitter functionality we not able to get the calendar prompt for date variable in new universe we create
    Thanks
    Ritesh

    Yep.
    Now tell me how you want to show that Prompt @ WebI report level.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly. Exactly, i didn't get this??
    @Prompt:
    You have flexibility to show options like:
    Mono/Multi: User can select Single value or Multiple.
    BW Variable: Same we have (Single/Multiple)
    Free/Constrained: User can Enter his/her value directly or No change option.
    BW Variable: By defalut you will get this, once you made it to Optional input.
    Persistent/Not_Persistent: Refreshed report has to show last selected value means use Persistent otherwise Not_P.
    By seeing the Prompt syntax , I can say your Variable is after Customer Exit, Correct??
    Workaround for your Problem is:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A','Date\LovDate (Previous Day)Base',mono,primary_key)"/></CONDITION></FILTER>
    You have to remove that Date class and objects from prompt syntax. Because of that it showing up LOV's not calendar.
    Like:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A',',mono,primary_key)"/></CONDITION></FILTER>
    Why, It should be blank??
    Because Date needs no class\object to show up, by default you will get Calendar on the fly.
    Hope you got my point.
    Thank You!!

  • ADF security - prompt for user id and password again on page forward

    Hi,
    I am working with ADF using JDeveloper 10.1.3 with Business Components and ADF Faces.
    I have a Search page and a List page.
    Both pages are based on the same view within the same application module.
    The Search page is using the default Find and Execute Operations.
    The Execute button has an action that navigate to the List screen.
    faces-config.xml
    <navigation-rule>
    <from-view-id>/jspx/search.jspx</from-view-id>
    <navigation-case>
    <from-outcome>search</from-outcome>
    <to-view-id>/jspx/list.jspx</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/jspx/list.jspx</from-view-id>
    <navigation-case>
    <from-outcome>find</from-outcome>
    <to-view-id>/jspx/search.jspx</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    Security (Roles and Users) is based on the jazn-data.xml and web.xml
    URL Patterns for the pages have assigned to the role.
    Login Configuration is HTTP Digest Authentication
    <web-resource-collection>
    <web-resource-name>APP_SUPPORT</web-resource-name>
    <url-pattern>faces/jspx/search.jspx</url-pattern>
    <url-pattern>faces/jspx/list.jspx</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>APP_SUPPORT</role-name>
    </auth-constraint>
    <login-config>
    <auth-method>DIGEST</auth-method>
    </login-config>
    Everything is fine when running the application from JDeveloper,
    but when the application is deployed to the server (OC4J),
    After logging into the system, the Search page prompt for user id and password again
    on click of the Execute button.
    Have anyone experience this problem before?
    Thanks for any help.
    Jim

    Hi,
    does the same thing happen if you change your protected resource from:
    <web-resource-collection>
    <web-resource-name>APP_SUPPORT</web-resource-name>
    <url-pattern>faces/jspx/search.jspx</url-pattern>
    <url-pattern>faces/jspx/list.jspx</url-pattern>
    </web-resource-collection>to:
    <web-resource-collection>
    <web-resource-name>APP_SUPPORT</web-resource-name>
    <url-pattern>/faces/jspx/*</url-pattern>
    </web-resource-collection>Brenden

  • 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.

  • KB2986204 - After installing users being prompted for a username and password

    After client machine have installed this update they are now being prompted for a Username and password when launching outlook. Setting up a fresh copy of outlook also prompts.
    Is anyone else having this same issue?

    For anyone still watching this issue, we're now up to 5 updates that cause this behaviour, we're having to block these on WSUS to prevent our customers being prompted for passwords on domain joined machines using NTLM.
    KB2986204
    KB2899504
    KB2956087
    KB2956170
    KB2965270
    Further progress since my last post in February. We upgraded to CU7 and now CU8 and the problem remains, but we think we have tracked the issue and have a case open with MS. If anyone else is able to test and confirm our findings it would be helpful to know,
    below are the key aspects to look for:
    - Outlook 2013 has one of the above updates installed.
    - The UserPrincipalName ([email protected]) is different to the PrimarySMTPAddress ([email protected]) of the mailbox.
    - The computer is domain joined.
    - Mapi/HTTP is configured in the Exchange 2013 organisation.
    - NTLM/Negotiate is used as the authentication mechanism.
    If all of the above aspects are true for your configuration and you are able to re-produce the password prompting try altering the Mailbox PrimarySMTPAddress so that it's the same as the UserPrincipalName.
    In our testing the issue went away when the UserPrincipalName and PrimarySMTPAddress matched, not that it gives us a solution as our customers are quite attached to their vanity email addresses, but it does highlight a specific type of behaviour under specific
    circumstances.

  • Validation For Date,String and Date in a reports Region

    Apex 4
    Good day to all apex users How do I validate a apex_item.text if the value is string the user can only input a string value if it is number then the user can input numbers only and if it is a date the user can only input a date values?

    APEX_ITEMS are not part of the default apex gui... In fact they are just functions which returns html.
    You can however do some stuff with the attributes parameters. You can find some cool stuff over here: Re: Validation For Date,String and Date in a reports Region
    If you want apex validation you need to create a page validation and loop over your apex_items with apex_application.g_f0x
    Br,
    Nico

  • Live meeting - After click Join the Meeting, it prompted for MeetingID, Entry and Location are blank, need to key in information manually

    Live meeting issue:
    After click Join the Meeting, it prompted for MeetingID, Entry and Location are blank, need to key in information manually
    1. It seems OK on Live meeting client settings.
    2. Then uninstall and reinstall live meeting client and addons. live meeting version now is 8.0.6362.41
    3.can schedule live meeting success.
    but issue persists.

    Live meeting issue:
    After click Join the Meeting, it prompted for MeetingID, Entry and Location are blank, need to key in information manually
    1. It seems OK on Live meeting client settings.
    2. Then uninstall and reinstall live meeting client and addons. live meeting version now is 8.0.6362.41
    3.can schedule live meeting success.
    but issue persists.

  • OS users for Data Service and Information Platform Service

    Hello experts,
    We will install SAP Data Server 4.2 Support Package 2 which required Information Platform Service to be installed before.
    Can we use the same operating system user boadm for both software installation and maintenance.
    Thanks & Best Regards,
    Tong Ning

    Hello Dirk Venken,
    Thanks!
    What is the best practice about the uses required for Data Service and IPS? (in one user or two different user.)
    Regards,
    Tong Ning

  • Using oDBDataSource.SetValue for date, price and percentage type

    Hi experts,
    I need to set value to db datasource for date, price and percentage type, below my code:
    oDBDataSource.SetValue("U_ItemPrc", offset, oDataTable.GetValue("U_ItemPrc", i))
    oDBDataSource.SetValue("U_Discount", offset, oDataTable.GetValue("U_Discount", i))
    oDBDataSource.SetValue("U_Data", offset, oDataTable.GetValue("U_Data", i))
                mt.Columns.Item("ItemPrc").DataBind.SetBound(True, "@TC_LIS1", "U_ItemPrc")
                mt.Columns.Item("Discount").DataBind.SetBound(True, "@TC_LIS1", "U_Discount")
                mt.Columns.Item("Data").DataBind.SetBound(True, "@TC_LIS1", "U_Data")
                mt.LoadFromDataSource()
    the column "U_ItemPrc" is a price with 5 decimals
    the column "U_Discount" is a percentage with 2 decimals
    the column "U_Data" is a date
    I get the three matrix column blank!
    How can I set value for these data type?
    please help me.
    Thanks
    Best regards
    Andrea

    I modified the source code following your suggestion but i still have the same problem with db table field with decimal and date.
    below the code:
    Dim oDBDataSource As SAPbouiCOM.DBDataSource = form.DataSources.DBDataSources.Item("@TC_LIS1")
                oDBDataSource.Clear()
                mt.Columns.Item("LineId").DataBind.SetBound(True, "@TC_LIS1", "LineId")
                mt.Columns.Item("ItemCode").DataBind.SetBound(True, "@TC_LIS1", "U_ItemCode")
                mt.Columns.Item("ItemName").DataBind.SetBound(True, "@TC_LIS1", "U_ItemName")
                mt.Columns.Item("TipoList").DataBind.SetBound(True, "@TC_LIS1", "U_TipoList")
                mt.Columns.Item("ItemPrc").DataBind.SetBound(True, "@TC_LIS1", "U_ItemPrc")
                mt.Columns.Item("Discount").DataBind.SetBound(True, "@TC_LIS1", "U_Discount")
                mt.Columns.Item("Data").DataBind.SetBound(True, "@TC_LIS1", "U_Data")
                mt.Columns.Item("ItemDesc").DataBind.SetBound(True, "@TC_LIS1", "U_ItemDesc")
                For i As Integer = 0 To oDataTable.Rows.Count() - 1
                    Dim offset As Integer = oDBDataSource.Size
                    Dim prezzo As Double = oDataTable.GetValue("U_ItemPrc", i)
                    Dim sconto As Double = oDataTable.GetValue("U_Discount", i)
                    Dim data As Date = oDataTable.GetValue("U_Data", i)
                    oDBDataSource.InsertRecord(i)
                    oDBDataSource.SetValue("LineId", offset, oDataTable.GetValue("LineId", i))
                    oDBDataSource.SetValue("U_ItemCode", offset, oDataTable.GetValue("U_ItemCode", i).ToString())
                    oDBDataSource.SetValue("U_ItemName", offset, oDataTable.GetValue("U_ItemName", i).ToString())
                    oDBDataSource.SetValue("U_TipoList", offset, oDataTable.GetValue("U_TipoList", i).ToString())
                    oDBDataSource.SetValue("U_ItemPrc", offset, oDataTable.GetValue("U_ItemPrc", i))
                    oDBDataSource.SetValue("U_Discount", offset, sconto)
                    oDBDataSource.SetValue("U_Data", offset, data)
                    oDBDataSource.SetValue("U_ItemDesc", offset, oDataTable.GetValue("U_ItemDesc", i).ToString())
                Next      
                mt.LoadFromDataSource()
    the prezzo variable store the correct value with decimal but executing the SetValue method I get the matrix column without decimal value.
    the data variable store the correct value but executing the SetValue method I get the matrix column blank.
    It seems the SetValue method works only for string field type.
    What can i do?

  • JDBC Thin Driver Support for Data Encryption and Integrity

    Hello JDev Team,
    I am trying to implement JDBC Thin Driver Support for Data Encryption and Integrity.
    It works fine with java.sql.Connection and java.util.Properties like in the following code:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Properties props = new Properties();
    int level = AnoServices.REQUIRED;
    props.put("oracle.net.encryption_client", Service.getLevelString(level));
    props.put("oracle.net.encryption_types_client", "( RC4_40 )");
    props.put("oracle.net.crypto_checksum_client",Service.getLevelString(level));
    props.put("oracle.net.crypto_checksum_types_client", "( MD5 )");
    Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:main", props);
    etc...
    But I am developing an application with InfoSwing components and it has a different way to connect to Oracle database using oracle.dacf.dataset.connections.Connection, like this:
    sessionInfo1.setAppModuleInfo(new ModuleInfo("bc", "BcModule"));
    sessionInfo1.setConnectionInfo(new LocalConnection("JDBCThin"));
    sessionInfo1.publishSession();
    My question is:
    Is there any way to implement DataEncryption and Integrity into this type of connection?
    Thanks a lot in advance.
    Victor Bykov
    null

    Victor,
    No, you can't do this from DAC, but I've been discussing it with the developer, and we both think this capability would be useful to have, so I've logged it as an enhancement request.
    I do have a question for you. Once you've made the JDBC connection, do you need access to the Connection object afterwards? We're thinking of how the change could be implemented, and one way would be to allow you to pass in a Properties object when creating your own NamedConnection.
    Thanks
    Blaise

  • AS/400 db2 database asks signon to AS/400 prompt for USER ID and PASSWORD when BO report is refreshed by client users

    Post Author: LalitJoshi
    CA Forum: Publishing
    I have created a report which is using  AS/400 db2 database.Connection is setup in a universe and through Client Access ODBC driver.
    Users are trying to connect AS/400 db2 system through ODBC(Client Access ODBC driver)  and full client BO 6.5.
    It asks for signon to AS/400 prompt for USER ID and PASSWORD when BO report is refreshed by users.
    Is there any way i can avoid the USER ID and PASSWORD as it is not feasible to give database USER ID and PASSWORD to each users.

    > SAPClassNotFoundException:
    > com.ddtek.jdbc.db2.DB2Driver
    It looks like your JDBC driver is not found. Have you deployed the driver to XI?
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10</a>

  • Prompt for user id and password during transfer of BI content for install

    Hi! I am trying to install the BI content for SRM. When I select the appropriate data source and transfer, the system will start the transfer and half way through will prompt me to enter the user id and password to the ECC backend system. It will continue the process once I keyed in the id and password. I also get a prompt to logon with user so that the system can check whether I am authorized in BW to transfer datasources into the source system from from the content. I usually reply OK and will have to key in the user id and password again. This time, it will be to the SRM system.
    Any idea whether this is normal or is there something missing in the set up? I have checked the RFC connection and it can connect when I tested the connection via SM59. The ports are also working.
    Appreciate any help on the above.
    Cheers!
    SF

    Hello,
    It is normal only..whenever you try to install Business content which involves the Transfer rules or datasource replicata then it will go to the source system and checks whether active version of Datasource is available or not..
    Fiirst activate the datasource in Source system and then install the flow in BI/BW.
    Hope it helps you..
    Regards,
    Srikanth

  • BEFW11S4 - Constantly prompts for password submission and always fails

    I decided to do a full reset (45s button on back).  I promptly reset the admin password on first login.  All subsequent "APPY" actions in the admin console forces me to a popup login screen where I have to enter password.  This always fails and eventually I'm redirected to a 401 page (see below).   For example if I want to disable wireless or set a WEP key on the main page a popup appears for password but it always results in a 401.  I've tried clearing all browser information and attempted this on both IE 7 and Firefox 2.0.0.9 with similar results.
    1. I don't remember always getting prompted for password before; after initial login.
    2. Popup submission of password on subsequent authorizations always results in a 401.
    Thanks in advance!
    " 401 Authorization RequiredThis server could not verify that you are authorized to access. Either you supplied the wrong credentials(e.g., bad password), or your browser doesn't understand how to supply the credentials required."

    I managed to fix this...
    I found another support thread that indicated "disabling" Norton Internet Security prior to accessing the Linksys console.  It appears NIS was filtering or preventing the username/password being sent in the clear.
    How I did it...
    1. Right click the NIS icon in the desktop tray.
    2. Select "disable" NIS from the menu and enter a time from the drop-down (i.e. 5 minutes).
    3. Return to IE.  Clear all cached data (just in case).
    4. Proceed to login to Linksys!
    Cheers
    James

  • F4 help for Date field and Validation

    Hi Friends,
    I am new to BSP programming .I knew getting F4 help in normal ABAP.But i don't know in BSP .
    I want simple steps to get F4 for a field on Page as well as date field .
    and How to valid those entered dates.
    Presently i am using length 10 character variable for DATE without F4 help and No validation.
    I think you guys will help me out.
    Thanks,
    Venkat.O

    Welcome to SDN.
    for F4 help with validation for dates you can use the following code.
    <htmlb:inputField id         = "wf_ad_date"
                                    type       = "date"
                                    showHelp   = "TRUE"
                                    value = "<%= sy-datum  %>"
                                    visible    = "true"
                                    disabled   = "false"
                                    required   = "true"
                                    maxlength  = "10"
                                    size       = "10"
                                    doValidate = "true"
                                    design     = "standard" />
    For other type of fields check out this weblog by Thomas Jung
    <a href="/people/thomas.jung3/blog/2005/08/22/bsp-value-input-help-popups-version-30 Value Input Help Popups Version 3.0</a>
    Regards
    Raja

  • Have unlocked 3GS from EUR-can I buy a SIM in USA for Data, phone and text?

    Hi -
    I live in Germany and am planning a 3 month trip to the US. I have an unlocked iPhone 3Gs that I would like to use while I am in the states.
    I'm exhausted and confused looking at the various prepaid phone plans in the US and I am not entirely sure that if I get a SIM card for my iPhone, will it even work. Anyone know?
    Has anyone already been down this road and have a recommended prepaid monthly plan that includes unlimited data, texting, and phone calls?
    Thanks for your help.

    After 10 days in Scandinavia, this is what I have learned:
    1.) getting the mini or nano sim has been impossible _ in Sweden, Norway and Denmark the carriers I worked with have the old sim cards that they suggest that you trim down to nano size.  The one I tried was still too thick to fit in the sim card drawer on my iphone 5.
    2.) Verizon was very cooperative and unlocked my phone before I left the USA.
    3.) The Verizon plan may be competitive with plans that cover multiple countries in Europe.  The pricing is sufficiently confusing that providers are hard to compare, ie. initial plan / sim card purchase amout, voice, data, text send / receive rates, varying monthly or package  amounts of mintes and data allowances.
    4.) Keeping cellular data off, using wi-fi has mostly kept cellular data usage low, with a few exceptions resulting from data use for either google or i maps and a probable butt-call or mistaken program left on without wi-fi.
    5.) I am still going to check out France's rate, but I won't report more if the story stays the same.
    Good luck out there.
    Thank you to all that responded.  Even though the information did not help resolve the problem it gave us traction.

Maybe you are looking for

  • Thunderbolt display: devices not discovered after using Mini DisplayPort–to–VGA adapter

    I have an interested problem related to using my MacBook Air in clamshell (closed) mode, connected to a Thunderbolt display. The problem appears to be related to moving my MacBook air between my office and my home. At the office, I use the MacBook Ai

  • How can I open a second window in iTunes?

    When I see some albums in the the iTunes Store I want to check whether I have some of the songs already. The Search function in the Store only refers to the store and not to my Library. So how can I open a second window in iTunes (one with the Store

  • Foreach file enumerator, skip file on error.

    Hi, I'm struck with a small issue.. would be great if somebody can help me out.  Here is te scenario 1. There would be more than one CSV files in INPUT folder. 2. I'm using a Foreach Loop file enumerator to loop thru the files and load the data into

  • Open Dataset for input in BINARY MODE not working after ECC 6.0 upgrade

    Hi All, Our requirement is to download an XML file from the application server and there is a customized program to download these files. This program uses the statement,  Open dataset ...for input in BINARY MODE and it works perfect for 4.7. There w

  • Graphic file attachments ?

    When I send an attachment that contains a graphic file, I don't want the file displayed in the body of the email. I only want to see an icon that represents the attachment. How do I prevent the graphic file from displaying inside the message ? When t