Previous month end based on prompted values

Hello All,
I need to create a SR report that shows:
Received in current month: count of Service requests recorded in current month selected. For instance if date prompt selection was March 2010 then count of SR recorded from Mar 1- 31,2010
Open Service Requests at month end Count of SRs where "Date Completion entered in system" is null as last day of month selected(eg March 31)
Carry over from Previous month: same as Open Service Request as month end less one month.( eg Feb 28)
I currently have a prompt which lets the end user choose the Month and Year they want to run the report for. I am getting the right values in my first two columns but my carry over is giving me problems. Any idea how I can write a formula for 'Carry over from Previous month'??
Any help is appreciated!
Sonia

Hi Max,
The carry over is causing problems. However, the formula for the month end chosen is
SUM(CASE WHEN CAST ("Service Request"."Closed Date and Time" AS DATE) IS NULL OR CAST ("Service Request"."Closed Date and Time" AS DATE) > TIMESTAMPADD (SQL_TSI_MONTH, 1, (TIMESTAMPADD (SQL_TSI_DAY, - (DAYOFMONTH(CAST ("- Service Request Custom Attributes".INDEXED_DATE_0 AS DATE))), CAST ("- Service Request Custom Attributes".INDEXED_DATE_0 AS DATE))))THEN 1 ELSE 0 END)
But when I use this formula for previous month (-1).. It does not work. It gives me zero.
Thanks!
Sonia

