How to display three months by prompt

Hi,
I have a requirement in dashboard,
there is a prompt of month, if I select one month, there will show three months' data,
example, if I select '201108', it will display 201107,201108,201109,
If I use '+' or '-' in month calculation, it has a problem, like across two year, 201012,201101,201102.
So how can I realize this requirement?
thank you!

example, if I select '201108', it will display 201107,201108,201109,
If I use '+' or '-' in month calculation, it has a problem, like across two year, 201012,201101,201102.I know this is not straight forward but you need to think this in more logical way. I know you have acheived it till the point you are selecting either Jan or Dec month like 201112 OR 201101.
EG: SUPPOSE I HAVE SELECTED 201112
Here you need to create a MID report with 3 cols like CURR MTH, PRV MTH, NEXT MTH
In NEXT MTH apply logic like :
- Convert 'CURR MTH + 1' to CHAR
- EXTRACT 2 CHARS from RIGHT
- IF EXTRACT = 13 THEN CONCAT (EXTRACT 4 CHARS FROM LEFT --- convert to INT and add 1. This will give you 2012 and concat this with 01). Again change to INT
REPORT will give: 201112, 201201, 201111
EG: SUPPOSE I HAVE SELECTED 201101
In PRV MTH apply logic like :
- Convert 'CURR MTH -1' to CHAR
- EXTRACT 2 CHARS from RIGHT
- IF EXTRACT = 00 THEN CONCAT (EXTRACT 4 CHARS FROM LEFT --- convert to INT and minus 1. This will give you 2010 and concat this with 12). Again change to INT
REPORT will give: 201101, 201102, 201012
You just need to play with String and CAST function to get it done
Rest you know..Hope this helps

