Rolling 18months report based on the month prompt.

Hi All,
In one of the requirements in OBIEE, I have to create a report of rolling 18months. Now the challenge is that I will not be taking sysdate in here to calculate the rolling 18 months. I need to take the value of a month prompt on dashboard for calculation and fetch the 18 months rolling data in the report.
E.g: If the user selects Dec-2009 in the month prompt on dashboard, I need to fetch data from July-2008(which is 18 months from Dec-2009) to Dec-2009.
I will be passing the value of the month prompt in a presentation variable in the report, but can I calculate the 18 months prior month on the fly to put in the filter to fetch data? If yes, then how?
I have also created a calculated logical column in the rpd that calculates 18 month earlier date for each date. Now the question arises, how to use filter on this column so that it selects only the month which will be 18 months prior to the selected month prompt on the dashboard so that the data gets fetched for the report?
Thanks in advance,
Sumita

Hi,
Please check out the following blog :
http://shivabizint.wordpress.com/2008/09/19/rolling-months-data-for-year-month-prompt-in-obiee/
Another way I have done it is follows,
On my time dimension, which is at day level, for each given row (day) I derived the rolling period start date and the rolling period end date (which was always previous friday for a given day).
I created a simple report with the following :
Day, Rolling 6mth Start Day, Rolling 12mth Start Day, Rolling 18thmth start day, Rolling End Date.
With day 'is prompted'
In the dashboard reports, you use complex filters to say the day range you are interested in is between 'Rolling X Start date' (6, 12 or 18mth) and Rolling Period End date on the filter query created in the step above.
When the dashboard prompt Go is selected, OBIEE runs the filter query to determine the start and end ranges and these are passed to the dashboard requests to achieve rolling period ranges from a Date prompt. - Im pretty sure you could use a similar method but using a month selector prompt, rather than my day prompt - The theory is the same.
Good luck !
Alastair