Similar Messages

  • Previous month end data for report

    Hi expert,
    I have to calculate previous month end data for my report.
    let say if user select 15 oct then he should be able to see 30 sept data.
    I have calander prompt.
    Thanks,

    Hi,
    Use presentation variable in date prompt.
    Apply sql filter(covert to sql) on report as date_column= TIMESTAMPADD(SQL_TSI_DAY,-DAYOFMONTH(date 'presntation_variable'),date 'presentation_variable')
    Refer : How to get LAST_DAY in obiee
    Regards,
    Srikanth

  • Dispaly or Hide a column based on Prompt Value

    Hi All,
    How can I Display or Hide a Column based on Prompt Value selected?
    On my dashboard I have a Report/Request and a Dashboard Prompt.
    Dashboard Prompt has three values, say: *'A', 'B' and 'C'*.
    And my report/request has three columns named *'Field1', 'Field2'* and Field3'.
    What I am trying to achieve is that whenever user selects prompt values as *'A' or 'B'* all the three fields on my report named *'Field1', 'Field2' and Field3'* should be displayed, however whenever user selects prompt values as *'C'* only fields named *'Field1' and 'Field2'* should be displayed.
    Thanks,
    Deepak

    Hi Bhavna,
    I tried using View Selector, however I am not able to achieve the required functionality with that.
    I created a Request with 3 columns in it, then I switched to criteria and added another table to that. The new table automatically got the similar 3 columns used in the first report. Now when I tried to delete one of those columns from the new report, it also got deleted from the first report.
    All the views are dependent, changes made to one are reflected in other.
    Can't figure it out, where am I going wrong?
    Thanks,
    Deepak

  • Previous month end date

    hello,
    i would like to find out the previous month end date when i give the input any date .
    finding previous month end date.
    eg :-> if i give the date as 02-Jan-2008, the result should be 31-dec-2007
    if i give the input date as 10-nov-2007, the previous month end date is 31-Oct-2007
    etc...

    ME_XE?select the_date, trunc(the_date, 'MM') - 1 as las_day_prev_month
      2  from
      3  (
      4     select add_months(sysdate, level) as the_date from dual connect by level <=12
      5  );
    THE_DATE                   LAS_DAY_PREV_MONTH
    02-FEB-2008 08 58:30       31-JAN-2008 12 00:00
    02-MAR-2008 08 58:30       29-FEB-2008 12 00:00
    02-APR-2008 08 58:30       31-MAR-2008 12 00:00
    02-MAY-2008 08 58:30       30-APR-2008 12 00:00
    02-JUN-2008 08 58:30       31-MAY-2008 12 00:00
    02-JUL-2008 08 58:30       30-JUN-2008 12 00:00
    02-AUG-2008 08 58:30       31-JUL-2008 12 00:00
    02-SEP-2008 08 58:30       31-AUG-2008 12 00:00
    02-OCT-2008 08 58:30       30-SEP-2008 12 00:00
    02-NOV-2008 08 58:30       31-OCT-2008 12 00:00
    02-DEC-2008 08 58:30       30-NOV-2008 12 00:00
    THE_DATE                   LAS_DAY_PREV_MONTH
    02-JAN-2009 08 58:30       31-DEC-2008 12 00:00
    12 rows selected.
    Elapsed: 00:00:00.12
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to do running aggr based on prompt value and how to or prompt?

    Hello guys
    I have some requirements that I have a report that has measures and Months and Date..
    1. I have to create dashboard prompts on months and dates in such way that users can select either that want to see monthly sales or daily sales.. So the two prompts should be "or" relationship that point to the same report. If user select month from month prompt, the report will return data at monthly level; if select day on day prompt, it should return data at day level..
    2. Doing running sum based on the dates selected from the prompts.
    If I select day prompt as between "Feb 12th 2009" and "March 1st 2009", the report should return sales data that is the sum of all sales between "Feb 12th 2009" and "March 1st 2009".. If user select month prompt as between "Nov 2008" and "Feb 2009", the report should show the sum of all the sales from "Nov 2008" and "Feb 2009".
    How would I achieve both scenarios?
    Any pointer will be greatly appreciated..

    Hi.
    Maybe you want to have dynamic group by in Answers report by choosing group by part from a dashboard prompt.
    So, assume this example in which you have only one dashboard prompt that shows Day or Month character data.
    Make dashboard prompt:
    edit column formula: 1
    control: drop-down list
    show:
    SELECT case when 1=2 then TIMES.CALENDAR_MONTH_DESC else *'Day'* end FROM "Normal model"
    union all
    SELECT case when 1=2 then TIMES.CALENDAR_MONTH_DESC else *'Month'* end FROM "Normal model"
    default to - specified value: Day
    set variable - presentation variable: pv_dyn_group_by
    label: Group by
    Now make report in Answers and we'll use dynamic column for group by depends on our presentation variable (Day or Month):
    /* column 1 */
    label:
    I don't know how to dynamicly change column label (Month or Day) so I put just label Dynamic group by.
    column formula:
    case when '@{pv_dyn_group_by}' ='Day'
    then EVALUATE('TO_CHAR(%1,%2)' as varchar(20), TIMES.TIME_ID, 'dd.mm.yyyy')
    else TIMES.CALENDAR_MONTH_DESC
    end
    /* column 2 */
    AMOUNT_SOLD
    /* column 3 */
    RSUM(AMOUNT_SOLD)
    Test:
    In both cases we get the same result of RSUM in the end. First we group by a TIMES.TIME_ID if we choose 'Day', second by a TIMES.CALENDAR_MONTH_DESC if we choose 'Month'.
    Is that you want to?
    So if you want to see month or day values to choose it (between part) you must make second prompt with something like this in show SQL results:
    SELECT case when '@{pv_dyn_group_by}{Month}'='Month' then TIMES.CALENDAR_MONTH_DESC end || case when '@{pv_dyn_group_by}{Day}'='Day' then EVALUATE('TO_CHAR(%1,%2)' as varchar(20), TIMES.TIME_ID, 'dd.mm.yyyy') end FROM "Normal model" order by 1
    The name of the second prompt is: '@{pv_filter}{Month}'
    That will display 'Month' or 'Day'. I don't know better solution :-)
    Similar is to make a between 2 prompts.
    After then you must modify filter in Answers to get OR (between dates ot between months)
    Regards,
    Goran Ocko
    http://108obiee.blogspot.com/

  • How to filter values based on prompt values

    Hi Gurus,
    Good Afternoon to all.After long i came back with new requirement.............Its very highly important.
    I have one report in dashboard..............which is having employee head count based months.when user wants to click any month in prompt..the report should display upto previous month data..............
    example..............
    when user click september/2011.........the report should display data upto august/2011
    when user click october/2011.............the report should diaplay data upto september/2011
    could any one please give solution to resolve this issue............
    Thanks & Ragards,
    Naveen kumar

    Have a interim report having the month,previous month(calculated using case statements or addmonths function) .Make this report prompted to month. Then in your dashboard report select the month filter as 'filter based on report' and then select the calculated column of the interim report.

  • OBIEE and mapviewer - zoom in map based on prompt value

    Hi All,
    Does anybody know if it's possible to zoom in the map, based on the value selected in a dashboard prompt?
    I.e. if you select a FL in the prompt can it somehow zoom into Florida?
    I think this was possible in 10g with some added java script....howabout in 11G?
    Regards
    Hakan

    Hi,
    Dynamic control of widths and heights are unfortunately not available in the 10g versions. There are some very cool enhancements to displaying charts in 11g so check these out.
    What you could do is have the Chart View with multiple column and height widths. Here's what I mean:
    1) Build the chart and have the default widths and heights.
    2) Duplicate this view to create Chart:2 and in this view change the width and height using the General Chart Properties button.
    3) Duplicate the view again to creates Chart:3 and once again change the width and height to even larger values.
    4) Now build a View Selector and label each Chart View as appropriate, say "Magnification: Small, Maginification Medium, Maginification Large."
    The user can then swithch to see which view best displays the columns depending on the choices selected in your prompts.
    Yeah, it's not the prettiest or most elegant solution, but it is a simply workaround that doesn't take a lot of space on the dashboard and may work for you since having the ability to change the zoom to an inifinite number of levels is not necessarily a required or good thing even.
    FYI..
    Re: Zoom by increasing Width
    Thanks
    Deva

  • How to filter reports based on Prompt values

    Hi All,
    I have requirement in dash board.
    in my dash board it contains two reports which is having same column with different values.i.e.,
    one report contains Input method column with CSS value,
    another report contains Input method column with SFF value
    and i have dashboard prompt for INPUT METHOD column.
    when i need to select CSS value in prompt the first report should enable(display).second report should disable.
    when i need to select SFF value in prompt the second report should enable(display).first report should disable.
    But problem is when iam prompting values the 2 reports displaying same report only.Can any give solution for this one. how to solve this prob?
    Thanks in Advance response .
    Naveen

    Hi,
    Follow the steps from this link. I hope it will be helpfull
    http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-selecting-reports-from-dashboard-prompts-and-guided-navigation-sections/
    Phani.

  • Column display based on Prompt value ( Urgent Please)

    Hi Gurus,
    I have requirement to create the prompt based on the column, if i selected perticular column heading then i have to see the data of that column otherwise not.
    Example.
    column names: call attended, call droped, call time, service
    Report columns
    Region, call attended, call droped, call time, service, Fiscal Month
    east 100 10 23 20% Jan
    west 230 5 24 30% Jan
    east 120 10 23 20% Feb
    west 200 5 24 30% Feb
    Client want to have a pivot table view and want to have the call attended, call droped, call time as values in the prompt
    example if i selected in the prompt Call attended then i should report display like this
    ______ Jan 2011 : Feb 2011
    Region
    East 100 120
    West 230 200
    I am kind a confused and i am looking on web i didnt get any info. Please help me
    Regards
    Ali

    Hi Gurus,
    I got my answer. I followed the content of the link and i am able to slove my issue. Thought to share with communite members.
    http://www.biconsultinggroup.com/obiee-tips-and-tricks/using-a-dashboard-prompt-as-a-column-selector-for-multiple-r.html
    Regards
    Ali

  • Current & Previous month data based on condition

    Hi All,
             Thanks in advance.
    I have some problem in reporting......
            I have to display curr and pre months data .
    If i give fiscal period as 009.2006 i should display no of contracts for 1_90 , 90_180 based on last adjustment date .
    No.of contracts for  <b>last day</b> of given period- <b><b>last adjustment date</b> <=90 .
    Like i should display for given period and previous period.
    If given period is 009.2006 .last day of this month is 31/12/2005.
    like last day for previous period is 30/12/2005.
    Thanks & Regards,
    Sarada .<b></b><b></b>

    Hi Eugene,
               Here is the code..
    WHEN 'LDAT_PRV'.        " Get last day from the given period.
    IF I_STEP = 2.
        REFRESH E_T_RANGE. CLEAR E_T_RANGE.
        LOOP AT I_T_VAR_RANGE INTO TEST WHERE
          VNAM = 'PRV_PER' and IOBJNM = '0FISCPER'. "Contract Enddt
    CONDENSE TEST-LOW.
        V_GJAHR = TEST-LOW+0(4).
        V_BUPER = TEST-LOW+4(3).
    call function 'LAST_DAY_IN_PERIOD_GET'
           EXPORTING
            I_GJAHR = V_GJAHR
            I_PERIV = 'T1'
            I_POPER = V_BUPER
           IMPORTING
            E_DATE = ENDDT.
    IF SY-SUBRC <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ELSE.
           CLEAR LS_RA_SID.
           LS_RA_SID-SIGN = 'I'.
           LS_RA_SID-OPT = 'EQ'.
          LS_RA_SID-LOW = ENDDT.
          APPEND LS_RA_SID TO E_T_RANGE.
          EXIT.
       ENDIF.
            EXIT.
        ENDLOOP.
      ENDIF.
    Like i have created for one more variable for given period.
    I need last dates for the given and previous periods....
    Best Regards,
    Shradda

  • Showing last n months data based on prompt

    Hi,
    I have a "reporting month" prompt like Mar'13 .The report should return last 12 months data for all the measures based on "Reporting Month" prompt and my result will look like below:
    Measures  Mar' 13 Feb 13 Jan 13 ....
    CORP        1345     1444     1555
    ERP           675       877       5678
    I have used a pivot view to get the table view like this but i am not sure how to use the logic for showing all Months .Kindly suggest.

    Hi,
    You can achive this at answers level with the help of presentation variable using "Last N months(Rolling months) data By year-month prompt in OBIEE".
    pl follow the below post.
    http://shivabizint.wordpress.com/2008/09/19/rolling-months-data-for-year-month-prompt-in-obiee/
    thanks

  • FM to get the month name based on numeric value

    Hi , Is there any FM which returns the month name when we enter the corresponding numeric value . E.g. if the input is 3 the output must be March

    Hi,
    Try
    DATA: mon_number TYPE numc VALUE '03',
          month_name(20).
    SELECT ltx
      FROM t247
      INTO month_name
    WHERE spras = 'EN'
       AND mnr   = mon_number.
    Hope it helps.
    Regards
    Message was edited by: Shehryar Khan

  • Hide column based on prompt

    Hi Gurus,
    Can i hide column based on Prompt value?
    My requirement is
    I have report is showing Daily/Weekly/Monthly data based on prompt value ( Prompt selected values are Daily/Weekly/Monthly)
    If user select daily then report will display data every day. if user select Weekly then report will display Every week data ( Week start from Monday).
    I have one more columns as Day name to display day of the week for daily report. its working fine.
    but i want hide day name column when i run report for weekly.
    How can i hide column based on Prompt value. is it possible in OBIEE 10.3
    really appreciated for your help

    Here's simpler approach. Use column selectors.
    1) The first column in your column selector will be where you put your Daily/Weekly/Monthly choices.
    2) In the second column, put your Day column. Add another column, doesn't matter what. I'll explain later. In the caption for this column, put in something like "Select to Hide Day column."
    3) Click "OK" and put your column selector in your Compound Layout.
    4) Now, select the other column in place of the Day column.
    5) Now go to the criteria tab. The "second choice" column should now be there in place of the original first column. Dummy out this column and click on the "Hide" checkbox in the column properties. Change the name to "No column."
    6) Now go back to Results. The user now has two choices for the Day column, either the original column (the Day column) or the "No column" choice. When the "No column" choice is selected, the column disappears from the report. Users can make the selection whenever they choose Weekly as their choice.

  • To retrive previous month based on month prompt

    Hi,
    My universe is based on SAP BEX query. I have a requirement to report the previous month data based on a month prompt. Since the universe is based on the MDX, could anyone suggest a way to calculate previous month from universe.
    Appreciate your responses.
    Regards,
    VyshBO

    pvinesh wrote:
    Hi VyshBO,
    >
    > You can refer below syntax and prepare a filter object in universe to get Previous Month.
    >
    >
    <FILTER KEY="[ZMONTH].[LEVEL01].[[ZMONTH]].[Value]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT CAPTION="-1"/></CONDITION></FILTER>
    >
    >
    > Regards,
    > Vinesh
    Can  you explain that syntax, Vinesh? In particular, what does the [[ZMONTH]] imply?

  • Data Selection for report based upon a 'Prompt Value'

    I want to report information in my report based upon a 'user input prompt value'
    for example:
    'Enter Shareholder Selection - A-Active, I-Inactive, B-Both Active and Inactive'
    if the user enters 'A', the report selects only active shareholders
    if the user enters 'I', the report selects only inactive shareholders
    if the user enters 'B' the report selects all shareholders, active and inactive
    the field in the database that this based upon is their total share value.
    if this field is greater than zero (>0) they are considerd 'active'
    if this field is equal to zero (=0) they are considered 'inactive'.
    I have tried creating some type of filter,  but am not having any luck. 
    I saw a few examples within the forums that I have tried without any luck....unfortunately most of the examples I've seen are base one only two choices.
    I'm sure I need to create some type of 'independant varible' but am not sure how to do that either.
    Any suggestions would be appreciated.
    Thanks.

    Hi Daryl,
    I Tried this unsuccessfully in DESKI . We can't Eliminate Rows having Empty Measure Values or Measure with 0 as values using Table Level Filter as FIlter can't FIlter rows based on Prompt value selection dynamically. Filters filter rows at a time and not based on 3 condition as Active, Inactive and Both. thus filters are of no use.
    I Tried this in WEBI, and it is working perfectly you donu2019t have to create any Object in Universe, you can do it using function UserResponse() at report level.
    Hence if you are comfortable using WEBI for Generating this report then Follow the steps.
    1. Create Report With Name and Shares Object. It will display all Shareholder Names and No.of shares they hold.
    2. Use Status Object in Query filter, use condition as u201CEqual Tou201D and Select prompt. It  contains Active, Inactive and Both as values.
    3. Report will Display all Shareholder names and No. of  shares  like 45, 789, 0, 4562 where 0 is inactive Shareholder and all other are active shareholder.
    4. Create Variable using Formula.
    =If(UserResponse("Enter Status:")="Active" And [Shares]>0;[Shares];If(UserResponse("Enter Status:")="Inactive" And [Shares]<=0;[Shares];If(UserResponse("Enter Status:")="Both";[Shares])))
    5. Remove Shares Object from the report and Put Variable created with Names of Shareholders.
    6. Select Table-> Properties-> Display-> Uncheck the Option u201CShow Rows with Empty Measure Valuesu201D
    7. Report will display Value correctly as per your Prompt value selection.
    I Hope this Helpsu2026
    Thanksu2026
    Pratik

