Predefined Date Ranges as List of Values in Webi Prompt

Hi All
We have a Webi report that has a custom object "Date End" (BW tech name ZDATE_END referencing 0DATE).  Users would like to see in the prompt's List of Values predefined date ranges.
In other words, when the report is executed, for that "Date End" prompt, 2 options should appear in the List of Values:
Current
1 Year
whereby-
"Current" has been predefined as any "Date End" in the range (Current Day) to (31.12.9999)
"1 Year"  is any "Date End" in the range (Current day -365) to (Current Day -1)
I suspect I need to create a Filter condition on the "Date End" object in the Universe Designer and I have been trying with the different operators and prompt settings, etc but I am not getting it right.  The parsing is OK, but the filter is not happening in Webi and the report is bring back all records.
Can anyone please assist with how to create such conditions in the Designer (steps, syntax, etc) ?
We are using SAP BW 7 and Webi XI 3.1 and run on a DB2 database.
Thanks in advance
Anton
Edited by: Anton Vogel on Jul 20, 2011 10:52 AM
Edited by: Anton Vogel on Jul 20, 2011 12:11 PM

Hi All
We have a Webi report that has a custom object "Date End" (BW tech name ZDATE_END referencing 0DATE).  Users would like to see in the prompt's List of Values predefined date ranges.
In other words, when the report is executed, for that "Date End" prompt, 2 options should appear in the List of Values:
Current
1 Year
whereby-
"Current" has been predefined as any "Date End" in the range (Current Day) to (31.12.9999)
"1 Year"  is any "Date End" in the range (Current day -365) to (Current Day -1)
I suspect I need to create a Filter condition on the "Date End" object in the Universe Designer and I have been trying with the different operators and prompt settings, etc but I am not getting it right.  The parsing is OK, but the filter is not happening in Webi and the report is bring back all records.
Can anyone please assist with how to create such conditions in the Designer (steps, syntax, etc) ?
We are using SAP BW 7 and Webi XI 3.1 and run on a DB2 database.
Thanks in advance
Anton
Edited by: Anton Vogel on Jul 20, 2011 10:52 AM
Edited by: Anton Vogel on Jul 20, 2011 12:11 PM