Similar Messages

  • Is there a way to hide some reports based on the selected values in prompt.

    Hi Experts,
    Is there a way to hide some reports based on the selected values in prompt.
    For ex. if a year is selected in the prompt then the report should display year wise report.
    If a year and half year both are selected in the drop down from prompt section then 2 reports should come.. One for year wise and another for half year wise.Kindly look into this.
    Regards
    Ashish

    Hi,
    Use presentation values in prompts for year,half,qtr and month.Example- For year-y is presentation variable in the same way for halfyear-h,qtr-q and month-m.
    create four intermediate reports.Example-Report r1 with only year column,r2 with only halfyear column,r3 with qtr column and r4 with month column.
    Make column in each report(r1,r2,r3,r4) is equal to their presentation variables(y,h,q,m).
    Use four sections.
    Section1-Place report that should come when only year.
    section2-Place report that should come for year and halfyear.
    Section3-Place report that should come for year,halfyear and qtr.
    Section4-Place report that should come for year,halfyear,qtr and month.
    Apply guided navigation for each section selecting guided navigation-
    For section1-
    properties->Guided navigation->check this Reference Source Request(Yes)->select report r1(year)->check this Show Section(if request returns row)
    In the same way do for remaining section2(select r2),section3(select r3) and section4(select r4)
    Thanks,
    Srikanth
    http://bintelligencegroup.wordpress.com/

  • Conv. based on the month - Need to display the output in quarterly basis.

    Hi Gurus,
    I need to display the output quarterly based on the month.
    For example,
    If the year is 2012 and month is between
    01 to 03 i need to display it as 2012Q1
    likewise 04 to 06 as 2012q2
    and 07 to 09 as 2012q3
    and 10 to 12 as 2012q4.
    Please help me by providing sample codes. Please help yourself by writing the code and get back when you have a specific question.
    Thanks!
    Regards,
    Manoj
    Edited by: kishan P on Mar 2, 2012 3:14 PM

    Hi Vinod
    To get the last 13 months in webi report .follow below approach
    Assuming you have calendar Month object in the report.
    convert your selected date into M/d/yy format . let's say you selected 12/18/13 , your variable should be 12/1/13
    variable :
    Selected Month =ToDate(FormatDate(useresponse("Date");"Mmm yyyy");"Mmm yyyy")
    Flag for month     =ToDate([CalMonth];"Mmm yyyy")<=[Selected Month]
    Report filter          =[Flag for month]+Previous(Self)
    select the table you want to filter
    add filter -> Report filter between 1 to 13.
    Hope this will help.

  • How to create a report based on the selection of a node of a tree

    Hello,
    I am new to Oracle Apex and I was trying to build a tree and also an interactive report based on the empno column of the emp table.
    I have created a tree based on emp table. Now I want to display records of the employee selected in the tree.
    Here is the tree query:
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "ENAME" as title,
    null as icon,
    "EMPNO" as value,
    null as tooltip,
    null as link
    from "#OWNER#"."EMP"
    start with "MGR" is null
    connect by prior "EMPNO" = "MGR"
    order siblings by "ENAME"
    Can anyone tell me step by step how to go from here?
    I tried to follow the thread Re: tree question but could not understand much from it.

    The approach for reloading the page and displaying the report is quite simple.
    <li>You start by creating a new page item which would be used to store the selected node ID , eg. P100_SELECTED_NODE (you can make it atext item and change it hidden once everything works as expected)
    <li>Modify the tree query and change the link column in the tree definition SQL query to a link to the same
    for example if your page is 100 , you would make the tree node link to the same page but set the P100SELECTED_NODE with selected node's id_
    This done here
    {message:id=4410987}
    In this case it would be
    'f?p=&APP_ID.:100:'||:APP_SESSION||'::::P100_SELECTED_NODE:'||EMPNO as link Now when you click on a tree node link , it would come back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.
    <li> All that is left to do, is changing your Report so that it refers to the new item inorder to filter the records for this employee i.e empno
    SELECT ...
    WHERE empno= :P100_SELECTED_NODE

  • Is it possible to suppress the Page Header of the Main Report based on the Section Name?

    Hi,
    I am fairly new to Crystal Reports XI.  Is it possible to suppress the Page Header of the Main Report based on the Section Name?  Thanks.

    In the section expert you can enter a formula on the suppress function.
    You just need something to check against if it is section name you say
    {section name} ="Suppressme"
    I have used it more in drill level to display headers based on how far you have drilled into a report.
    Hope this helps
    Eric
    Via Christi Health System

  • Create a Bex report based on the client requirement

    Hi Experts
    We are using 3.5 version SAP BW.
    Our Client requirement is to create a report. as below
    CC01 Qty Ltr Ripple xxxxx.xx
    CC01 Qty Ltr Ripple xxxxx.xx
    CC01 Qty Ltr Ripple xxxxx.xx
    CC01 Profit Value Ripple xxxxx.xx
    CC01 Profit Value Ripple xxxxx.xx
    CC01 Profit Value Ripple] xxxxx.xx
    Where CC01 is Company Code
    QTY Ltr is the formula value that i have created for them
    Profit value also is the formula that i have created
    Ripple is the value that they want it to be seen in the reprot as a standard which is not available anywere in the multiprovider
    xxxxx.xx are the total values of Qty LTr and Profit values per month (eg: 01.2011)
    I have created the reprot and able to get the values but i do not get the CC01 for every line, and even Qty Ltr or the Profit Value in every line of the report , And i do not know how to hard code the Ripple.
    Please adivice hope i am clear.
    My repot displays this way. may be based on the company code.
    CC01 Qty Ltr Ripple xxxxx.xx
    xxxxx.xx
    xxxxx.xx
    Profit Value Ripple xxxxx.xx
    xxxxx.xx
    xxxxx.xx
    CC23 Qty Ltr Ripple xxxxx.xx
    xxxxx.xx
    xxxxx.xx
    Profit Value Ripple xxxxx.xx
    xxxxx.xx
    xxxxx.xx
    CC09 Qty Ltr Ripple xxxxx.xx
    xxxxx.xx
    xxxxx.xx
    Profit Value Ripple xxxxx.xx
    xxxxx.xx
    xxxxx.xx
    Thanks Regds
    Sri

    With the code, you've presumably logged on to the database. To insert objects on to a new report you'd want to use code along the following lines:
    private void AddTableFromDataSet(ref CrystalDecisions.CrystalReports.Engine.ReportDocument rpt, System.Data.DataSet ds)
    ISCDReportClientDocument rasReport = rpt.ReportClientDocument;
    // Convert the DataSet to an ISCRDataset object (something the ISCDReportClientDocument can understand)
    CrystalDecisions.ReportAppServer.DataDefModel.ISCRDataSet rasDS;
    rasDS = CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.Convert(ds);
    // Add the dataset as a data source to the report
    rasReport.DatabaseController.AddDataSource((object)rasDS);
    // Add a field to the report canvas
    // Note: This is quick and dirty. No positioning, resizing, formatting, etc.
    CrystalDecisions.ReportAppServer.Controllers.ISCRResultFieldController rfc;
    CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable crTable;
    CrystalDecisions.ReportAppServer.DataDefModel.ISCRField crField;
    rfc = rasReport.DataDefController.ResultFieldController;
    crTable = rasReport.Database.Tables[0];
    crField = crTable.DataFields[2]; // Hardcoded field "Customer Name" in the Customer table from Xtreme Sample Database
    rfc.Add(-1, crField);
    // Save the report template to disk (without data)
    //object path = @"c:\documents and settings\administrator\desktop\";
    //rasReport.SaveAs("test.rpt", ref path, 0);
    //MessageBox.Show("Done!");
    For more info, see sample apps on the following link:
    http://wiki.sdn.sap.com/wiki/x/IgBmBQ
    Also, consult your 'Report Application Server .NET SDK Developer Guide" and  "Report Application Server .NET API Guide". I'd provide the appropriate links, but you do not mention the version of CR you are using...
    Thread moved to the '.NET - SAP Crystal Reports" forum.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Filter the report based on the parent report column values

    Hi,
    period --- jan12 feb12 mar12...
    tickets --- _3_ _10_ _16_ .....
    This is my report layout.When i click on the no.of total tickets 3/10/16.It need to navigate to another report which should be filtered based on the reporting period as well as total tickets.
    How can i achieve this requirement.Is there any possibility to pass the column values from one report to another report?
    I tried "filter based on the another request" but it not worked for me.
    The summary of the requirement is when i click on 3 it need to display the 3 tickets details only...
    Anyone please help me out.
    thanks,
    prassu

    If your query means that for Jan 12 there are 3 tickets and for Feb 12 there are 10 tickets in the database, then you should only need to make the Period Column Is Prompted in the detail report. If the action link is not working this way then something else is wrong. Is the detail made from the same subject area?

  • How to create a report based on the portal30.wwsbr_all_items?

    Hi,
    I created items in a folder in a content area. I would like to create a portal report and display the items of the folder of the content area.
    I logged in the database as portala30 and issued the following statement:
    SELECT ID,NAME FROM WWSBR_ALL_ITEMS WHERE CAID = 331
    AND FOLDER_ID = 49959;
    (I found out the caid for content area and folder_id for folders
    from the portal30.wwsbr_all_content_areas, and portal30.wwsbr_all_folders.)
    I have a row returned from my query in sqlplus (which is correct).
    Then I go into portal as portal30-> application(based on portal30 schema) -> create a report,
    use the same sql statement that I used above, and I got the following error message at run time:
    Error: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-11230)
    Failed to parse as PORTAL30_PUBLIC - SELECT ID,NAME FROM PORTAL30.WWSBR_ALL_ITEMS order by rowid (WWV-08300)
    Note: I did run the sbrapi.sql to grant access to the content area api to portal30_public.
    What else I am missing?
    Thanks;
    Kelly.

    Hi,
    I created items in a folder in a content area. I would like to create a portal report and display the items of the folder of the content area.
    I logged in the database as portala30 and issued the following statement:
    SELECT ID,NAME FROM WWSBR_ALL_ITEMS WHERE CAID = 331
    AND FOLDER_ID = 49959;Hy i've done the same thing on my Portal and it works.
    The things i've seen is that you must remove the ';' character because you don't need it with the report component.
    Error: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-11230)
    Failed to parse as PORTAL30_PUBLIC - SELECT ID,NAME FROM PORTAL30.WWSBR_ALL_ITEMS order by rowid (WWV-08300)The second thing is that i've got the same error on other report and the solution is to simply add and order by at the end of the statement like this :
    SELECT ID,NAME
    FROM WWSBR_ALL_ITEMS
    WHERE CAID = 331
    AND FOLDER_ID = 49959
    ORDER BY 2
    I've done this when i've got this error and it solve the problem.
    Best regards
    Arnaud Bontemps
    mail : [email protected]
    web : http://www.labo-oracle.com

  • Subtotal in alv report based on the particular field value

    Hi,
    As per my requirement, i need to do subtotal of quntity field based on the material number field value in alv report.
    Ex:  if material number falls 1 to 10 then i need to be calculate and display subtotal qty amount with text " total of the mat1" and if material number falls 11 to 20 then again i need to be claculate and display subtotal qty amount with text "total of the mat2". similarily i need to display the details.
    <removed_by_moderator>
    Regards
    Nagendra

    Hi,
    Ex: if material number falls 1 to 10 then i need to be calculate and display subtotal qty amount with text " total of the mat1" and if material number falls 11 to 20 then again i need to be claculate and display subtotal qty amount with text "total of the mat2". similarily i need to display the details.
    What you can do is in your output table, you will have to create an auxilary field, lets call it as material group (groupid). Now you can do a subtotal on the material group. However the logic to determine what materials belong to which group should be coded. I guess you might be having some logic for that.
    So lets say that material 1 to 10 as G1 ( group 1 ) and material 11 to 20 as G2 ( group 2 )
    The output of the internal table would be
    Groupid  matnr ...
    1  1
    1  2
    1  3.....and so on
    2  11
    2  12
    2  13....upto 20.
    Now in the fieldcatalog assign an 'X' to the 'dosum' parameter to the field Groupid
    In the sort info do the following :
    gs_sort-fieldname = 'GROUPID'.
    gs_sort-spos = 1.
    gs_sort-up = 'X'.
    gs_sort-subtot = 'X'. ***CRUCIAL STATEMENT****
    append gs_sort to gt_sort.
    Now pass all this data to the alv grid function. And you are done.
    regards,
    Advait

  • Report based on the user profile

    Hi,
    i'm trying to create a report with Oracle Report6i based on the user profile.
    I created a form with many Lovs, so that i can choose the parameter to send to the report (using a java script).
    I also would like to send the user that's currently logged in, just in order to filter the output.
    How can i use the api wwctx_api.get_user in the java script ?
    Thanks.

    Hi,
    It is not possible to use the api directly in javascript. Maybe you pass it as a parameter to a javascript function.
    Thanks,
    Sharmila

  • Inserting a link to BI Publisher report and passing the dashboard prompts

    I have an answers dashboard where there are various prompts (say P1, P2, P3, P4  -all these are date prompts )and various  reports.
    These Prompts are stored as Presentation variable say var1, var2, var3, var4.
    I need to insert a Link on this page to a BI Publisher Report.  BI Publisher report also has some prompts say D1, D2, D3 , D4, D5, D6
    The link should take the values from the prompts of this page and open the BI Publisher report with D1= value of Prompt P1,
    D2= value of prompt P2, D3= value of Prompt P3, and D4= value of Prompt P4.
    I was easily able to use an action link -> "Navigate to Web Page" option.  I gave the URL for this BI Publisher report and clicking on that link takes me to the report.
    But I am still figuring out out to send the values of the prompts.
    The BI Publisher Report is :
    - built from an RTF template.
    - uses a SQL Query with Bind variables to get the value of its prompts D1, D2, D3, D4, D5, D6.
    - Suppose D1 is bind variable :date1, D2 is bind variable :date2, D3 is bind variable :date3 and D4 is bind variable :dat4.
    So my first try was to append the value of bind variable to the URL
    https://xxname.server.com/analytics/saw.dll?bipublisherEntry&Action=open&itemType=.xdo&bipPath=%2FSurvey%2FPhoneCount%20Record.xdo&path=%2Fshared%2FSurvey%2FPhoneCount%20Record.xdo.xdo&date1=var1
    Can someone suggest the steps I need to take to make this work.
    Thanks

    Hi, I am facing the same issue (OBIEE 11g version0
    Please let me know if you found any solution or workaround for this?
    Thanks!!

  • Stock report based on the batch

    Hi Experts,
    I am designing stock ageing report based on last goods reciept date which is the attribute of the batch.
    the stock value in the buckets need to be calculated based on the stock quantity with moving average price.
    the report is o/p is based on material group, material, batch.
    when i drill dow based on the material it is coming fine when i drill down based on the batch it is not showing any values in the buckets.
    considering the moving average price from masterdata enhancement of 0MAT_PLANT datasource.(but this datasource doen't have batch).
    Please suggest your ideas.
    Regards,
    Satya

    I am not too sure how to explain step by step..but my system uses this design..not created by me.
    RESULT = SOURCE_FIELDS-SALK3  / SOURCE_FIELDS-LBKUM.
        IF RESULT IS INITIAL.
         RESULT = SOURCE_FIELDS-VERPR / SOURCE_FIELDS-PEINH.
    matl valuations:
    Try using tables MBEWH --(customised) and extract to DSO along with 0IC_C03.
    Also use the datasource : 0CO_PC_ACT_05
    SO Valuations:
    EBEWH -customised
    Try this link:
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=235670765
    Edited by: SAP BI Learner on Oct 28, 2011 4:27 AM

  • How to show the columns dynamically in OBIEE report based on the selection?

    Hi,
    I have a requirement where the columns should be dynamically shown in report based on what we select in propmt page.
    I'm creating a report in OBIEE where i want to give an option to the end user to select the columns whichever he wants to see in the report.
    For example I have the following columns in the report already:
    Customer Name,
    Customer Number,
    Bank Account,
    Address
    I want to give an option to the user to select 'Customer Mail ID' dynamically and see the column to be displyed in the report along with the existing columns.
    Through 'Column Selector' user can select a single column at a time, but if he want to select more than one column, how can we do this ?
    Please help me out in resolving this issue.
    Thanks,
    Chaithanya.

    Hi Chaithanya,
    there's not a straight solution for this. You can create different analysis containing different number of columns and then directing the user to this analysis using Action Links or you can also use View Selector to switch from one view (analysis) to the other. But it's not going to be very flexible nor dynamic.
    J.

  • Don't include last page of the SSRS report based on the parameter.

    I created the report, which has 4 pages.
    Each page contains bunch of tables and charts, which display data in scope of dataset, created for each page and reflecting certain subject.
    Each page also has Header and Footer.
    My users requested, the report has possibility to include or not include data on Page #4.
    Other words, report should display 3 or 4 pages based on the entered parameter.
    1. I created parameter named  “Include #### metrics”, which contains options: Y, N
     2. For each object on the page 4 I added dependency on the selected 
    parameter in  the visibility option.
    Now if user select parameter Not include Page #4, report displays 3 pages as expected and page #4 is empty, but with Header and Footer.
    The problem: Their
    preference is to not to show page 4 at all if someone chooses to not to include
    #### metrics.
    My question is how to force the report to display just 3 selected pages.

    Hi MK0526,
    Per my understanding that you have add page break to make the report to display on three diferent pages and you want to show and hide the fourth page based on the parameter selected, now the issue is although the content on the fourth page have been hidden
    but the page header and page footer still display, right?
    I have tested on my local envoronment and can reproduce the issue, the issue can be caused by the page break you have set, you may have check the "Add a page break after", please find the details information below to reset the page break:
    Please create four rectangles and add all the content from each pages to include in each rectangle
    Please  check the "Add a page break before" for rectangle2, rectangle3,rectangle4  in the rectangle properties and not add any page break in the  first rectangle (Rectangle1)
    Add expression below to show/hide the rectangle4:
    =iif(Parameters!IncludePage4.Value="No",true,false)
    Now you will not see the page header and footer in the fourth page when you select "No" in the parameter.
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Scheduling the Webi report based on the current date

    Hi ,
    Can I schedule the report to give the results of the previous day (report Daily) and other one to give the results of the previous month (report Monthly)? How can I do it?
    Thanks in advance.

    Hi Peter,
    Well for yesterday, you can use something like:
    CAST(CONVERT(VARCHAR, T_GVQSTATCG1_HOUR.DATE_YYYYMMDD, 110) AS DATETIME) = DATEADD(dd,-1,(select T_GVQSTATCG1_HOUR.DATE_YYYYMMDD from YourTable where Current_Day_Ind = 'Y'))
    We have a date table in our data warehouse with a Current Day Indicator field. If you don't have something like that, then you should be able to just use:
    CAST(CONVERT(VARCHAR, DateAdd(dd,-1, GetDate()), 110) AS DATETIME)
    You would use something similar for previous month, parsing out the month number from the date, and then subtracting 1, except of course for January, where you could just plug in a case statement to handle that.
    This is assuming you are on SQL Server. Syntax may be different in Universe for Oracle or other.
    Does that make sense?
    Thanks

Maybe you are looking for