Maybe you are looking for

  • Windows 7 Build 7600 Windows is not Genuine

    these are the results when i ran MGADiag, what should i do next? this incident happened when an update was installed. Diagnostic Report (1.9.0027.0): Windows Validation Data--> Validation Code: 50 Cached Online Validation Code: 0xc004c4ab Windows Pro

  • Call an 8.2 dll in Labview 7.0

    Hello, I have a bunch of applications written in Labview 7.0.  I need to add a small update to these apps, that uses some of the features of 8.2.1.  I have compiled the features into a dll and want to call this in my labview 7.0 application.  I have

  • 2nd Gen Nano with blank lit screen

    Anyone have any ideas here? My daughters nano still plays, but the screen is on and blank. I restored it and there was no change. I see a small "crack" that she swears is a "scratch"...anyway if anyone has any ideas they would be appreciated!

  • Fast ? Turbo? Ultra turbo?

    Hi folks, In the bios section, I found option of slow, fast, turbo and u-turbo. but  when I check ram timing by using CPU-Z or something like that, there is no difference between slow, fast, turbo.   Btw, the bandwidth increased by set to slow -> fas

  • No download for ThinkPad Yoga 12 dependency package 1.6.32.00?

    Our ThinkPad Yoga 12 OEM boxes (also X1 Carbon Gen 3) have dependency package 1.6.32.00 pre-installed (i assume it is for Lenovo Support & Lenovo Companion Metro apps). we are trying to rebuild enterprise loads, but in the support website, the only o