Similar Messages

  • How to display three months data in ALV grid control

    Hi
    Thanks for all.I have tried now it is working but as per requirement month name and cumulative total will display like this format.cumulative total means month1amount+ month2amount+month3amount.And one more thing month range will change some times means sometimes i will give January date to march date and sometimes i will give July date to October date. but date range is same means between dates range is three months.
    please tell me how to display.
    GAS PRESSURE WELDING COST EFFECTIVENESS                                        Dec-11                         Cummulativetotal
    Sr. No             Item             Unit           Rate          Qty           Amount             
    GAS PRESSURE WELDING COST EFFECTIVENESS                                      Jan-12
    Sr. No             Item             Unit           Rate          Qty           Amount             
    GAS PRESSURE WELDING COST EFFECTIVENESS                                     Feb-12
    Sr. No             Item             Unit           Rate          Qty           Amount             
    Thanks & Regards,
    Vasu.
    Moderator message: only one thread per issue, please.
    Edited by: Thomas Zloch on Feb 20, 2012

    Hi
    Thanks for all.I have tried now it is working but as per requirement month name and cumulative total will display like this format.cumulative total means month1amount+ month2amount+month3amount.And one more thing month range will change some times means sometimes i will give January date to march date and sometimes i will give July date to October date. but date range is same means between dates range is three months.
    please tell me how to display.
    GAS PRESSURE WELDING COST EFFECTIVENESS                                        Dec-11                         Cummulativetotal
    Sr. No             Item             Unit           Rate          Qty           Amount             
    GAS PRESSURE WELDING COST EFFECTIVENESS                                      Jan-12
    Sr. No             Item             Unit           Rate          Qty           Amount             
    GAS PRESSURE WELDING COST EFFECTIVENESS                                     Feb-12
    Sr. No             Item             Unit           Rate          Qty           Amount             
    Thanks & Regards,
    Vasu.
    Moderator message: only one thread per issue, please.
    Edited by: Thomas Zloch on Feb 20, 2012

  • How to display 3 month columns and YTD column

    Hello,
    I need a help. My report layout requires to display the data in 3 dynamic month columns and one Fiscal year Year-to-date column for a period of time. For example, ending month is FEB:
    Items : DEC : JAN : FEB : FY YTD
    A     : $10     : $11     : $12     : $100     
    B     : $1     : $2     : $3     : $10
    (Note: FY YTD is the total sum from OCT to FEB (5 months), not 3 months to be displayed)
    I tried to create a query and use Matrix with group, but the report always display five (5) month columns
    from OCT to FEB instead of displaying three (3) month columns. If the query is limited to display
    three months as desired, then the total sum will be 3 displayed months only (instead of 5 months).
    How to create a query or how to display three months and FY YTD or do anything else with Oracle Builder9i?
    Thanks,

    You could use the DECODE function and variables
    i.e. have a four column report
    in your query use somthing like
    , decode(period,:P_PERIOD1,1,0)* amount as period1
    , decode(period,:P_PERIOD2,1,0)* amount as period2
    , decode(period,:P_PERIOD3,1,0)* amount as period3
    , amount as ytd
    In your before report trigger poulate the variables with your required values

  • How to Display Two Months in Sharepoint Calendar

     
    1. I have SharePoint Server. Do I need other software to the make the following change in Calendar?
    2. How to hide Saturday and Sunday or move Sunday to the first day. (Sunday is the last day in my current calendar. )
    3. How to display two months on one page?
    Thanks.

    Hello,
    For those still looking, you should ask on the
    SharePoint forums.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • How to display three LOVs for a single label name

    I have requirement to display three LOVs in a form which needs to be displayed side by side (instead of each item in a separate column). The name is common for all three cascaded LOVs and also I have other apex items in the same form displayed as two apex items per each row. The display format is something like ..
    Item1: Tex field Item2: Text field
    Item3: Radio button Item4: Text Field
    Item5: Text Area
    Item6 : LOV1 LOV2 LOV3
    any ideas are appreciated.
    thanks,
    Surya

    Surya:
    This is easy to do. Here's how
    Define the first LOV as you would normally.
    For the second and third LOVs set the following attributes
    Label : Leave Empty
    Begin On New Line:NO
    Field:NO
    Varad

  • How to display three different images in three planes(xy,yz,zx) simultaneously

    Hi,
    I am looking for some help on displaying three images on three planes(i.e, xy,yz,zx planes) at a time such that the user can see all the images and interpret them.The images should be arranged as in the faces of a cube.If anyone has any idea, their help is greatly appreciated.
    Thanx
    marooner

    marooner,
    I am curious about your application. I am having a hard time coming up with a reason for this style of display. I have some image mapping tools that could be used to do what you are asking for. Send me an email at [email protected], and we can discuss it further.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How to display empty months when grouping records by month

    Guys, I've got a recordset that successfully displays all
    records in the
    table grouped according to the month that the record was
    created in.
    This allows me to display a Monthly tally (a bit like a
    barchart - where the
    height of the column is derived by the qty of records for
    that given month)
    for each of the months in the year so far. However, it dawned
    on me today
    that if there was no activity in a given month, the month
    simply doesn't
    appear at all, rather than displaying but showing "0" as I
    would prefer.
    For example, the type of thing I want to display onscreen is:
    Month 1 2 3 4 5 6 7 8 9 10 11 12
    But let's say there were no records inserted in months June
    to September
    (inclusive), what I'm actually getting onscreen is:
    Month 1 2 3 4 5 10 11 12
    But what I actually want to appear onscreen is:
    Month 1 2 3 4 5 6 7 8 9 10 11 12
    I hope that makes some kind of sense...
    I'm using Dreamweaver CS3, ASP/VBScript, and MySQL.
    My current SQL Statement is as follows:
    SELECT Count(AffiliateID) AS TotalClicks, MONTH(`VisitDate`)
    AS Month
    FROM tbl_affiliaterefferals
    WHERE `AffiliateID` = "49" AND YEAR(`VisitDate`) =
    YEAR(Now()) GROUP BY
    MONTH(`VisitDate`)
    ORDER BY MONTH(`VisitDate`) ASC
    I figured one workaround would be to have 12 separate
    recordsets - one for
    each month - on the one page, but there must be a cleaner way
    of doing it
    surely?
    Any/all help greatly appreciated.
    Regards
    David

    This is a multi-part message in MIME format.
    ------=_NextPart_000_0086_01C932EC.D9CE33D0
    Content-Type: text/plain;
    format=flowed;
    charset="iso-8859-1";
    reply-type=original
    Content-Transfer-Encoding: 7bit
    Hi Joe,
    I've simply got a table, within one cell of which is another
    table to which
    I've applied a background colour and am specifying the height
    of the <td>
    cell as the qty of the number of records returned for Month 1
    of the current
    year. Then I'm applying a repeat region to the <TD>
    cell containing the
    table that varies in height, in order to force the table to
    repeat
    horizontally according to the number of records (months)
    retrieved from the
    database.
    The code for the table is in the attached txt file.
    I appreciate your time in responding however you must have
    missed my
    comments about what I'm working in as I'm working in
    ASP/VBScript and
    haven't the first clue when it comes to PHP.
    I don't suppose you know or can point me in the direction of
    an ASP
    equivalent of your suggestion?
    Regards
    David
    "Joe Makowiec" <[email protected]> wrote in
    message
    news:[email protected]...
    > On 20 Oct 2008 in macromedia.dreamweaver, DTB-K wrote:
    >
    >> I figured one workaround would be to have 12
    separate recordsets -
    >> one for each month - on the one page, but there must
    be a cleaner
    >> way of doing it surely?
    >
    > Without seeing the code you're using to display it...
    >
    > Probably what that code is doing is looping through the
    recordset:
    >
    > <?php do { ?>
    > ...
    > <?php } while ($row_dates =
    mysql_fetch_assoc($dates)); ?>
    >
    > That's DW's standard PHP MySQL recordset behavior. What
    you want to do
    > is something more like:
    >
    > <?php
    > for ($i=1;$i<13;$i++) { // Do 12 months
    > echo '<p>Month: ';
    > echo $i; //Echo the month
    > if ($row_Recordset1['Month'] == $i) {
    > // Have data for this month
    > echo ' Clicks: ';
    > echo $row_Recordset1['TotalClicks'];
    > // Now get the next row
    > // Note that we only want to get the next row if the
    current month
    > // has data. That's why the fetch command is inside the
    if.
    > $row_Recordset1= mysql_fetch_assoc($Recordset1);
    > } // End if
    > echo "</p>\n";
    > } // End for
    > ?>
    >
    > --
    > Joe Makowiec
    >
    http://makowiec.net/
    > Email:
    http://makowiec.net/contact.php
    ------=_NextPart_000_0086_01C932EC.D9CE33D0
    Content-Type: text/plain;
    format=flowed;
    name="Code.txt";
    reply-type=original
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: attachment;
    filename="Code.txt"
    <table border=3D"0" cellpadding=3D"0"
    cellspacing=3D"0">
    <tr>
    <td colspan=3D"2" valign=3D"bottom"><h1>Current
    Year:</h1></td>
    </tr>
    <tr>
    <td valign=3D"bottom" =
    class=3D"BodyTxtsml"><strong>Month</strong></td>
    <%=20
    While ((Repeat1__numRows <> 0) AND (NOT
    Rs_MonthlyClicks.EOF))=20
    %>
    <%Dim TotalClicks, Cellheight
    TotalClicks =3D =
    FormatNumber((Rs_MonthlyClicks.Fields.Item("TotalClicks").Value),
    0, -2, =
    -2, -2)
    Cellheight =3D (TotalClicks)
    %> =20
    <td valign=3D"bottom" class=3D"BodyTxtsml" =
    title=3D"<%=3D(TotalClicks)%>"><div
    align=3D"center"><table border=3D"0" =
    cellspacing=3D"0" cellpadding=3D"0">
    <tr>
    <td height=3D"<%=3D(Cellheight)%>" =
    bgcolor=3D"#003366" onMouseOver=3D"this.bgColor =3D
    '#FFDB9D'" =
    onMouseOut=3D"this.bgColor =3D'#003366'"
    width=3D"40"> </td>
    </tr>
    =
    </table><%=3D(Rs_MonthlyClicks.Fields.Item("Month").Value)%></div></td>
    <%=20
    Repeat1__index=3DRepeat1__index+1
    Repeat1__numRows=3DRepeat1__numRows-1
    Rs_MonthlyClicks.MoveNext()
    Wend
    %> =20
    </tr>
    </table>
    ------=_NextPart_000_0086_01C932EC.D9CE33D0--

  • Displaying current month in prompt

    Hi,
    I want to show the current month as the default value in Prompt in XI R3.1 Webi. i.e. when the user runs the report, the prompt for "Month" should show the current month (Say March) and if user wants to change it he can change it to someother month.
    Pls let me know how to acheive this (May be by doing changes to report or to the Universe).
    Regards
    Jim

    You can try the below step in Universe
    Steps
    1.You have a date time field = u201CDateXu201D
    2.Build another object of the same field in unv = u201CDate X New Objectu201D
    code:
    case When to_date (Sysdate, "MM") then "Current Month"
    end
    3.Build Condition in Unv = Date Picker
    code:
    @Select(Cass\DateX New Object) = @Prompt(u2019Date Pickeru2019,'Au2019,{u2019Customu2019,'Yesterdayu2019,'Last 10 Daysu2019,'Todayu2019},mono,constrained,persistent,{u2019Current Monthu2019})
    You can take reference of the below
    http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/

  • How to display Last month close as the footer

    Hi all,
    We are in the process of building a report that will have a footer that says "Last month Actuals loaded into the database: September FY13"
    I can do this by adding a data column (then hide it), change the period to CurMth subvar, which we update every month after loading the latest actuals then use the following function:
    Last month Actuals loaded into the database: <<MemberName("Grid1", A,"Period")>>
    This would work if the Period dimension was already in the Column but it is not.  If I go with this option then we would have to change the layout of all our reports.
    Is there an easier way?  Maybe a function that calls a value of a SubVar?
    Thanks,
    Mehmet
    p.s. We are on 11.1.2.2.300.  This is an Essbase connection

    Mehmet,
    I don't think there is a function to get the value of subvar. Another option you can try is to add another grid which can be used for all these activities. I do that most of the times
    You can save that one and link all reports to that one, so in case if you have to add more then change that at one place and all reports will start picking the change.
    Regards
    Celvin

  • How to display three separate input numbers as one formula display

      I need to create a front panel with three numerical inputs, these inputs are part of a formula equation. Also in the the same front panel should show the entire equation with the numerical inputs.

    Then? What is you question?
    Best Regards
    Hu Yu

  • How can display three type of service taxes in a single PLD

    Dear All,
    If we want a  *PLD* in following pattern how is it possible
    *Itemid*           *Item Name*          *Unit Price*            *Discount*        *Quantity*      *Tax*       *Total*
      Item01                       TEST1                          10                                  0                             1                    Service             11.2   
      Item01                       TEST1                          10                                  0                             1                  Cess_ST            10.2   
      Iitem01                      TEST1                          10                                  0                             1                HS Cess_ST          10.1         
    Please anybody help me

    Hi Follow These Steps in PLD And Automatically tax will split and show in ur layout .i think this vill solve ur problem Let take Tax Like 1).VAT -
    1
    2).CST----
    4
    3).SERVICE----
    5
    4).CESS_ST----
    6
    5).HSCESS_ST----
    -100
    Etcu2026.
    Now open Any Pld (For Ex: A/R Invoice)
    Add New Repititive Field Take all these fields in Repititive Area 1
    (I) Now take For VaT Let Text Field F_101 = 1
    (ii) Let Database Field F_102 = Database Table = SalesTaxAuthorities Column name = Numerator
    (iii) Let Database Field F_103 = Database Table = A/R Invoice Rows_TaxAmount Per Document Column name = TaxSum
    (iv) Let Formula Field F_104 = F_101 == F_102
    (v) Let Text Field F_105 = F_103*F_104
    (II)Now take For CST
    Let Text Field F_106 = 4
    (ii) Let Database Field F_107 = Database Table = SalesTaxAuthorities Column name = Numerator
    (iii) Let Database Field F_108 = Database Table = A/R Invoice Rows_TaxAmount Per Document Column name = TaxSum
    (iv) Let Formula Field F_109 = F_106 == F_107
    (v) Let Formula Field F_110 = F_108*F_109
    (I) Now take For Service
    Let Text Field F_111 = 5
    (ii) Let Database Field F_112 = Database Table = SalesTaxAuthorities Column name = Numerator
    (iii) Let Database Field F_113 = Database Table = A/R Invoice Rows_TaxAmount Per Document Column name = TaxSum
    (iv) Let Formula Field F_114 = F_111 == F_112
    (v) Let Text Field F_115 = F_113*F_114
    (II)Now take For Cess_ST
    Let Text Field F_116 = 6
    (ii) Let Database Field F_117 = Database Table = SalesTaxAuthorities Column name = Numerator
    (iii) Let Database Field F_118 = Database Table = A/R Invoice Rows_TaxAmount Per Document Column name = TaxSum
    (iv) Let Formula Field F_119 = F_116 == F_117
    (v) Let Formula Field F_120 = F_118*F_119
    (I) Now take For HSCess_ST
    Let Text Field F_121 = 1
    (ii) Let Database Field F_122 = Database Table = SalesTaxAuthorities Column name = Numerator
    (iii) Let Database Field F_123 = Database Table = A/R Invoice Rows_TaxAmount Per Document Column name = TaxSum
    (iv) Let Formula Field F_124 = F_121 == F_122
    (v) Let Text Field F_125 = F_123*F_124
    Similarly follow for the rest of taxes
    and in the End of the report
    Take one Let Text Field F_126 = VAT & link to F_127 Let Formula Field F_127 = ColSum("F_105")
    Let Text Field F_128 = CST & link to F_129 Let Formula Field F_129 = ColSum("F_110")
    Let Text Field F_130 = Service & link to F_131 Let Formula Field F_131 = ColSum("F_115")
    Let Text Field F_132 = Cess_ST & link to F_133 Let Formula Field F_133 = ColSum("F_120")
    Let Text Field F_134 = HSCess_ST & link to F_135 Let Formula Field F_135 = ColSum("F_125")
    And similarly follow for the other taxes
    Reagrds Jenny

  • How to have three prompts with one object?

    Dear collegues,
    I am creating a report where I want to see an employees salary in three different periods, f.ex 11.2006, 08.2007 and 09.2007. This is no problem when I set these spesific periods as filters in the query. But how can these three periods be prompted values? So that the user can choose for which three periods he wants to see the salary?
    I have used an object Month Year to try. I drag it into the filter area of the query three times, and gives it prompt-functionality and call them Date 1, Date 2, Date 3. When I try to run the query it just tells me "No data".. (BO 6.0)
    Is this possible?
    Will sign points if you can help!
    regards Silje

    Hi Jaques,
    Thank you!
    I want to distribute the three dates on three different columns, date 1, date 2, date 3. Is that possible with inList?
    If I use OR, do I get all the dates and can distribute them in different columns?
    (In this report we follow salary development of employees. The report shows the given salary at three different points of time for an employee).
    Regards Silje

  • How to display calendar in web part with selected month(jan,feb,march) in sharepoint 2013

    Hi All,
    How to display selected Month like jan,feb,march in single page with different webparts.
    I created 3 webparts and selected(jan,feb,march) but when page refreshes all webparts are displaying current month(December).
    Here i attached the screen shot, where December should be shown as (January and February)
    Kindly check and guide me in right track.
    Thanks
    Prabhat.
    Madhu Prabhat

    Hi,                                                             
    To develop a custom web part, you can take a look at the links below with steps in detail for a start:
    Creating Web Parts for SharePoint
    http://msdn.microsoft.com/en-us/library/ee231579.aspx
    Sharepoint 2013 Create a Visual Web Part
    http://raquelalineblog.wordpress.com/2013/04/25/sharepoint-2013-create-a-visual-web-part/
    Another three links for your reference:
    http://www.learningsharepoint.com/2012/12/24/how-to-create-a-custom-webpart-in-sharepoint-2013/?goback=%2Egde_3911588_member_198759022#%21
    http://www.youtube.com/watch?v=9iK8IPUB87w
    http://sptechbytes.blogspot.com/2013/10/sharepoint-2013-creating-visual-webpart_26.html
    Here are some samples of custom calendar web part for your reference:
    http://www.codeproject.com/Articles/108676/SharePoint-Custom-Calendar
    http://gunnarpeipman.com/2009/01/creating-sharepoint-global-calendar/
    https://blog.metrostarsystems.com/2013/10/21/creating-a-custom-sharepoint-calendar-rollup/
    You can also do more customization by adding your own logic in it.
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to display Current Year and Month in Drop Down list

    Hi Dear friends,
    I am devloping a report. It has got 2 pages--input and output(Report) page.
    IN input page, user will select Month and Year from drop down list as one of the input parameters. (seperate drop down list 4 month and year)
    Now, my problem is:
    HOw to display current month and year by default in the dropdown list...........
    I hope my question is clear.
    Please help.
    Regards,
    ASh

    NO da,
    it is not working.
    First i tired with for-loop. I initialized variable "i" to -2 (i=-2) I would get the year drop down list from 2003 but, by default 2003 would come.
    So, i posted the question.
    I tried your code. It is giving following error.
    A Servlet Exception Has Occurred
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured between lines: 122 and 127 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:182: Invalid type expression.
    first.set(Calendar.YEAR, 2003)
    ^
    An error occured between lines: 127 and 131 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:186: Invalid declaration.
    out.write("\r\n \r\nYear : \r\n \r\n"); ^ An error occured between lines: 198 and 203 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:282: Invalid type expression. first1.set(Calendar.YEAR, 2003) ^ An error occured between lines: 203 and 207 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:286: Invalid declaration. out.write("\r\n \r\nYear :\r\n \r\n");
    ^
    4 errors
    Pls. Help.
    Regards,
    Ashu

  • Hello, My iCal don't synchronize older events than two or three month ago. How can I do to synchronize all my schedule? In iTunes it's all right in Calendars. I don't put a cross in "synchronize event older than ....... days". Thanks for answer.

    Hello, My iCal don't synchronize older events than two or three month ago. How can I do to synchronize all my schedule? In iTunes it's all right in Calendars. I don't put a cross in "synchronize event older than ....... days". Thanks for answer.

    Just saw your post. Better late than never. You may want to
    consider GameBrix.com, where you can create Flash based, casual
    games using your web browser. No downloads are required. You can
    create a game from scratch using a library of images, sounds and
    game mechanics. You can also upload your own. The online script
    editor will allow you to view and edit the ActionScripts associated
    with each game mechanic. In short, a great way to ramp up on game
    design and build your own game without investing a lot of $
    upfront.
    BTW I am associated with GameBrix so any feedback is
    appreciated.

Maybe you are looking for

  • F9I4 - Payment item parking - IHC

    Hi: I have a problem when processing a payment item in In In House Cash. When trying to park a manually created payment item, in transaction F9I4, the system gives an error. The error is "Parking payment items on CpD (suspense) account is not possibl

  • MacBook Pro freezes often...

    I have a MacBook Pro that freezes pretty often. Sometimes it will restart by itself. I'm running Lion, and I don't recall these problems before I installed that OS. Any thoughts?

  • 3rd Party Drop Ship Process

    Hello Friends I was told to create a third party drop ship process and its going to be only one product for now , please help me to show steps to create this. Thank's

  • Image size reduction is doing new and unwelcome things to my PNGs

    I've recently upgraded to Photoshop 6 from 5.5. My work involves taking large (1500-3000 pixels square) and reducing them to 256 or below. Upon upgrading to Photoshop 6 I started to notice that the images were looking a little harsher and less blende

  • Applet won't finish loading

    Please bare with me as I'm new to Java. I'm using Eclipse 3.1.1. I'm working on a cheesy client server project to learn the language. I'm having difficulty with the client. It runs fine through Eclipse. When I compile my jar, sign it and run it from