How to group each 3 months of a year and dynamic a new column?

I have a sql which can display the belows records.
YEARS MONTHS SUMMONTH SUMYEAR
2009 Apr      130288 1720164
2009 Aug      138776 1720164
2009 Dec      140294 1720164
2009 Feb      136422 1720164
2009 Jan      148253 1720164
2009 Jul      149842 1720164
2009 Jun      122805 1720164
2009 Mar      145872 1720164
2009 May      151193 1720164
2009 Nov      133487 1720164
2009 Oct      169443 1720164
2009 Sep      153489 1720164
2010 Apr      142255 1719457
2010 Aug      135894 1719457
2010 Dec      171203 1719457
2010 Feb      137011 1719457
2010 Jan      145493 1719457
2010 Jul      137474 1719457
2010 Jun      154411 1719457
2010 Mar      133062 1719457
2010 May      146887 1719457
2010 Nov      139869 1719457
2010 Oct      127191 1719457
2010 Sep      148707 1719457
24 rows selected The SQL that I am using:
select years, months, summonth, sumyear
from(
select years, months, SUM (sumHour) OVER (PARTITION BY years,months) sumMonth, SUM (sumHour) OVER (PARTITION BY years) sumyear
from (SELECT x.years, x.months, x.days, x.hours, x.mins, sum(x.value) as sumHour
FROM xmltest,
XMLTABLE ('$d/cdata/name' passing xmldoc as "d"
   COLUMNS
  years integer path 'year',
  months varchar(3) path 'month',
  days varchar(2) path 'day',
  hours varchar(2) path 'hour',
  mins varchar(2) path 'minute',
  value float path 'value'
  ) as X
  group by x.years, x.months, x.days, x.hours, x.mins
  order by x.years, x.months, x.days
  group by years,months,summonth,sumyear
  order by yearsand now the problems is...how can I group the sum of 3months of record as a quarter of year in a dynamic column?
The display should be likie this:
YEARS MONTHS SUMMONTH SUMQUARTER SUMYEAR
2009 Feb      136422     430547 1720164
2009 Jan      148253     430547 1720164
2009 Mar      145872     430547 1720164
2009 Apr      130288     404286 1720164
2009 Jun      122805     404286 1720164
2009 May      151193     404286 1720164
2009 Aug      138776     442107 1720164
2009 Jul      149842     442107 1720164
2009 Sep      153489     442107 1720164
2009 Dec      140294     443224 1720164
2009 Nov      133487     443224 1720164
2009 Oct      169443     443224 1720164
2010 Feb      137011     415566 1719457
2010 Jan      145493     415566 1719457
2010 Mar      133062     415566 1719457
2010 Apr      142255     443553 1719457
2010 Jun      154411     443553 1719457
2010 May      146887     443553 1719457
2010 Aug      135894     422075 1719457
2010 Jul      137474     422075 1719457
2010 Sep      148707     422075 1719457
2010 Dec      171203     438263 1719457
2010 Nov      139869     438263 1719457
2010 Oct      127191     438263 1719457
24 rows selected Thanks everyone helps me.!!

may be using an outer select :
SQL> with sample_tab as
  2  (
  3  select  2009 year, 'Aug' month, 138776 summonth , 1720164  sumyear from dual union all
  4  select  2009,'Apr',130288,     1720164 from dual union all
  5  select  2009,'Dec', 140294 , 1720164  from dual union all
  6  select  2009,'Feb', 136422 , 1720164  from dual union all
  7  select  2009,'Jan', 148253 , 1720164  from dual union all
  8  select  2009,'Jul', 149842 , 1720164  from dual union all
  9  select  2009,'Jun', 122805 , 1720164  from dual union all
10  select  2009,'Mar', 145872 , 1720164  from dual union all
11  select  2009,'May', 151193 , 1720164  from dual union all
12  select  2009,'Nov', 133487 , 1720164  from dual union all
13  select  2009,'Oct', 169443 , 1720164  from dual union all
14  select  2009,'Sep', 153489 , 1720164  from dual union all
15  select  2010,'Apr', 142255 , 1719457  from dual union all
16  select  2010,'Aug', 135894 , 1719457  from dual union all
17  select  2010,'Dec', 171203 , 1719457  from dual union all
18  select  2010,'Feb', 137011 , 1719457  from dual union all
19  select  2010,'Jan', 145493 , 1719457  from dual union all
20  select  2010,'Jul', 137474 , 1719457  from dual union all
21  select  2010,'Jun', 154411 , 1719457  from dual union all
22  select  2010,'Mar', 133062 , 1719457  from dual union all
23  select  2010,'May', 146887 , 1719457  from dual union all
24  select  2010,'Nov', 139869 , 1719457  from dual union all
25  select  2010,'Oct', 127191 , 1719457  from dual union all
26  select  2010,'Sep', 148707 , 1719457  from dual
27  )
28  select year,
29         month,
30         summonth,
31         sum(summonth) over(partition by year || to_char(ym, 'Q') order by year || to_char(ym, 'Q')) sumquarter,
32         sumyear
33    from (
34          select year,
35                  month,
36                  summonth,
37                  sumyear,
38                  to_date(year || month, 'YYYYMon') ym
39            from sample_tab)
40   order by ym
41  ;
      YEAR MONTH   SUMMONTH SUMQUARTER    SUMYEAR
      2009 Jan       148253     430547    1720164
      2009 Feb       136422     430547    1720164
      2009 Mar       145872     430547    1720164
      2009 Apr       130288     404286    1720164
      2009 May       151193     404286    1720164
      2009 Jun       122805     404286    1720164
      2009 Jul       149842     442107    1720164
      2009 Aug       138776     442107    1720164
      2009 Sep       153489     442107    1720164
      2009 Oct       169443     443224    1720164
      2009 Nov       133487     443224    1720164
      2009 Dec       140294     443224    1720164
      2010 Jan       145493     415566    1719457
      2010 Feb       137011     415566    1719457
      2010 Mar       133062     415566    1719457
      2010 Apr       142255     443553    1719457
      2010 May       146887     443553    1719457
      2010 Jun       154411     443553    1719457
      2010 Jul       137474     422075    1719457
      2010 Aug       135894     422075    1719457
      YEAR MONTH   SUMMONTH SUMQUARTER    SUMYEAR
      2010 Sep       148707     422075    1719457
      2010 Oct       127191     438263    1719457
      2010 Nov       139869     438263    1719457
      2010 Dec       171203     438263    1719457
24 rows selected
SQL>

Similar Messages

  • The user acct my apple was connected to no longer works (corrupt).  My Apple TV is still synced to that account and all of my recent purchases are going to that username.  Does anyone know how to get all of the purchased items back and to the new user?

    The user profile my appleTV was synced on my computer to no longer works (corrupt).  My Apple TV is still synced to that profile and all of my recent purchases are going to that username.  Does anyone know how to get all of the purchased items back and to the new user (same computer)?  I created a new user on my computer and moved the itunes folder to the desktop but never changed the path to which the apple synced to.  Now I can only see old items I purchased before the user profile went bad.  PLease help!

    Welcome to the Apple Community.
    Changing the library the Apple TV is synced with will delete all synced content from the Apple TV, but it won't delete purchased content.
    You should be able to change the library, resync any content you want and transfer your purchases back to the new library.

  • How do u transfer pictures/tunes from 4 year old mac to new mac

    how do u transfer pictures/tunes from 4 year old mac to new mac ?

    These articles should help:
    http://support.apple.com/kb/HT4527?viewlocale=en_US
    http://support.apple.com/kb/HT1229

  • I have a G4 Quicksilver that no longer works, but the hd may still be good. How can I get files off the G4 hd and onto my new iMac?

    I have a G4 Quicksilver 2001 that no longer works, but the hd may still be good. How can I get files off the G4 hd and onto my new late 2013 iMac?

    Also, how do I boot the G4 into FireWire Target Disk mode?
    First, the G4 must be able to start to use FWTDM. If it can start, hold the t key at boot until you get a "screensaver pattern" that looks like this:
    If the G4 is attached via a FireWire cable to a newer Mac with a FireWire port, the G4's hard drive will appear on the other Mac's desktop just as if it were any external drive. A USB cable won't work for FWTDM.
    Just wondering if the drive in my G4, which I believe may be an ATA drive will also work in an enclosure for a SATA drive?
    No. ATA (actually "PATA" or "IDE") and SATA are different interfaces. PATA external enclosures are now very hard to find. You best and least expensive option is the adaptor that BDAqua linked. One of its connectors is for PATA drives.

  • I changed my number along with my sim card and imessage will not recognize my new number. how can i have imessage forget my old number and use my new number?

    i changed my number along with my sim card and imessage will not recognize my new number. how can i have imessage forget my old number and use my new number?
    i have tried signing out of imessage and signing back in. (when i do that and am asked to select my email adress, i see my new number but it is greyed out and i cant select it)

    But under send and receive, my old number is still displayed while my new number isn't.

  • How do i take pictures off my time capsule and onto my new mac?

    how do i take pictures off my time capsule and onto my new mac?

    See Here  >  http://support.apple.com/kb/HT4083

  • How to group these values month by month ?

    Hi,
    I have a nice SQL statement which returns days by days, the values of a device.
    WITH S1 AS
      (SELECT DATE1,
        ROUND(AVG(VALEUR),2) Debit
         FROM EVV_E032
        WHERE DATE1 BETWEEN TO_DATE('01012006000000', 'DDMMYYYYHH24MISS') AND TO_DATE('31122006235959', 'DDMMYYYYHH24MISS')
      AND CLEF_VAR =
        (SELECT CLEF_VAR FROM SITE_DEBIT_RIVIERE WHERE SITE = 'E032'
    GROUP BY date1
    SELECT NULL LINK    ,
      TO_CHAR(n, 'DD.MM'),
      NVL(ROUND(AVG(Debit),2), 0) "Débit"
       FROM
      (SELECT TRUNC(TRUNC(to_date(2006,'YYYY'),'year'), 'DD')-1 + level n,
        rownum jours
         FROM dual CONNECT BY level<=366
      ) days
    LEFT JOIN s1
         ON days.n = TRUNC(date1,'DD')
    GROUP BY n
    ORDER BY nSample values :
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('10/02/2006 09:49:59','DD/MM/YYYY HH24:MI:SS') 1,63);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('21/02/2006 10:35:12','DD/MM/YYYY HH24:MI:SS') 1,68);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('21/02/2006 11:30:30','DD/MM/YYYY HH24:MI:SS') 0);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('23/02/2006 14:02:02','DD/MM/YYYY HH24:MI:SS') 0);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('23/02/2006 16:22:34','DD/MM/YYYY HH24:MI:SS') 0);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('30/04/2006 18:09:08','DD/MM/YYYY HH24:MI:SS') 1,72);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('20/05/2006 11:57:02','DD/MM/YYYY HH24:MI:SS') 1,72);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('07/06/2006 15:11:58','DD/MM/YYYY HH24:MI:SS') 1,79);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('08/06/2006 20:00:26','DD/MM/YYYY HH24:MI:SS') 1,82);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('19/06/2006 09:42:32','DD/MM/YYYY HH24:MI:SS') 1,72);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('20/06/2006 04:30:00','DD/MM/YYYY HH24:MI:SS') 1,82);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('20/06/2006 10:39:01','DD/MM/YYYY HH24:MI:SS') 1,72);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('24/06/2006 19:34:50','DD/MM/YYYY HH24:MI:SS') 1,82);
    Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('26/06/2006 14:37:26','DD/MM/YYYY HH24:MI:SS') 1,88);The output are values grouped day by day. I would like to group tehse values month by month, but could not figure how to do. Even though I am not a newbie newbie on SQL, this code is going far too much for me. I know some of you guys can handle this. I tried hard but coud not succeed. Could you help me ?
    Regards, Christian.

    Difficult to work out (read: too much hassle) with your data and sql, as you haven't provided a set of info for all the tables provided, but hopefully this will give you an idea:
    with my_tab as (select trunc(sysdate)+30 dt, 1 val from dual union all
                    select trunc(sysdate) dt, 2 val from dual union all
                    select trunc(sysdate) dt, 20 val from dual union all
                    select trunc(sysdate)+30 dt, 10 val from dual union all
                    select trunc(sysdate)+60 dt, 6 val from dual)
    -- end of mockup of table "my_tab"; see SQL below...
    select trunc(dt, 'mm') dt, sum(val)
    from   my_tab
    group by trunc(dt, 'mm')
    order by trunc(dt, 'mm');
    DT          SUM(VAL)
    01-MAR-09         22
    01-APR-09         11
    01-MAY-09          6

  • How to get the first month of the year inputed by user manually

    Hi Expert,
    Just like the subject, I 'd like to get the first month of the year inputed by user manually, but don't know how to set the variable, please help.
    For example, user execute a query and input the value of variable Year = 2010, and what I want to get is 201001 into another variable, so that I can use this variable to setup another selection.
    Thank you.
    Andy

    Hi Andy,
    1) U will create a user input varaible for year and say it is ZYEAR.
    2)  U will create another variable  for calmonth  which has processing type : customer exit ..single value ...mandatory ....say ZCMONTH.
    This needs to be populated using the year( user inputted )  and calmonth '001'
    This code will fetch the user input value into ZYEAR and append '001' to the user input value and the value
    will be passed to the ZCMONTH varaible...
    Sample Code is....
    When 'ZCMONTH'.
    IF I_STEP = 2.
         READ TABLE I_T_VAR_RANGE WITH KEY VNAM = 'ZYEAR'.
         IF SY_SUBRC = 0.
                    L_S_RANGE-LOW  =  I_T_VAR_RANGE-LOW.
                   L_S_RANGE-LOW+4(3) = '001'.
                  L_S_RANGE-SIGN = 'I'.
                 L_S_RANGE-OPT  = 'EQ'.
                      APPEND L_S_RANGE TO E_T_RANGE.
        ENDIF.
    ENDIF.
    Regards
    vamsi

  • How to compare a Date data with Current Year and Period Member on FIX

    Hi experts,
    I have a Project dim that each member is a Project (P01, P02...)
    and Account dim that stores information of the each Project (Name, Start date, Finished Date...)
    Finished Date member is in Date data type
    So how can write a IF condition below in order to compare Project Finished Date with Current Year and Period members on FIX
    FIX (@Descendants(Projects), Descendants(All Year), Descendants("Year Total")...)
    IF (@CURRMBR(Period)->@CURRMBR(Year) < Project->FinishedDate)
    Do something...
    Else
    Do something
    Please help me on this. Sorry for my bad grammar. Please ask if there is anything unclear
    Many thanks,
    Huy Van.
    Edited by: Huy Van on Jan 29, 2013 1:14 AM
    Edited by: Huy Van on Jan 29, 2013 2:24 AM
    Edited by: Huy Van on Jan 29, 2013 2:25 AM
    Edited by: Huy Van on Jan 29, 2013 6:04 PM

    Here is what I have done. Post for whom may concern later
    VAR FM; /* Finished Month of Project*/
    VAR FY; /* Finished Year of Project */
    VAR CM; /* Capture Current Month on FIX statments */
    VAR CY; /* Capture Current Year on FIX statments*/
    FIX ( @RELATIVE( "Year", 0), @RELATIVE( "Period", 0), @IDescendants( "Base Projects")....)
    FY = @ROUND( "TGHT"->"NA Contract"->"FY06"->"NA Period" / 10000, 0);
    FM = @MOD( @ROUND( "TGHT"->"NA Contract"->"FY06"->"NA Period" / 100, 0), 100);
    /* For FY13 return 13... */
    CY = @JgetDoubleFromString( @CONCATENATE( "20", @SUBSTRING( @NAME( @CURRMBRRANGE( Year, Lev, 0, 0, 0)), 2)));
    /* Set CM value based on currrent Period On FIX statement */
    IF ( @ISMBR( "Jan"))
    CM = 1;
    ELSEIF ( @ISMBR( "Feb"))
    CM = 2;
    ELSEIF ( @ISMBR( "Dec"))
    CM = 12;
    ENDIF
    IF ( CY < FY OR ( CY == FY AND CM < FM))
    Do something...
    ELSE
    Do something...
    ENDIF
    ENDFIX
    Edited by: Huy Van on Feb 19, 2013 11:10 PM
    Edited by: Huy Van on Feb 20, 2013 7:46 PM

  • I changed my apple id but the apple id for icloud did not change on my mac.  How do I get icloud account information to change and match my new apple id?

    I changed my apple id but the applie id for icloud did not change on my mac in system preferences. 
    I have changed my apple id on system preferences under users and groups but the icloud preferences don't pick up the change.
    I restarted my computer, and still no change.
    I have been using icloud under my old apple id for mail calendars and notes.
    How do I get icloud account information to change on my mac's system preferences and match my new apple id?
    I am missing something.
    Please help.  Thanks.

    Thank you Roger, your solution gave me the courage to sign out of Systems Preferences.  The pop up told me it was going to delete my contact and other information from my mac, so I was hesitant to do that.  Well I did as you directed and I was able to sign in with my new apple id and I did not lose the information the pop up threatened I was going to.  So again thank you.  It is the little things that make a big difference sometimes.

  • How to calculate Sales percentage difference between selected year and its previous year in a Matrix

    Hi,
    I'm trying to generate a report using matrix like this
                                                          Month
    Product     PreviousYearSalesAmount    SelectedYearSalesAmount      %SalesDifference
    I can populate year sales amount, but i cant calculate the percentage.
    Can Anyone help me please.
    Note: Month and Year are passed as parameters.
    Thank you.

    Hi Abhiram,
    As per my understanding you can show your fields in matrix.
    Only problem is to create the additional column which will have the  %SalesDifference value right?
    If yes,
    Just create one column as shown in below screen,
    It will create one column, Name the header of this newly created column as %SalesDifference
    In below this header , where you want to show the value for %SalesDifference as
    =sum(iif(Fields!year.Value=Parameters!year.Value,(Fields!SalesAmount.Value),-Fields!SalesAmount.Value))/Fields!SalesAmount.Value
    Set the property of the column in number as Percentage.
    run the report, you will see as below screen.
    For your reference I am attaching my RDL code, you can save as .rdl file and run the report (sample Data inside the report only)
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Matrix</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>14pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.37in</Height>
    <Width>5in</Width>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    <Tablix Name="Tablix1">
    <TablixCorner>
    <TablixCornerRows>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="Textbox16">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Product</Value>
    <Style>
    <FontWeight>Bold</FontWeight>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox16</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>LightBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="Textbox17">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontWeight>Bold</FontWeight>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox17</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    </TablixCornerRows>
    </TablixCorner>
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1.79722in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1.76722in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="SalesAmount">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!SalesAmount.Value)</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>SalesAmount</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox76">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=sum(iif(Fields!year.Value=Parameters!year.Value,(Fields!SalesAmount.Value),-Fields!SalesAmount.Value))/Fields!SalesAmount.Value</Value>
    <Style>
    <Format>0.00%</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox76</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="month">
    <GroupExpressions>
    <GroupExpression>=Fields!month.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!month.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="month1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=MonthName(Fields!month.Value)</Value>
    <Style>
    <FontWeight>Bold</FontWeight>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>month1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>LightBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <Group Name="year">
    <GroupExpressions>
    <GroupExpression>=Fields!year.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!year.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="year">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!year.Value</Value>
    <Style>
    <FontWeight>Bold</FontWeight>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>year</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    </TablixMember>
    <TablixMember>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="Textbox61">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>%SalesDifference</Value>
    <Style>
    <FontStyle>Normal</FontStyle>
    <FontWeight>Bold</FontWeight>
    <TextDecoration>None</TextDecoration>
    <Color>#000000</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox61</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>LightBlue</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="Textbox62">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontWeight>Bold</FontWeight>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox62</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="Product">
    <GroupExpressions>
    <GroupExpression>=Fields!Product.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!Product.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1.38889in</Size>
    <CellContents>
    <Textbox Name="Product1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!Product.Value</Value>
    <Style />
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Product1</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.38in</Top>
    <Left>0.04667in</Left>
    <Height>0.75in</Height>
    <Width>4.95333in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </Tablix>
    </ReportItems>
    <Height>1.20167in</Height>
    <Style />
    </Body>
    <Width>5.1in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>DataSource1</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>501ee6de-61fb-416f-9a92-011661d01cba</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@year">
    <Value>=Parameters!year.Value</Value>
    </QueryParameter>
    <QueryParameter Name="@Month">
    <Value>=Parameters!Month.Value</Value>
    </QueryParameter>
    </QueryParameters>
    <CommandText>select * from
    select 'apple' Product ,1 month ,2014 year,2000 SalesAmount
    union
    select 'apple' Product ,1 month,2015 year,3000 SalesAmount
    union
    select 'dell' Product ,1 month,2014 year,3000 SalesAmount
    union
    select 'dell' Product ,1 month,2015 year,2500 SalesAmount
    union
    select 'apple' Product ,2 month,2014 year,1500 SalesAmount
    union
    select 'apple' Product ,2 month,2015 year,3000 SalesAmount
    union
    select 'dell' Product ,2 month,2014 year,3000 SalesAmount
    union
    select 'dell' Product ,2 month,2015 year,5500 SalesAmount
    )t
    where year between @year-1 and @year
    and Month=@Month</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="Product">
    <DataField>Product</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="month">
    <DataField>month</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="year">
    <DataField>year</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="SalesAmount">
    <DataField>SalesAmount</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportParameters>
    <ReportParameter Name="year">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>2015</Value>
    </Values>
    </DefaultValue>
    <Prompt>year</Prompt>
    </ReportParameter>
    <ReportParameter Name="Month">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>1</Value>
    </Values>
    </DefaultValue>
    <Prompt>Month</Prompt>
    </ReportParameter>
    </ReportParameters>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>ee1a8383-6595-42b1-94f2-c68d681c85d3</rd:ReportID>
    </Report>
    Thanks
    Prasad
    Mark this as Answer if it helps you to proceed on further.

  • How to disable a single cell in a table (and not the whole column)

    Hi there,
    I've got a webdynpro table with a few columns, rows can be created dynamically through a button in the table toolbar.
    Depending on the value of a certain cell I have to disable another cell (in the same row).
    I tried to manipulate the view in the modifyview but no joy. I also tried to manipulate the attribute property through the coding below:
      DATA lv_knttp TYPE knttp.
      lo_nd_kostl = wd_context->path_get_node( path = `MULTIVALUES.KOSTL` ).
      lo_el_kostl = lo_nd_kostl->get_element( ).
      lo_el_kostl->set_attribute_property(
      attribute_name = 'LTEXT'
              property       = lo_el_kostl->e_property-enabled
              value          = ''
    but it disables the whole column!!!! I just need the cell to be disabled (I thought the code above, through the lead selection, would affect a certain cell only - but I was wrong).
    Any ideas?
    Thanks!!!

    Hi,
    using cell variants you can do this.,
    check this article: [Cell Variants in WDA|http://wiki.sdn.sap.com/wiki/display/WDABAP/WebDynproforABAPCellVariants]
    Instead of binding the read only property of table as a whole , just bind the read only property of column group of table., You can do this bu drill down the table and select the required column and bind the read only column.,
    then In onAction Event of button .,
    loop the table, if condition satisfied set the read only property to true else false.,!!
    hope this helps u.,
    Thanks & regards,
    Kiran

  • SP 2013 Development - How can I Simulate Different Devices to Help Design and Test a New UI?

    Hello Community!
    I am working with SharePoint 2013 and I need to be able to design and test a new design across multiple device browsers.  Does anyone know how to simulate a device browser for design and testing?  BTW, I know about Device Channels, and they give
    me a way to dynamically change my UI for different device browsers, but because this UI is complex, I cannot be sure what dynamic changes need to occur until I can simulate the device browsers and view my new UI in them.
    Thanks!
    Tom
    Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award -
    Linked-In - SharePoint Gypsy

    Hi Tom,
    Because your question is mainly how to simulate different devices, which is more related to SharePoint development, I am moving this thread to
    SharePoint 2013 - Development and Programming forum for better response.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • My old laptop died.  How do I get my library off my nano and onto the new computer?

    My old laptop died.  How do I get my library off my 5th generation nano and onto the new laptop?

    This user tip should be helpful too. It refers to the iPhone, but it's equally valid for iPods as well…
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • 7 dollar charge per month for 1 year and half

    I hate to rain on everyones parade, because I know everyone is excited about the new iPhone and the new Droid, however I must. I was wondering why I've been getting charged  7 dollars by best buy for a year and a half or maybe even more. Every month 10th of month for at least a year and a half this charge has been showing up on my checking account. The only reason I can think this is the case is that I bought a new phone from them like 2 years ago and maybe the tech accidently gave me some sort of data plan I never asked for. However, I have not been using that phone for about 3 months now. Is there any way I can get rid of this payment so I don't have to pay 7 dollars a month for the rest of my life on a service I won't use because I have a new phone. Any help is appreciated. Thanks
    Solved!
    Go to Solution.

    I don't so. I usually stay away from service plans and extended warranties, because once I bought a PS3 controller with the 2 year extended warranty and the joystick stopped working but they said that I must have caused this problem so they cannot replace it. I was like so what you're saying is that your extended warranty that is suppose replace broken equipment doesn't really cover anything and they said "it only covers normal wear and tear. Like if a button sticks of the joystick loses its cover".  I was like that's fine and I bought it on another controller (stupidly idk why) and the button stick and was ok I should be fine and they will replace it. They said no we cannot replace it because you tampered with it I was like "NO KIDDING IT'S MY CONTROLLER!!!" After that I've avoided service and protection plans and that was like 2 years ago. Could it really still be from something like that? I'm just worried it's a hidden charge I didn't see on the old phones contract or some sort of data fee or something I cannot find. But thank you I will take a look at some receipts and records and see if I can find another protection plan I bought. Thanks

Maybe you are looking for

  • Itunes 12.1.1.4 not run cd rom on windows xp sp3. have removed all cd burning software

    itunes 12.1.1.4 not run cd rom on windows xp sp3. have removed all cd burning software.

  • Problem in Button Click Event

    Hi All! In Good issue I have create One Button and in click event I call one function, but my problem when click this button it call my function 2 times. Please help me fix this problem, my code below: Private Sub SBO_Application_ItemEvent(ByVal Form

  • Business system deleted

    Hi, By mistake one my consultant has deleted the business system in SLD.Now i am trying to recreate it is not allowing me to create. Regards, Viren.

  • Overloading Issue

    If overloaded functions like below are defined      void move(double dx) { System.out.println("double"); }      void move(Object dx) { System.out.println("Object"); }      void move(String dx) { System.out.println("String"); }Invoking them as        

  • How do I get mouse zoom to work in Lion?

    After upgrading to Lion, the CTRL-Scroll doesn't work, even though it appears to be enabled in the "System Preferences". Here is what I have enabled, in the Mouse settings: And in the Universal Access settings: I've tried enabling, disabling, etc. No