Display Header: Month From - Month To (e.g. OCT-DEC 2005)

Hello,
From BEx Analyzer when I provided input such as from month and to month(e.g. 10.2005 to 12.2005), a query would gather data from the selected period. And at the top, it was showed something like this: OCT 2005..DEC 2005
I wonder if it is possible to display the select period like this: OCT-DEC 2005
-WJ-

Thanks for your suggestion Vachan.
However, I'm still confused a bit.
>right click on char:
this means go to the target InfoObject and right click?
What did you mean by "X/"?
If you can provide further information, it would be great.
<u><b>Additional Information</b></u>
If I user variable-0I_MONTH which is a standard variable from SAP. This variable will automatic provide field-From Month and field-To Month.
Thanks.
-WJ-

Similar Messages

  • Branching row to Monthly from (Monthly, Quarterly, Yearly)

    Hello all,
    I ended up having another problem, which is exact reverse of the problem posted by me earlier, more info is at:
    Re: Consolidating rows
    Consider following input data set:
    CREATE TABLE SABEGH_TEST
    PRODUCT VARCHAR2(100),
    TRADE_DATE DATE,
    PROMPT VARCHAR(30),
    PERIOD VARCHAR(10),
    PRICE DECIMAL(8,2)
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PROMPT','2012-04',34.75);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PM+1','2012-05',34.25);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ','2012-Q2',34.35);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ+1','2012-Q3',34.25);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ+2','2012-Q4',34.75);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PY','2013-CY',40);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ+3','2013-Q1',39.25);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ+4','2013-Q2',39.75);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ+5','2013-Q3',40.25);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PQ+6','2013-Q4',40.75);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PY+1','2014-CY',42.5);
    INSERT INTO SABEGH_TEST VALUES ('A',TRUNC(SYSDATE),'PY+2','2015-CY',44.75);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PROMPT','2012-04',58.25);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PM+1','2012-05',58.75);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ','2012-Q2',58.63);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ+1','2012-Q3',59.75);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ+2','2012-Q4',61.85);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PY','2013-CY',68.64);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ+3','2013-Q1',64.55);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ+4','2013-Q2',67.4);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ+5','2013-Q3',70.05);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PQ+6','2013-Q4',72.55);
    INSERT INTO SABEGH_TEST VALUES('B',TRUNC(SYSDATE),'PY+1','2014-CY',75.64);
    INSERT INTO SABEGH_TEST VALUES ('B',TRUNC(SYSDATE),'PY+2','2015-CY',78.14);
    So basically, the table contains Prices of a Product starting from Apr, 2012 going forward to Dec, 2015. If the price is same between consecutive months, those rows are merge into Quarters, Year and so on.
    i would like to have following output.
    A, 2012-04, 34.75
    A, 2012-05, 34.25
    A, 2012-06, 34.35
    A, 2012-07, 35.25
    A, 2012-08, 35.25
    A, 2012-09, 35.25
    A, 2012-10, 35.75
    A, 2012-11, 35.75
    A, 2012-12, 35.75
    A, 2013-01, 39.25
    A, 2013-02, 39.25
    A, 2013-03, 39.25
    A, 2013-04, 39.75
    A, 2013-05, 39.75
    A, 2013-06, 39.75
    A, 2013-07, 40.25
    A, 2013-08, 40.25
    A, 2013-09, 40.25
    A, 2013-10, 40.75
    A, 2013-11, 40.75
    A, 2013-12, 40.75
    A, 2014-01, 42.5
    A, 2014-02, 42.5
    A, 2014-03, 42.5
    A, 2014-04, 42.5
    A, 2014-05, 42.5
    A, 2014-06, 42.5
    A, 2014-07, 42.5
    A, 2014-08, 42.5
    A, 2014-09, 42.5
    A, 2014-10, 42.5
    A, 2014-11, 42.5
    A, 2014-12, 42.5
    A, 2015-01, 44.75
    A, 2015-02, 44.75
    A, 2015-03, 44.75
    A, 2015-04, 44.75
    A, 2015-05, 44.75
    A, 2015-06, 44.75
    A, 2015-07, 44.75
    A, 2015-08, 44.75
    A, 2015-09, 44.75
    A, 2015-10, 44.75
    A, 2015-11, 44.75
    A, 2015-12, 44.75
    So let me explain, how I got this o/p.
    The first and second insert statement has data for month 2012-04 and 2012-05, the third statement now contains row for Quarter (Q2), which is Apr, May and Jun; Since we already covered Apr and May, only Jun is left, so we assign 34.35 to 2012-06. Similarly we split Q1 (Jan, Feb, Mar) , Q3 (Jul, Aug, Sep) and Q4 (Oct, Nov, Dec). One thing to watch out is the row containing column PROMPT value as ‘PY’, this row has the average prices for all quarter (Q1 through Q4) for that year (2013-CY), in this example.
    The table contains multiple PRODUCTS per TRADE_DATE.
    Let me know, if you need more clarifications,
    Sabegh
    Edited by: getsaby on Jun 23, 2012 4:44 PM

    Thanks for your prompt reply. I am really sorry, if i was not clear with my question, so lets, start from the scratch. I am using Oracle 11g. Just to make it simple I used trunc(sysdate) for column TRADE_DATE. But the below data set now contains hard-coded date.
    CREATE TABLE SABEGH_TEST
    PRODUCT VARCHAR2(100),
    TRADE_DATE DATE,
    PROMPT VARCHAR(30),
    PERIOD VARCHAR(10),
    PRICE DECIMAL(8,2)
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PROMPT','2012-04',34.75);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PM+1','2012-05',34.25);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ','2012-Q2',34.35);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ+1','2012-Q3',34.25);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ+2','2012-Q4',34.75);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PY','2013-CY',40);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ+3','2013-Q1',39.25);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ+4','2013-Q2',39.75);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ+5','2013-Q3',40.25);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PQ+6','2013-Q4',40.75);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PY+1','2014-CY',42.5);
    INSERT INTO SABEGH_TEST VALUES ('A',14-JUN-2012,'PY+2','2015-CY',44.75);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PROMPT','2012-04',58.25);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PM+1','2012-05',58.75);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ','2012-Q2',58.63);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ+1','2012-Q3',59.75);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ+2','2012-Q4',61.85);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PY','2013-CY',68.64);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ+3','2013-Q1',64.55);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ+4','2013-Q2',67.4);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ+5','2013-Q3',70.05);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PQ+6','2013-Q4',72.55);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PY+1','2014-CY',75.64);
    INSERT INTO SABEGH_TEST VALUES ('B',14-JUN-2012,'PY+2','2015-CY',78.14);
    The required output is as follows, and this will be store in some table for reporting purposes.
    PRODUCT, TRADE_DATE, PERIOD , PRICE
    A,      14-JUN-2012 , 2012-04, 34.75
    A,      14-JUN-2012 , 2012-05, 34.25
    A,      14-JUN-2012 , 2012-06, 34.35
    A,      14-JUN-2012 , 2012-07, 35.25
    A,      14-JUN-2012 , 2012-08, 35.25
    A,      14-JUN-2012 , 2012-09, 35.25
    A,      14-JUN-2012 , 2012-10, 35.75
    A,      14-JUN-2012 , 2012-11, 35.75
    A,      14-JUN-2012 , 2012-12, 35.75
    A,      14-JUN-2012 , 2013-01, 39.25
    A,      14-JUN-2012 , 2013-02, 39.25
    A,      14-JUN-2012 , 2013-03, 39.25
    A,      14-JUN-2012 , 2013-04, 39.75
    A,      14-JUN-2012 , 2013-05, 39.75
    A,      14-JUN-2012 , 2013-06, 39.75
    A,      14-JUN-2012 , 2013-07, 40.25
    A,      14-JUN-2012 , 2013-08, 40.25
    A,      14-JUN-2012 , 2013-09, 40.25
    A,      14-JUN-2012 , 2013-10, 40.75
    A,      14-JUN-2012 , 2013-11, 40.75
    A,      14-JUN-2012 , 2013-12, 40.75
    A,      14-JUN-2012 , 2014-01, 42.5
    A,      14-JUN-2012 , 2014-02, 42.5
    A,      14-JUN-2012 , 2014-03, 42.5
    A,      14-JUN-2012 , 2014-04, 42.5
    A,      14-JUN-2012 , 2014-05, 42.5
    A,      14-JUN-2012 , 2014-06, 42.5
    A,      14-JUN-2012 , 2014-07, 42.5
    A,      14-JUN-2012 , 2014-08, 42.5
    A,      14-JUN-2012 , 2014-09, 42.5
    A,      14-JUN-2012 , 2014-10, 42.5
    A,      14-JUN-2012 , 2014-11, 42.5
    A,      14-JUN-2012 , 2014-12, 42.5
    A,      14-JUN-2012 , 2015-01, 44.75
    A,      14-JUN-2012 , 2015-02, 44.75
    A,      14-JUN-2012 , 2015-03, 44.75
    A,      14-JUN-2012 , 2015-04, 44.75
    A,      14-JUN-2012 , 2015-05, 44.75
    A,      14-JUN-2012 , 2015-06, 44.75
    A,      14-JUN-2012 , 2015-07, 44.75
    A,      14-JUN-2012 , 2015-08, 44.75
    A,      14-JUN-2012 , 2015-09, 44.75
    A,      14-JUN-2012 , 2015-10, 44.75
    A,      14-JUN-2012 , 2015-11, 44.75
    A,      14-JUN-2012 , 2015-12, 44.75
    B,      14-JUN-2012 , 2012-04, 58.25
    B,      14-JUN-2012 , 2012-05, 58.75
    B,      14-JUN-2012 , 2012-06, 58.63
    B,      14-JUN-2012 , 2012-07, 59.75
    B,      14-JUN-2012 , 2012-08, 59.75     
    B,      14-JUN-2012 , 2012-09, 59.75     
    B,      14-JUN-2012 , 2012-10, 61.85     
    B,      14-JUN-2012 , 2012-11, 61.85     
    B,      14-JUN-2012 , 2012-12, 61.85     
    B,      14-JUN-2012 , 2013-01, 64.55     
    B,      14-JUN-2012 , 2013-02, 64.55     
    B,      14-JUN-2012 , 2013-03, 64.55     
    B,      14-JUN-2012 , 2013-04, 67.4     
    B,      14-JUN-2012 , 2013-05, 67.4     
    B,      14-JUN-2012 , 2013-06, 67.4     
    B,      14-JUN-2012 , 2013-07, 70.05
    B,      14-JUN-2012 , 2013-08, 70.05
    B,      14-JUN-2012 , 2013-09, 70.05
    B,      14-JUN-2012 , 2013-10, 72.55
    B,      14-JUN-2012 , 2013-11, 72.55
    B,      14-JUN-2012 , 2013-12, 72.55
    B,      14-JUN-2012 , 2014-01, 75.64
    B,      14-JUN-2012 , 2014-02, 75.64
    B,      14-JUN-2012 , 2014-03, 75.64
    B,      14-JUN-2012 , 2014-04, 75.64
    B,      14-JUN-2012 , 2014-05, 75.64
    B,      14-JUN-2012 , 2014-06, 75.64
    B,      14-JUN-2012 , 2014-07, 75.64
    B,      14-JUN-2012 , 2014-08, 75.64
    B,      14-JUN-2012 , 2014-09, 75.64
    B,      14-JUN-2012 , 2014-10, 75.64
    B,      14-JUN-2012 , 2014-11, 75.64
    B,      14-JUN-2012 , 2014-12, 75.64
    B,      14-JUN-2012 , 2015-01, 78.14
    B,      14-JUN-2012 , 2015-02, 78.14
    B,      14-JUN-2012 , 2015-03, 78.14
    B,      14-JUN-2012 , 2015-04, 78.14
    B,      14-JUN-2012 , 2015-05, 78.14
    B,      14-JUN-2012 , 2015-06, 78.14
    B,      14-JUN-2012 , 2015-07, 78.14
    B,      14-JUN-2012 , 2015-08, 78.14
    B,      14-JUN-2012 , 2015-09, 78.14
    B,      14-JUN-2012 , 2015-10, 78.14
    B,      14-JUN-2012 , 2015-11, 78.14
    B,      14-JUN-2012 , 2015-12, 78.14
    I still didn't understand what you meant by "You still haven't explained how the various columns in your table affect the results", based upon the output data, i don't think any columns will affect the results. I am just interested in the above output format, with those four columns (PRODUCT, TRADE_DATE, PERIOD, PRICES)
    Thanks,
    Sabegh

  • Cannot select a Date in the 2nd week of any month from "Month View"

    Looking for some help with a strange problem that has started within the last day or 2. In Calendar, under the Month view, it will not allow me to select a date in the current week (or the second Week dates in ANY Month for that matter i.e. 6-8-08 thru 6-14-08, 8-3-08 thru 8-9-08, 4-6-08 thru 4-12-08). It skips from the 1st week of June (6-1-08 thru 6-7-08), to the 3rd and 4th weeks of June (6-15-08 thru the end of the month). It is like it is not recognizing where my finger is pointing. I can access the current week through the list view and day view, and it will allow me to post an event by choosing the current week in the add option, but will not let me pick that date to view it once it has been scheduled. The dot shows up, and it shows on list view, but cannot get to the date by selecting it in month view. That section of my phone screen will let me access other applications and recognize where I am touching, so I don't believe it is a sensor issue. I have tried rebooting, but it has not helped. Any ideas out there? Please let me know. Thank You! for any guidance.

    Clearwater Randy,
    If the screen is only not responding in that particular application, you may want to first do a reset. To reset, press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears.
    If that does not resolve your issue, try restoring in iTunes. To restore, connect your iPhone into iTunes and click Restore on the Summary page. Note: All of your information will be erased from the iPhone, so make sure to have a backup of important information on your computer before restoring.
    Hope this helps,
    Jennifer B.

  • ABAP code to derive last date of the month from month input.

    Hi ,
    how to derive the last date of of month for the for user exit variable
    Hussain Reddy

    Hi,
    See the following code.. .
    WHEN 'ZLDAY'.    " Customer Exit variable on 0CALDAY
      IF i_step = 2.
         data: fd type sy-datum,
               ld type sy-datum.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZDAY'.   " User entry date on 0CALDAY
            IF sy-subrc = 0.
              CLEAR: l_s_range.
              fd =  loc_var_range-low.
          CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
                  EXPORTING
                    day_in                  = fd
                 IMPORTING
                   last_day_of_month       = 
    *             EXCEPTIONS
    *               DAY_IN_NOT_VALID        = 1
    *               OTHERS                  = 2
                IF sy-subrc <> 0.
    *             MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                ENDIF.
             l_s_range-low = ld.
                l_s_range-sign = 'I'.
                l_s_range-opt = 'EQ'.
                APPEND l_s_range TO e_t_range.
           ENDIF.
      ENDIF.
    Simple Program.
    Just copy past in SE38 and test and use the logic for your requiremet
    REPORT  ztest1.
    data: fd type sy-datum,
             ld type sy-datum.
          fd = sy-datum.
          CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
            EXPORTING
              day_in                  = fd
           IMPORTING
             LAST_DAY_OF_MONTH       =  ld
    *       EXCEPTIONS
    *         DAY_IN_NOT_VALID        = 1
    *         OTHERS                  = 2
          IF sy-subrc <> 0.
             MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    write:/ ld.
    further help on exitc you ca see the articles.
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Thanks
    Reddy
    Edited by: Surendra Reddy on Dec 15, 2009 11:38 AM

  • Palm Desktop crashes when viewing one month in monthly view

    Hi--this is a weird problem. Never seen it before.
    --My Treo 680 (Win XP SP3), with Palm Desktop 6.2.2 seems to sync fine. I make changes in the Treo, it appears on the desktop.
    --Also, I can view and edit the desktop in DAY view.
    I normally default to monthly view though--and when I try to edit anything in a monthly view the Palm Desktop immediately crashes.This also seems to happen only with one month--July--where I recently added a lot of new appointments.
    I ran the "check" tool for corrupted records, came up clean.
    The data seems to be there and be safe and sync, but every time I try to access this one month from monthly view--it crashes.
    Any advice, suggestions?
    Post relates to: Treo 680 (Unlocked GSM)

    Your link generated an error message..but I did find a couple of relevant threads. Thanks..
    --I have no appointments spanning midnight, so I presume that's not the problem
    --I'm reluctant to downgrade versions. I use the same software on my Vista laptop as on my XP desktop and I'd like to confuse the issue or go through degrading both.
    The dbfix program was more interesting.  It found for Calendar: one appointment in several places that it said "blob goes beyond end of record."
    I don't know what that means, but it was particularly odd as this particular appointment was repeated in multiple years as long ago as 1969, it said--which goes beyond the ability of the desktop software even to access; certainly I wasn't using a Palm in 1969, and obviously it didn't exist. So I deleted all of them but for that 1969 one since the desktop will only go back to Jan 1970.
    After deleting what I could delete on the desktop, I sync'd.
    Didn't help.
    I ran the program again and the exact same older--presumbably fictitious-appointments from old years like 2007 were still coming up as checked errors. Hmmm. Apparently deleting them on the desktop helped not at all. So now I deleted one on the 680 as a test.
    I sync'd. Immediately crashed the Palm, but when it came came back up. I doublechecekd--that 2007 record was now gone from everything, desktop and PDA. I syncd again,,,went through fine this time.
    Ran dbfix again to check--just coming with that one 1969 inexplicable error.  Ran Palm Desktop now. Ran the Options/Tools/Check record on the desktop (included utility) just to be sure--no errors.
    The final test--running Palm Desktop back in monthly view.  Immediately crashed again.
    Shrug!
    Now, I don't mind buying the dbfix program if that'll do it, but does this seem like something it needs to go through and might actually fix, as opposed to my manually deleting the things?

  • How to make a report to display next 18 months of data with when user select a particular month from the filter in power pivot tabular model.

    Hi,
    i have a  dimension table  with month_key having values (201201,201202,201203.......202011,202012) and month name ( Jan 12, feb 12,......NOV 20, Dec 20)  and a fact  table with columns (month_key ,measure_types, Amount)
    My requirement is to create a power pivot report  in which when a user select a month from the filter, the report should display the (selected month+18 ) month's data against each type . when JAN 12 is selected ,the jan 2012 +18 = june 2013
    , month name should be populated with months till june 2013 only .
    i tried creating calculated column"END DATE " in the fact table with  dax expression to calculate the 18th monh from the current month  as below 
    month_key END DATE
    201201       201306    
    201202       201307      
    and thought of filtering the table with month key <= ENDDATE but it is not working as expected. could you please guide me on this ? Is there any time intelligence function that serve the purpose . Iam using  excel 2010
    ..hence could not do any calculation on the report side also. please suggest .
    Thanks in advance                                                                                                                                               

    Do you need to show the measure calculated for those 18 months as a total on 1 row, or do you need to select a single month and then display on row filters 18 distinct rows?
    The first is trivial as driezl has suggested.
    The second will require a second calendar table.
    I created this example workbook for a coworker who had a similar problem. You will have to use the disconnected table as your filter and pull your related table onto the rows.
    Finally, the easiest way to deal with the sort of date arithmetic you need to do is to restructure your date table to have a series of "Sequential" fields. These fields should be the number of units of time since the beginning of your calendar.
    For example, consider a calendar starting on January 1, 2010. For January - December 2010, [MonthSequential] = 1, 2, ..., 12. For January - December 2011, [MonthSequential] = 13, 14, ..., 24, and so on, incrementing by 1 for each sequential month in time.
    Assuming you have this set up in your date tables (one related to your model - DimDate - and one disconnected - DisconDimDate) your measure would look like this:
    18 Month Measure:=
    CALCULATE( [Measure]
    , FILTER( DimDate
    , DimDate[MonthSequential] >= MAX( DisconDimDate[MonthSequential] )
    && DimDate[MonthSequential] <= MAX( DisconDimDate[MonthSequential] ) + 18
    Please review this example along with the workbook I have linked above.

  • How do I display today's date and a date 1 month from today in livecycle designer

    Hello,
    Does anyone know how to display a future dates in 3 date fields that would be 1 month; 2 months and 3 months from today?
    I am making a sales contract form and in a date field is today's date (which can be altered if the user needs to change it).  The javascript I have is:
    if 
    (this.rawValue == null){
    var  
    msNow = (new Date()).getTime();
    var  
    d1 = new Date(msNow); this.rawValue
    = util.printd("mmm/dd/yyyy", d1);}
    else  
    { this.rawValue
    = rawValue;
    Then in the next date field i need to display the date 1 month from today
    The third date field 2 months from today
    the fourth date filed 3 months from today.
    Any suggestions would be greatly appreciated.

    Hi Peter,
    If you need to be more exact than adding 30 days then you can use the following code;
    function 
    addMonth(date){
      var year = date.getFullYear();  
      var month = date.getMonth();  
      var day = date.getDate();  month= (month % 12) + 1;  year
    += parseInt(month / 12); 
      var days = daysInMonth(month, year);  
      if (day > days)  {
        day= days;   }
      return new Date(year, month, day);}
     function  daysInMonth(iMonth, iYear){
      return 32 - new Date(iYear, iMonth, 32).getDate();}
    You need to pass in a Date object to addMonth so (assuming DateTimeField1 is your date field);
    NextMonth.rawValue= util.printd("mmm/dd/yyyy", addMonth(
    = util.printd("mmm/dd/yyyy", addMonth(
    Date.parse(DateTimeField1.formattedValue));
    Bruce

  • Extract a month from date hierarchy

    I have ssrs report based on cube. I have a date hierarchy where. date hierarchy is Year-Quarter-MonthYear. EG
    2014-Q2-May,2014. as labels display
    Values is like this:[Date].[Year to Month].[Month].&[2002]&[7]. How Can I extract month number like 7 from here so that I can do less than or equal in IIF is ssrs charts.
    I want to compare months with user input month so that I can restrict data in charts. If user select march,2014. I will display data from Jan 2014- Mach 2014 for actual.

    How is the user selecting the month? Is month parameter a free text field? If you're using MDX itself to populate month values then selected month value would be passed in same format itself ie [Date].[Year
    to Month].[Month].&[2002]&[7] etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • The calendar sync is recently not working correctly, not display "All events" but it only displays the last six months for my individual entries. My repeating entires do go back further, though. How do I fix?

    I have an iPad 5.1.1. The calendar sync has started to not work correctly. I have it checked "All events," but it only displays the last two months for my individual entries. My repeating entires do go back further, though. How do I fix?

    HI Jason269. Thanks for your reply, however I wrote that I already have "All events" checked. If All Events is checked and it doesn't diaplay all events, how do I fix? It seems this is a common issue, as I have read many others on here state the same problem.
    I believe my problem occurred when I synced my iMac calendar to my iPad calendar using yahoo. Yesterday, I unsynced them on my iMac controls. When I checked my iPad calendar, all of my old entries reappeared - but only for five seconds and disappeared again. So, the data is saved and still there but cannot be displayed, even when I have All events checked. In fact, it only shows my individual entries for the last two months, but does show all my recurring entries. If I switched to last six months, I will see everything for the last six months. If I switch back to all events, it is only for the last two months.
    As I mentioned, others on here have expressed exactly the same issue, including the two month example and having used yahoo.
    For legal purposes, I need to be able to use the information from my indidual calendar entries in an upcoming court case. So I really need to fix this ASAP!

  • How to subtract the month from an item type Date Picker

    Hi everybody!!
    I´m building an application (V4.2) in wich customer introduce a date (item P11_F_ACTIVIDAD, Display as Date Picker). I need to sustract the month from that field and use it in a SQL query to fetch all rows from a table that met that condition (column F_ACTIVIDAD) . The WHERE clause should has something like this: WHERE substr(to_char(h.F_ACTIVIDAD,'ddmmyyyy'),3,2)= substr(to_char(:P11_F_ACTIVIDAD,'ddmmyyyy'),3,2)  but SQL engine does not see ":P11_F_ACTIVIDAD" like a column name..... Of course, it is not a column name.
    I appreciate recomend me an idea to overcome this issue.
    Thanks so much!
    Luis

    Lecc23 wrote:
    Hi everybody!!
    I´m building an application (V4.2) in wich customer introduce a date (item P11_F_ACTIVIDAD, Display as Date Picker). I need to sustract the month from that field and use it in a SQL query to fetch all rows from a table that met that condition (column F_ACTIVIDAD) . The WHERE clause should has something like this: WHERE substr(to_char(h.F_ACTIVIDAD,'ddmmyyyy'),3,2)= substr(to_char(:P11_F_ACTIVIDAD,'ddmmyyyy'),3,2)  but SQL engine does not see ":P11_F_ACTIVIDAD" like a column name..... Of course, it is not a column name.
    I appreciate recomend me an idea to overcome this issue.
    Thanks so much!
    Luis
    In APEX, items can certainly be used as bound variables in a SQL statement; like this.
    SELECT emp.ename,
           emp.hiredate,
           EXTRACT (MONTH FROM emp.hiredate) hiredate_month,
           EXTRACT (MONTH FROM :p11_f_actividad) datepicker_month
      FROM emp
    WHERE SUBSTR (TO_CHAR (emp.hiredate, 'ddmmyyyy'), 3, 2) =
              SUBSTR (TO_CHAR ( :p11_f_actividad, 'ddmmyyyy'), 3, 2)
    Jeff

  • How to get the planned quantity of past month from md61

    Hi all,
           I couldnt get the planned quantity of past month from the tcode md61.It shows only the current and future month's demand.I want to know the planned quantity of past month's.
    I have checked PBIM,PBED,PBHI tables,here also I am facing the same problem.
        Is it possible to get past month quantity from md61? If No how to know the quantity planned for past month?...Please tel your ideas..
    Thanks in Advance!!!
    Edited by: Ranganayahi Chandirasekaran on Jul 30, 2008 8:17 AM

    Hi,
    You can check History of PIR through MD62 itself.
    Select particular row, Goto Menu, Select Item History(Shift +F6).
    Or
    You may pls execute transaction MD73.
    Plz select option "3 :History Planned ind reqmnts " in the display options and execute the report.
    Regards,
    R.Brahmankar

  • Getting month from Calendar Year/month...

    Dear All,
    I'm using Webi 4.0 SP6 and I need to get months from Calendar Year/Month which I'm using in a query to display on Cross Table along with brands.
    1. Is there any standard function available to convert Calandar Year/Month (Say: 201401 to Jan or January).?
    2. How can I get month from Calendar Year/Month for cross-table?
    I will appreciate your reply.
    Many Thanks!!!
    Tariq Ashraf

    Tariq,
    Month =  Substr([Cal Year];5;2)
    Month Name = If Substr([Cal Year];5;2) = "01" then "Jan"
                             else if Substr([Cal Year];5;2) = "02" then "Feb"
                             else if Substr([Cal Year];5;2) = "03" then "Mar"
                             else if Substr([Cal Year];5;2) = "04" then  "Apr"
                             else if Substr([Cal Year];5;2) = "05" then  "May"
                             else if Substr([Cal Year];5;2) = "06" then  "Jun"
                             else if Substr([Cal Year];5;2) = "07" then   "Jul"
                             else if Substr([Cal Year];5;2) = "08" then  "Aug"
                             else if Substr([Cal Year];5;2) = "09" then   "Sep"
                             else if Substr([Cal Year];5;2) = "10" then   "Oct"
                             else if Substr([Cal Year];5;2) = "11" then  "Nov" else "Dec"
    If you have data like 20140101 then simply use = formatdate([Date];"Mon")

  • How to display dates in half-months?

    How can I display dates in half-months from dim_date table? like shown below:
    Assume that 8/14/2012 is current date..
    07/15 - 07/30 - no. of opties created between those dates
    07/01 - 07/14 - no. of opties created
    06/15 - 06/30 - ...
    06/01- 06/14 - ...
    How can display the dates in those buckets? Any ideas appreciated.
    Thanks in adv.

    Try to build the same in RPD using the below sql.
    I've created a Flag based on W_DAY_D."DAY_OF_MONTH" <= 14 then 'F' else 'S' end
    in answers I've got min and max based on exp: min(Time."Row Wid" by Time.Flag)
    WITH
    SAWITH0 AS (select distinct T31328."PER_NAME_MONTH" as c1,
    case when T31328."DAY_OF_MONTH" <= 14 then 'F' else 'S' end as c2
    from
    "W_DAY_D" T31328 /* Dim_W_DAY_D_Common */
    where ( T31328."PER_NAME_YEAR" = '2012' ) ),
    SAWITH1 AS (select min(T31328."ROW_WID") as c1,
    max(T31328."ROW_WID") as c2,
    case when T31328."DAY_OF_MONTH" <= 14 then 'F' else 'S' end as c3
    from
    "W_DAY_D" T31328 /* Dim_W_DAY_D_Common */
    where ( T31328."PER_NAME_YEAR" = '2012' )
    group by case when T31328."DAY_OF_MONTH" <= 14 then 'F' else 'S' end )
    select distinct SAWITH0.c1 as c1,
    case when SAWITH0.c2 is not null then SAWITH0.c2 when SAWITH1.c3 is not null then SAWITH1.c3 end as c2,
    SAWITH1.c1 as c3,
    SAWITH1.c2 as c4
    from
    SAWITH0 full outer join SAWITH1 On SAWITH0.c2 = SAWITH1.c3
    Hope this helps, pls mark

  • Has anyone had deleted photo's from months ago reappear? I have a 3gs running iso4

    Has anyone had deleted photo's from months ago reappear? I have a 3gs running iOS 4.3.2

    Justin,
    Ok, if that's the way it works that's the way it works. Atleast until you suggest a feature change and it gets reprogrammed. And an option (other than the SHOW DATE/SHOW TIME) is not necessary, just the time showing WHEN the channel info disappears.
    I have also seen and heard what looks like RF interference. A small amount of line noise (a couple partial lines only) and crackling that does not happen all the time. Is it possible that some device or appliance in my house or the houses on either side of my home can cause RF interference with the FIOS equipment??
    As for the issue with the guide, IMHO that sux! Basically you are telling me I am forced to pay an extra $8/month just to have the channel guide? Even with basic Cable (Time Warner) a guide was available! How about a guide channel like TWC
    Koz
    Justin wrote:
    1) That is the way it works. There is no option to change this, other than the option to display either the channel number or the time. Actually the time is displayed once the channel is changed when the time in the STB reaches the next minute, so the delay can be very short or up to one minute.
    2) Most of the time I do not see the flash or hear the pop. But occasionally I do, on any channel change, SD or HD. I have never been able to figure out what causes it to start doing that, or what causes it to stop. It starts, does it for a while, and then I realize it is no longer doing it.
    3) No Guide on the DCT-700. Plus no VOD, widgets, or HD. If you want the Guide, you have to get one of the 6xxx or 7xxx STBs.
    Justin
    Verizon FiOS TV, Internet, and phone
    QIP6416-P1, IMG 1.7C, Build 09.83
    Keller, TX 76248

  • Cummulative last 3 months of each month from Calmonth Interval variable

    Hi,
      we have one complex scenario where we have to display dispatch quantity against the Calendar Month (user input variable).
    for example if user enters; FROM:  january 2009  TO:  march 2009, the dispatch quantity should be calculated as cummulative of last 3 months of each month as follows;
    (jan 2009Dec 2008Nov 2008)(Feb 2009Jan 2009Dec 2008)(Ma 2009feb 2009jan 2009)
    the same way we need calculate cummulative last 24 & 36 months for each month from user entry.
    Thanks,
    Janapati N

    Hi,
    Thanks for you replay and documentation, but it doesn't give me excatly the functionality I'm after. The only MTD calculation code the document provides is the calculation of the following functionality:
    "Month to Date (MTD) u2013 From the 1st of month to u201CKey Dateu201D - for current year." This doesn't give the the functionality I want, which is to retrieve a given vaule for a Key Figure for the last dates of the months in a year to calculate MTD and YTD.
    This way I have created the query is to have multiple hidden Key Figures that calculates the MTD and YTD.
    In Columns in Query Designer it will look something like this:
    Selection: MTD January--> Date = 31.01.2008, Key Figure (Always Show)
    Selection: YTD January --> Date= 31.01.2008, Key Figure (Always Show)
    Selection: MTD February --> Date= 29.02.2008, Key Figure (Always Hide)
    Formula: MTD February --> MTD February - MTD January (Always Show)
    Selection YTD February --> Date = 29.02.2008, Key Figure (Always Show)
    And so on....
    This is off course a simplified version, but it shows the core of the solution. What I want to achive here is that the dates used to get the Key Figures (last date of a month) is calculated as flexible as possible, so that the users can go back and forth in time without worrying about the leap year problem and so on. I have now used an offset from the last date of last year and this is good for all the normal years, but when it is a leap year the query will use wrong dates to get the key figure vaule for the last date of each month.
    Any ideas on how to achieve this without creating 12 different Customer Exit variables (one for each end date of each month)?
    Thanks
    Regards
    Oddmar Lid

Maybe you are looking for