Similar Messages

  • Prompt List of Values in WebI - SAP BI Variable - SAP BI Query -BI Infoset

    Hi,
    We have a Multiprovider built on an Infoset. SAP BI Infoset is built using 2 DSOs.
    There is a SAP BI Query on top of this Multiprovider.
    Multiple-Single Values type Optional Variables are created for some of the Objects of this SAP BI Query.
    Universe is created on top of this SAP BI Query, using SAP Integration kit.
    WebI is created on top of this Universe.
    Prompts are created on some of the Universe Objects, for the WebI report.
    We are facing a typical problem.
    When a WebI prompt is created on one particular object, (which also has a Multiple Single Value type Optional Variable in SAP BI Query), its List of Values is showing up only first three values in WebI. The SAP BI Variable in BEX Analyzer shows up all the 8 values for the List of Values, for the same object.
    The Output WebI report has more values for the object than shown up in the List of Values & this is the problem.
    We tried to keep the settings in Info-object, DSO, Infoset, Multiprovider = Values in Master Data (for the List of Values).
    Similar objects and similar variables for the same query / webi show all the List of Values.
    Any guidance on aspects to be checked would be helpful.
    regards,
    Rajesh K Sarin

    Problem :
    If an SAP BI Infoset is used in data modelling, and a restricted key
    figure is created in the SAP BI Query; the resultant WebI Object Prompt
    for the Info-object, only shows up LOVs which have been used for the
    restricted Key Figure. Both the things are not related except for the
    fact that some of the values for the same object are used for the
    restricted key figure.
    Details :
    We have a Multiprovider built on an SAP BI Infoset.
    SAP BI Infoset is built using 2 DSOs.
    There is a SAP BI Query on top of this Multiprovider.
    There is a restricted key figure in the sap bi query. KeyFigure "Number
    of Records" is restricted for 3 of the relevant Info-object "Meter
    Reading Status" values.
    Universe is created on top of this SAP BI Query, using SAP Integration
    kit. WebI is created on top of this Universe.
    Prompt is created on the Universe Object for Meter Reading Status, in
    the WebI report.
    List of Values is showing up only the three values in WebI (which were
    used in the Restricted Key Figure calculation).
    SAP BI Variable in BEX Analyzer for the same Info-object Meter Reading
    Status shows up all the 8 values for the List of Values.
    The Output WebI report has more values for the object than shown up in
    the List of Values & this is the problem.
    We have kept the settings in Info-object, DSO, Infoset,
    Multiprovider, Query = Values in Master Data (for the List of Values).
    When we delete the "Restricted Key Figure" from the SAP BI Query, the
    refreshed Universe and Webi have a complete set of List of Values
    applicable.   
    Steps for Reconstruction    
    1. Create Infoset
    2. Create SAP BI Query on Infoset
    3. Create Restricted Key Figure for Number of Records and few of the
    values for a characteristic info-object "X".
    4. Create BO Universe on SAP BI Query
    5. Create Webi on BO Universe
    6. Create a Prompt on the characteristic info-object "X".
    7. Check List of Values for the characteristic info-object "X" in SAP
    BI Query and WebI.
    8. LOVs in WebI are equal to the values used for restriction in the
    restricted key figure.
    9. Delete the restricted key figure from SAP BI Query.
    10. Refresh Universe
    11. Webi prompt shows all the values for the prompt on "X".

  • Date Parameters and List of Values (error message date format cannot be nul

    I'm new to BI Publisher. I began with a simple report that has 4 parameters. The parameters are center code, sales date, customer number, and job number. I am trying to create a list of values on my customer number based on the center code and sales date entered by the user. My query for my LOV is:
    select customer_nbr
    from ticket
    where center_cd = :center
    and trunc(trans_date) = :salesDate
    salesDate is defined as a date parameter with a format of MM-dd-yy. It's default value is 04-10-07.
    When I attempt to view my report after adding the LOV, I receive the error:
    Date format can not be null.
    What am I doing wrong? Also, I would like the salesDate to default to the current date. I have tried using sysdate as the default value. This isn't working. The salesDate defualts to null when it is set to sysdate.

    "Date - allows the user to enter a date as a parameter. Note that the data type must also be "Date" and the format must be Java date format."
    Page 4-9, Adding Parameters and Lists of Values
    Oracle® Business Intelligence Publisher
    Report Designer's Guide
    Release 10.1.3.4
    Part No. E12187-01

  • Entering data as a List of value associated to a field in the form that I created.

    There are 300 values that I need to upload to this drop down field  called  OFFICE LOCATION on my form.
    Is there any easier way of doing it other than manually uploading them?
    Also I have another field called REGION. Can I build a relation between the two field?

    Hi;
    There is no method to import the data into the field.
    We do have a "Feature Request" form where you can vote on popular existing ideas or add a new one of your own:
    https://adobeformscentral.com/?f=XnF-KJVCovcEVQz9tZHYPQ
    As to building a relationship, it depends on what you need to do.  FormsCentral has "Show/Hide" logic where you can show or hide items based on the selection/s of other field/s.  There are both "Page Skip logic" and "Show/Hide" logic, this tutorial shows how to use the Skip logic and doesn't really cover show/hide logic but you should get the idea: https://www.acrobat.com/formscentral/en/library/skip.html
    Thanks,
    Josh

  • Selecting missing date range with previous records value

    Hello,
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SET DEFINE OFF;
    create table t(NBR_OF_S number, NBR_OF_C number, S_DATE date);
    Insert into  T
       (NBR_OF_S, NBR_OF_C, S_DATE)
    Values
       (34, 40, TO_DATE('05/01/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into  T
       (NBR_OF_S, NBR_OF_C, S_DATE)
    Values
       (27, 29, TO_DATE('03/01/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into  T
       (NBR_OF_S, NBR_OF_C, S_DATE)
    Values
       (21, 23, TO_DATE('12/01/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into  T
       (NBR_OF_S, NBR_OF_C, S_DATE)
    Values
       (19, 20, TO_DATE('10/01/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into  T
       (NBR_OF_S, NBR_OF_C, S_DATE)
    Values
       (18, 19, TO_DATE('09/01/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into  T
       (NBR_OF_S, NBR_OF_C, S_DATE)
    Values
       (17, 17, TO_DATE('08/01/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into  T
       (NBR_OF_S, NBR_OF_C, S_DATE)
    Values
       (16, 16, TO_DATE('06/01/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into  T
       (NBR_OF_S, NBR_OF_C, S_DATE)
    Values
       (9, 9, TO_DATE('12/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into  T
       (NBR_OF_S, NBR_OF_C, S_DATE)
    Values
       (5, 5, TO_DATE('11/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    Insert into  T
       (NBR_OF_S, NBR_OF_C, S_DATE)
    Values
       (2, 2, TO_DATE('01/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
    COMMIT;
    SQL> select * from t order by 3 desc;
      NBR_OF_S   NBR_OF_C S_DATE
            34         40 01-MAY-12
            27         29 01-MAR-12
            21         23 01-DEC-11
            19         20 01-OCT-11
            18         19 01-SEP-11
            17         17 01-AUG-11
            16         16 01-JUN-11
             9          9 01-DEC-10
             5          5 01-NOV-10
             2          2 01-JAN-10
    10 rows selected.I want the output like as follows, all those missing date i need to carry on the last one's number
      NBR_OF_S   NBR_OF_C S_DATE
            34         40 01-MAY-12
            27         29 01-APR-12
            27         29 01-MAR-12
            21         23 01-FEB-12
            21         23 01-JAN-12
            21         23 01-DEC-11
            19         20 01-NOV-11
            19         20 01-OCT-11
            18         19 01-SEP-11
            17         17 01-AUG-11
            16         16 01-JUL-11
            16         16 01-JUN-11
             9          9 01-MAY-11
             9          9 01-APR-11
             9          9 01-MAR-11
             9          9 01-FEB-11
             9          9 01-JAN-11
             9          9 01-DEC-10
             5          5 01-NOV-10
             2          2 01-OCT-10
             2          2 01-SEP-10
             2          2 01-AUG-10
             2          2 01-JUL-10
             2          2 01-JUN-10
             2          2 01-MAY-10
             2          2 01-APR-10
             2          2 01-MAR-10
             2          2 01-FEB-10
             2          2 01-JAN-10Any help would be greatly appreciate.
    Note: The date value I have created for this sample is monthly, based on the condition the data value I may need to generate weekly also. That's Monthly or weekly either one
    Thanks,

    And what is AMT? You didn't provide such column in your original post. Anyway, MODEL solution based on original post:
    select  nbr_of_s,
            nbr_of_c,
            s_date
      from  t
      model
        partition by(rowid)
        dimension by(1 d)
        measures(
                 nbr_of_s,
                 nbr_of_c,
                 s_date,
                 months_between(lag(s_date) over(order by s_date desc),s_date) cnt
        rules(
              nbr_of_s[for d from 1 to cnt[1] increment 1] = nbr_of_s[1],
              nbr_of_c[for d from 1 to cnt[1] increment 1] = nbr_of_c[1],
                s_date[for d from 1 to cnt[1] increment 1] = add_months(s_date[1],cv(d) - 1)
      order by s_date desc
      NBR_OF_S   NBR_OF_C S_DATE   
            34         40 01-MAY-12
            27         29 01-APR-12
            27         29 01-MAR-12
            21         23 01-FEB-12
            21         23 01-JAN-12
            21         23 01-DEC-11
            19         20 01-NOV-11
            19         20 01-OCT-11
      NBR_OF_S   NBR_OF_C S_DATE   
            18         19 01-SEP-11
            17         17 01-AUG-11
            16         16 01-JUL-11
            16         16 01-JUN-11
             9          9 01-MAY-11
             9          9 01-APR-11
             9          9 01-MAR-11
             9          9 01-FEB-11
      NBR_OF_S   NBR_OF_C S_DATE   
             9          9 01-JAN-11
             9          9 01-DEC-10
             5          5 01-NOV-10
             2          2 01-OCT-10
             2          2 01-SEP-10
             2          2 01-AUG-10
             2          2 01-JUL-10
             2          2 01-JUN-10
      NBR_OF_S   NBR_OF_C S_DATE   
             2          2 01-MAY-10
             2          2 01-APR-10
             2          2 01-MAR-10
             2          2 01-FEB-10
             2          2 01-JAN-10
    29 rows selected.
    SQL> SY.
    Edited by: Solomon Yakobson on Jun 11, 2012 1:34 PM

  • How to send a list item value to URL to open data related to item value

    Hi,
    Iam using Apex4.0 and iam facing some problem. Iam unable to send selected list item value to the url specified in the HTMl region.
    Here i want to open the data related to list item value in other page.
    List item - :Familyp
    i want to pass this selected value to the url and when ever user selected the list item and clicks on the url, then it should display the item value related data in new page.
    I tried with &FamilyP in url but it's not working. Any one help me plz.
    Regards
    Vamsi.Tata

    Is it a normal Select list or Multi Select list?
    If you have select list that allows you to select multiple options then you cannot pass it through URL. Multi-select /Shuttle keep colon separated list in the item, and this confuses Apex because the Apex URL uses colons for a different purpose. No escaping or URL encoding will help.
    If it is normal select list that allows selection of only one option then you can pass through the url. Unless of course the data has a colon in it.
    For multi-select, and when the value contains colon, the only way is to save the value in session state, same page item or any other place like Application Item, and then reference it at the other end. Never pass through the URL.
    Regards,

  • Same date range values

    Hi Experts,
    I have a complex requirement for a date range functionality.
    Here is the detailed explanation:
    I have field TransactionDate field coming from an Oracle View.
    I have 2 parameters to be created on the same field and either of them can be selected but not both and both can be blank even.
    1. Transaction date on or before
    2. Transaction Date Range
    We may have values for only one prompt at any given point.
    If the user enters value for Transaction date on or before, then report should display data less than or equal to the date entered.
    If the user enters values for the Transaction Date Range, report should display date between the user entered dates.
    If none is entered report should display data for all dates.
    Now, when the Transaction Date Range has same values in Start of Range and End of Range, we need to display the record for maximum(Transaction Date) under a particular account, irrespective of the dates specified, i.e if the user enters current date in Start of Range and End of Range and there will be no records for this date. In this scenario, report should display the maximum(Transaction Date) for that account.
    I've tried all of I could, but ending up with a blank report.
    Any suggestions will be of great help. Thanks in advance.
    Naresh

    HI Naresh,
    Have you tried this,
    add 'maximum' infront of this '...... {DBVW.DT} <= CurrentDate'  condition
    if(({@FrmBalDt}(NotEqualto)" " and {@ToBalDt}(NotEqualto)"  ") and ({@FrmBalDt} = {@ToBalDt})
    and MAXIMUM({DBVW.DT} )<= CurrentDate)
    then maximum({@BalDate})
    else {@BalDate}
    if it is not working, Check where the condition is failing..
    or else try this also
    (not HasValue({?Client Id}) OR {DBVW.CLID} = {?Client Id}) and
    (not HasValue({?Base Currency Code}) OR {DBVW.BCCYCOD} = {?Base Currency Code}) and
    (not HasValue({?Account Type}) OR {DBVW.ACDES} = {?Account Type}) and
    (not HasValue({?Legal Entity Name}) OR {DBVW.CUST} = {?Legal Entity Name}) and
    (not HasValue({?Account Currency}) OR {DBVW.CCY} = {?Account Currency}) and
    (not HasValue({?Account Number}) OR {DBVW.ACNO} in {?Account Number}) and
    (not HasValue({?Account Group}) OR {DBVW.ACGRP} = {?Account Group}) and
    (not HasValue({?Show Latest Statement on or before}) OR {DBVW.DT} <= {?Show Latest Statement on or before}) and
    (if {?Activity Only} = "True" then ({DBVW.CT_CR} <>0 or {DBVW.CT_DB}0)
    ELSE if {?Activity Only} = "False" then ({DBVW.CT_CR} >=0 or {DBVW.CT_DB}>=0)) and
    (if {?Business Days Only} = "True" then (not(datepart("w",{DBVW.DT}) in 7,1) and
    (not HasValue({?Balance Date Range}) OR {@BalDate} = {?Balance Date Range}))
    else if {?Business Days Only} = "False" then ((not HasValue({?Balance Date Range})
    Up to this copy paste of your formula
    OR {@BalDate} = (if maximum({?Balance Date Range})>maximum({DBVW.DT} ) then maximum(date({DBVW.DT} )) else {?Balance Date Range}))))
    i think this may work, without your second formula
    regards,
    Salah
    Edited by: salahudheen muhammed on Sep 11, 2009 4:56 PM
    Edited by: salahudheen muhammed on Sep 11, 2009 5:02 PM

  • List of Values use Master Data or Trasaction Data?

    Hello,
    Do anyone of you from where does data in the list of values is populated Transaction data or Master data or combination of both?
    I know bex query could be built on a DSO, Info Cube, Info set, Mutiple Provider and Info objects. Is dependent on the type of info provider the query is built on? Could we really control the source in the lov's
    Thanks
    Ram

    its based on the data in the InfoProvider.
    Ingo

  • Assign a SELECT item's list of values - APEX 2.2.0

    Hey, all,
    Is there a way to assign the list of values of a SELECT item programatically, besides the usual query-in-the-LOV? I am reusing a page 0 region and have a SELECT item that can take on a wide range of lists of values. Something like:
    AddOptionToSelectItem('P0_MY_SELECT', 'Yes', 1);
    AddOptionToSelectItem('P0_MY_SELECT', 'No', 0);
    or:
    SetLOV('P0_MY_SELECT', somethingRepresentignAListOfValues);
    If that cannot be done, I'll just put all of the parameters I need to figure out what goes into the select list into page 0 items and either write query the old fashioned way or write a PL/SQL function that takes the parameters in and returns a table.
    Thanks!

    In case this helps, you can specify an item's LOV attribute as a function that returns the LOV query, e.g.,
    return my_lov;
    Scott

  • MDX MTD with a Date Range

    Hi All
    I need some advice on the below, it works, gives the answers I want, but I believe the filter on the set can be moved to a where clause, and the MTD can work effectively then with the sum of the date range on the [RangeHasResponse] measure (advice apart
    from "if it ain't broke don't fix it" ;) ).  This is query for a report where I can sub in a param date range (set the Today value, and the from in the DateRange), and produce the Sum of Has Response across that date range, and also the MTD
    for last month up to the ToDate.
    Any advice on how the MDX could be better structured would be great, I can understand I'm calculating members, then adding them to my query, it just seems I should be calculating them in the SELECT based on a filter.  Output just needs to be
    [MTD]: single sum of Has Response to the current todate for that month
    [RangeHasResponse]:Sum of the entire range
    [Has Response] : sum on the last day, this isn't necessary, I'm just curious to see how that would tie into a filter, if it ruins the above leave it out.
    WITH
    SET [ToDate]=[Date].[Year - Quarter - Month - Date].[Date].&[2014-02-22T00:00:00]
    SET [DateRange] =
    [Date].[Year - Quarter - Month - Date].[Date].&[2014-01-01T00:00:00]:
    [ToDate].item(0)
    MEMBER [Measures].[MTD] AS
    SUM(MTD([Date].[Year - Quarter - Month - Date].CurrentMember),[Measures].[Has Response])
    MEMBER [Measures].[RangeHasResponse] AS
    SUM([DateRange],[Measures].[Has Response])
    SELECT
    {[Measures].[MTD],[Measures].[Has Response],[Measures].[RangeHasResponse] } on columns
    ,[ToDate] on rows
    FROM
    [ISD Prototype]
    Thanks
    Best Wishes, The Redman; If something helps, please help show it by voting, if it solves, bonus!

    Hi GGoldspink,
    In MDX, the CREATE MEMBER statement defines calculated members that are available throughout the session, and therefore, can be used in multiple queries during the session. So if the members can will be used in multiple times in SELECT clause, we can create
    a calculated member, and then use this members on SELECT clause which will improve the query performance.
    In your scenario, are there any performance issue in your MDX query? In this case, I'd suggest you enable SQL Sever profiler to monitor the queries, and check which part in the query took a very long time to run. Here is a useful link for your reference.
    http://sqlmag.com/database-performance-tuning/using-sql-profiler-tune-mdx-queries
    Besides, here is a document which will help you understand where issues can occur in your existing MDX code that will prevent you from experiencing the performance improvements, and provide advice on how to avoid these issues in your new MDX coding.
    http://technet.microsoft.com/en-us/library/bb934106(v=sql.105).aspx
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here
    Charlie Liao
    TechNet Community Support

  • Spliting user entered date range into u201CFrom Date u201C and u201C To dateu201D-user exit

    Hi,
    In the query i have a created a popup variable for date range for which the processing type is customer exit. When the user exceutes the query he gets the popup for the date range with the default values. The default values are set one month backward.
    For example: if today is 5/19/2008, then the popup date range shows 4/19/2008 to 5/19/2008.
    Already there is an user exit written for the same.
    Now the requirement is i need to split From date and to date entered by user and use them in seperate selections to restrict the keyfigure in the keyfigure column of the query.
    Can anyone throw a light on this, how to go about?
    Shall i need to create two different variables from date and two date and populate the values, if yes how can i do that ?
    Thanks,
    Rani.
    Edited by: rani on May 19, 2008 10:22 AM

    Hello Rani,
                     Check this code,
    var1 is already existing variable with values from date and to date values.
    ztest1 is the first customer exit single variable,
    ztest2 is the second customer exit variable.
    ztest1 and ztest2 you can use these variables in the restricted keyfigures which you have mentioned.
    when 'ztest1'.
        if i_step = 2. "after the popup
          loop at i_t_var_range into loc_var_range
          where vnam = 'var1'.
            clear l_s_range.
            l_s_range-low = loc_var_range-low.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            append l_s_range to e_t_range.
            exit.
          endloop.
        endif.
    when 'ztest2'.
        if i_step = 2. "after the popup
          loop at i_t_var_range into loc_var_range
          where vnam = 'var1'.
            clear l_s_range.
            l_s_range-low = loc_var_range-high.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            append l_s_range to e_t_range.
            exit.
          endloop.
        endif.
    hope it helps,
    regards,
    karthik

  • How do I collapse contiguous Date Ranges in SQL?

    Hi,
    In the data below, I want to collapse the contiguous date ranges with the same value (3.7) into a single date range.  I have tried and tried to come up with something but am stuck.  Does anyone know how to accomplish?
    DECLARE @Have TABLE(B DATE, E DATE, R DECIMAL(18, 1))
    INSERT INTO @Have VALUES
    ('2014-08-22', '2014-12-31', 4.0)
    , ('2015-01-01', '2015-03-29', 3.7) -- same value, contingious date ranges
    , ('2015-03-30', '2015-03-31', 3.7) -- same value, contingious date ranges
    , ('2015-04-01', '2015-09-30', 4.0)
    SELECT * FROM @Have
    DECLARE @Want TABLE(B DATE, E DATE, R DECIMAL(18, 1))
    INSERT INTO @Want VALUES
    ('2014-08-22', '2014-12-31', 4.0)
    , ('2015-01-01', '2015-03-31', 3.7) -- want to collapse into 1 date range
    , ('2015-04-01', '2015-09-30', 4.0)
    SELECT * FROM @Want
    Thanks

    Hi tballard,
    The posts from Jingyang and Cooper would be perfect only in the case that there’s no date gap between your rows. In addition to their posts, if in any case there would be a gap, please refer my code below, which works in either case.
    DECLARE @Have TABLE(B DATE, E DATE, R DECIMAL(18, 1))
    INSERT INTO @Have VALUES
    ('2014-08-22', '2014-12-30', 3.7) --same value , date gap
    , ('2015-01-01', '2015-03-29', 3.7) -- same value, contingious date ranges
    , ('2015-03-30', '2015-03-31', 3.7) -- same value, contingious date ranges
    , ('2015-04-01', '2015-09-27', 4.0) --same value, date gap
    , ('2015-10-1', '2015-12-30', 4.0) --same value, date gap
    ;WITH CTE1 AS(
    SELECT H1.B B1,H1.E E1,H1.R R1,H2.B B2,H2.E E2,ISNULL(H2.R,0) R2,ROW_NUMBER() OVER(ORDER BY H1.B) RN FROM @HAVE H1 LEFT JOIN @HAVE H2 ON DATEDIFF(DAY,H1.B,H2.E)=-1
    CTE2 AS(
    SELECT B1,E1,R1 FROM CTE1 WHERE R1 != R2
    CTE3 AS(
    SELECT B1,E1,RN,B2 FROM CTE1 WHERE R1=R2
    CTE4 AS(
    Select min(B2) B, Max(E1) E from (
    SELECT B2,E1,RN-row_number() Over(Order by B1) groupByCol
    FROM CTE3
    ) t
    Group by groupByCol
    SELECT
    C2.B1,ISNULL(C4.E,C2.E1),C2.R1
    FROM CTE2 C2 LEFT JOIN CTE4 C4 ON C2.B1=C4.B
    If you have any question, feel free to let me know.
    Best regards,
    Eric Zhang

  • List of values is not displayed in web inteligence report

    I created a web inteligence report and put into my favourite folder. The report consist of a selectable list of values in a prompt but it does not appear in my favourites folder.
    The users with administrator rights that copied this report into their own favourites folder are able to see the list of values in the prompt.
    It seemed that the list of values does not display in the prompt when non administrator rights opened this report in their own favourites folder.
    Anyone can figure out how to set the access rights so that non administrator can see the list of values when the web inteligence report is opened in their own folder.
    I am using Business Objects XI 3.1 ..

    SOLVED
         CMC -> Connections
    -     Right click connection name, Click u201CTools > Check Relationshipu201D
    -     In u201CQuery Resultsu201D, Right click Connections, Click u201CUser Securityu201D
    -     Assign Security for u201CEveryoneu201D
    -     UNTICK both Inherit from Parent Folder and Inherit from Parent Group
    -     Assign u201CView on Demandu201D
         CMC -> Universes
    -     Right click u201CUniversesu201D folder, click u201CPropertiesu201D
    -     Under u201CUser Securityu201D, click Everyone and assign security
    -     UNTICK both Inherit from Parent Folder and Inherit from Parent Group
    -     Assign u201CView on Demandu201D

  • List of Values not showing up

    Hi,
    We have BOE 3.1 SP2 with PixPack 2.2 running on Windows Server 2003 R2 SP2 x64
    In InfoView, when scheduling a Web Intelligent Report, nothing shows in my List of Values in the Prompts. I hit the Refresh Values button and nothing comes up also.
    I'm new in the BO environment so I'm going here and there in the consoles.. I get the same problem when using and AD regular user account or the Enterprise Administrator account.
    I checked and added View On Demand for Everyone in my Universes and Connections....
    Any help appreciated
    Thanks
    Jay

    Hi Jay,
    Can you see the LOV when viewing the webi report?
    To see the LOV when viewing or scheduling webi, in "Edit Query" you need select "Prompt with List of Values". And in Universe designer, select "Associate a List of Values" in Properties tab of the object your parameter binds to.
    Thanks,
    Ray

  • Specifying a Date Range for Interactive Reports

    Hi All,
    I'm currently working on Oracle Application Express 11. We have created an application with a standard reports page. On this page there are the following items:
    HTML Region 1: (Parameters)
    Start Date: (Date Picker)
    End Date: (Date Picker)
    Amount: (Displays Read-Only Amount)
    HTML Region 2: (Specify Report)
    Violation Reports (link 1)
    Correct Reports (link 2)
    Fault Reports (link 3)
    All Reports (link 4)
    I would like to know if it's possible that I could enforce the following scenarios on a user:
    If a user clicks a link without specifying a date range, then an error message is displayed prompting the user to specify Start Date & End Date.
    If a user specifies a Start Date that is outside the table's date range, then an error message is displayed prompting the user to enter a valid Start Date. For instance, if the first ever date on the database table is 17/JUL/97 then if a user specifies 16/JUL/97 as his/her Start Date then an error message will be displayed prompting the user to specify a start date from 17/JUL/97 onwards.
    Is this possible? Please advice!
    THANK YOU IN ADVANCE
    Kamo

    Hi Kamo,
    In order for the dates to be used on the reports (which is what I assume you are trying to do?), the user must submit the page to get the dates into the session. Given that, you could have Validation on your page that checks the criteria you need when the page is submitted. You could also have your Region 2 conditional on the dates not being NULL - that way, the user can not click on a link until both dates have been entered and submitted.
    Andy

Maybe you are looking for

  • Inforecord standart report with valid on

    hi all, I am looking for a report which displays the "Valid on" data of Info-record. I tried the ME1M transaction but the information is not displayed. Thanks Pierre

  • I want some modification in JFileChooser

    In FileChooser i was added two buttons "Preview" and "Remove" [Now the File Chooser default one]. Now i select one image file then click the Preview button means i want to preview the selected image in Accesory panel[Now FileChooser with Accesory ] .

  • Rectangle outcode() not working quite right

    I wrote the following to try to capture if the rect is top bottom right left, however it doesnt work right. If I replace the statements eg lets say for top to code==2 || code ==6 || code ==3 it works fine. Any idea what im doing wrong code = nodeRect

  • Need report output same as its show in the previewer in the (.txt and .xls) format

    I need an output file(in text and excel format) generated from the report builder exactly in same format as it shows in the Report previewer. it should include all the labels as well as the data. Thanx in advance Reply ASAP From Dharmendra

  • Service contract configuration & complete steps....

    Hi Gurus..... Pls give me  complete steps to follow for the configuration of Service contract and Value contrct.... Thanks in advance, -baskar