Bi 7.0 SD report for previous year, month, current month, rolling 30days.

I have Sales document type in rows and in column, I have no of sales documents.
Now, I need sales documents in rows and no of sales documents in columns according to
created on date: 0calday of types as follows
List of columns:
Previous year    last quarter   Current quarter     Current month    30 days rolling.
How do I define these RKFs.. do we have standard date variables for RKF.
Thanks
Jeff

Hi ,
You dont have a standard date variable
I have the solution for ur problem
here u can go for creation of variable for column KF and assign the value for each sales document type = 1 by using a customer exit
Pls assign some points if answer is helpfull
Regards ,
Subash Balakrishnan

Similar Messages

  • How we create Variable for Previous year for COPA reports

    Hi Guruss,
    I am making a COPA report for Current year comparison with previous year from KE31. For 1st column I have created the Variable for current year (which works perfectly) now in 2nd column i need the actual data pertaining to previous. So can any one please guide me how to create the variable for previous year.
    Thanks

    Thanks Jagannadha,
    I have create the variable for current year on KE3E. but i am confuse how i create the variable for previous year on KE3E.
    Waiting for reply.

  • How to create offset for calendar year/month in BEx Reporting

    HI ALL,
        i have a requirement of creating offset for calendar year/month.Basically i have a characteristic in Rows and volume key figure in Column and i have to put that volume under the calender year /month which is shown below ..
                             Previous Volume           Present Volume
                                     01.2010                             01.2011
    material                    10000                               20000
    how can i create a report for this . by using volume key figure i am creating previous volume and present volume,. how can i put them in key figure do i have to create any structure, selections  for that.... and "" how can i get the present year volume and previous year volume. If i use cal year/month how can i create offset for that.....
    please do let me know in brief...
    Thank you.

    Hi ,
    I think you need data year wise .
    Instead of creating a variable for calmonth and using it in the RKF , you can just drag calyear in columns and keep the Volume keyfigure below it . Keep only one keyfigure Volume and do not restrict it with calmonth or any other variable .
    In this case calyear should not be present in rows or free characteristics .
    You would be able to see the data year wise ..
    Try this and check whether it is according to your requirement
    If You need to show the data as Volume (01.2011)  and Volume(01.2010)
    It means you are only showing data for Jan 2011 and Jan 2010 in the report
    In this case you can retrict Volume keyfigure with a variable and create a customer exit variable
    for 0calmonth as an offset of -1 will bring the data of 12.2010 for Previous Volume(01.2010) key figure which is incorrect .
    For your output you can create 2 customer exit variables :
    One will restrict 0calmonth to current year and another to previous year .
    Check whether this works .
    Also , if you want to show current calendar months data , you can either use a mandatory variable on 0calmonth
    and restrict the same in volume keyfigure or there are std customer exit variable provided by SAP to give current cal month .
    You can restrict the char 0calmonth with this std exit variable if you do not want 0calmonth variable to be mandatory.

  • Customizing setting 'Recalculate depreciation for previous years'

    Dear Experts,
    I have requirement where for tax depreciation areas we want the system to recalculate the depreciation for previous years. For e.g.
    Asset acquired on 7/1/06 with value 10000
    Useful life: 5 years
    Take over date in asset accounting: 9/30/2008
    With the above example, I want the system to show me depreciaiton values for the years 2006 and 2007 also in transaction AW01N (Asset Explorer), apart from 2008.
    In FI-AA customizing, I have enabled the relevant depreciation areas for recalculation in the node 'Recalculate Depreciation for Previous Years' (Transaction OAYF).
    However, when I create the legacy asset and maintain the takeover values, the system just shows me depreciation for 2008 and onwards.
    Is there something I am missing? Please advice. I have searched the SAP help and SAP notes, but did not find anything.
    Regards,
    Vishal.

    This is not possible.  When you takeover an asset using AS91, it is creating an ANLC entry for that year only.  2008 in your case.  Regardless of when the asset was originally acquired, SAP will only let you report on it back to 2008.
    This concept is no different than any other FI/CO legacy conversion.  If the customer is going live on Jan 1st 2008 but they want to do monthly comparison reporting in SAP (Jan 07 and Jan 08), then they need to convert 2007 data.  If they want 2006, they need to load that too.  Etc.
    For FI-AA, if the customer wants to view data back to 2006 you would have to change the takeover date to that year and adjust the data as well (accumulated depreciation).
    -nathan

  • Reporting with Time Variance (previous year vs current year)

    Good day all.
    I would like to ask for advice and help in terms of best way to make this report work:
    Let's say I need to show the % variance between the Total Operating Costs per Gross sqft over different times periods (Previous year to Current Year). The trick is that data must be compared to the same data in the previous year, i.e. if we are in June of current fiscal year, the comparison must be between Oct-June of current fiscal year to Oct-June of previous fiscal year, not the full previous year. The report formula itself would be:
    ([TCO Exp/GSF PY] - [TCO Exp/GSF CY]) / [TCO Exp/GSF PY] * 100
    My guess, I could define a static variable Current Year which developers would have to be changed every year. And then create logical columns: TCO Exp PY (where year=Current Year-1)...while writing this, I realized I'm wrong and there must be a more efficient way to do this. UPD: I've also thought about time-series function AGO, but I'm currently testing it, and I'm not happy with its performance...
    Thank you in advance...
    Message was edited by:
    wildmight

    Hi Wildmight,
    The current value will be the value you will select from the table like you normally would do. These would be values per month if I am correct. Next to the column with the current value, you create an additional column with the AGO function in it.
    Now you will have the current value and next to it the value of the required period ago. You won't need any static variables.
    Let me give you an example for the last three months.
    Period CY PY
    jan-08 50 30
    dec-07 40 20
    nov-07 45 25
    In this case the value 20 corresponds to the period dec-06.
    I hope I made myself clear.
    Good Luck,
    Daan Bakboord

  • Dump while running a stock report for one year

    hi experts,
                        i'm getting  dump error while running a stock summary report for one year
            the error is as follows:
      A RAISE statement in the program "CL_GUI_CUSTOM_CONTAINER=======CP" raised the
       exception
      condition "CNTL_ERROR".
    regards,
    andrews.

    Hi Andrew,
    Did you try running the report for a smaller period of maybe a month. Check for any authorisation related issues.
    The dump has a lot of detailed and valuable information about the error. If feasible, post the dump data for further analysis.
    Regards,
    Pranav.
    Edited by: Pranav Mandelia on Sep 6, 2011 2:07 PM

  • 50% credit on capital goods for previous year is not availed

    Dear All,
    The go-live date for my client was 01.10.2009. Now, in Apr, 2010 when the client is trying to get the 50% credit on Capital Goods (t. Code j2i8),  system is not generating any data of the previous year. (From Oct, 09 to Mar'10).  However, if we see the GL Balace for 'Cenvat On Hold A/c' as on 31.03.2010, it shows a  balance of Rs. 2.50 lakhs approximately.
    Can you please tell me why system is not showing any details through j2i8 for previous year?
    Thanks & Regards,
    Reshma

    Hello,
    The settings before 01.04.2010 were same.  However, after thorough checking of the GL A/cs, I have following observations -
    1) Plant 1 - Balance as on 31.03.2010 in Cenvat on Hold A/c -Rs. 195080. It is upload balance & t.code used is FBVB
        There are some more transctions in this A/c which are  reversed due to wrong entries.
        Balance in Excise Duty RG 23 C as on 31.03.2010 - NIL
    2) Plant 2 - Balance in Cenvat on Hold A/c as on 31.03.2010 is  Rs. 166701. Again this is an upload balance with FBVB
        Balance in Excise Duty RG 23 C as on 31.03.2010 - Rs. 56931.62
    3) Plant 3 -  No upload balance.  All the transactions are routed through J1IEX except 1 from FB01
        Balance as on 31.03.2010 - Cenvat On Hold A/c - Rs. 86876.06
                                                     ED RG 23C  - NIL
    Hence, would like to know -
    1) Any separate procedure to take the credit of upload entries?
    2) If the Balance in ED RG 23C A/c is NIL, will it affect on taking credit?
    Thanks & Regards,
    Reshma

  • ORD to AUC settlement for previous year

    Hi All,
    We have a scenario wherein some expense exists on the Internal order for 2014. The Asset fiscal year has been changed to 2015.
    While trying to settle the ORD to AUC for current year, we get a message to do the settlement for previous year.
    I checked the SAP notes, it recommended:
    1. To do a PRE settlment to Cost Center/receiver in 2014,
    2. Manual reposting of cost from the receiver to ORD in 2015, and
    3. AUC settlement in 2015.
    Please suggest if there is any other way to do it with/without opening the previous fiscal year.

    Hi Pankaj,
    Check the settle parameters of the order, have you defined settlement type as "periodic settlement" for the asset. If yes, add another line for full settlement for it. Then do settlement for 2015 with processing type as "Automatic", then system will post to 2015 for the asset.
    Regards,
    Mukthar

  • S_P00_07000134 Withholding Generic Report for Fiscal year 2009

    Hi All,
    I was executing S_P00_07000134 Withholding Generic Report for Fiscal year 2009 but when the output came in the output I can see the year 2008 instead of 2009. So hown can I bring 2009 in my report.
    IS there any SAP not whic needsto be applied.
    REgards,
    Kiran C

    Dear,
    What is the reporting period that you have given in this report, try to give 01.01.2009-31.12.2009 if it is a calendar year or as per your fiscal year give the period.

  • Close budget for previous years

    Hi,
    The system Iu2019m working on has commitments management active, so when I create a purchase requisition or purchase order, the budget is affected. Iu2019ve noticed that the field that determines the year relevant for budget availability is the delivery date (EEIND).
    So if I make a purchase requisition today, with a delivery date of 2007, for instance, it will affect the budget from 2007 year. I donu2019t want this to happen. Is there any way to u201Ccloseu201D the year budget and donu2019t allow any more values to affect the budget for previous years?
    Thanks for any help.

    Hello,
    Please check the budget profile.
    In budget profile, you will have how many previous years or future years you can budgeted. Try to reduce one year for previous years.
    Regards,
    Ravi

  • Variables for calendar year/month

    Hi All,
    My requirement is to create a headcount report which has to display the number of employees for different time period. ´
    1) When user chooses calender day then the report should display total number of employees on that time period(01.01.2005)-(10.01.2009).
    2) If user chooses calyear /month then he should see the report for each calyear/month (like 01.2005 , 02.2005,02,2005....)in the columns.
    I tried dropping calyear/month in column and i got the result for my second scenario (like 01.2005 , 02.2005,02,2005....)
    But when the user chooses the calday it still shows the report by calmonth (bcoz of calyear/month in the column).
    I also tried text variable for calyear/moth(replacement path method) but i have the restriction in the interval (from date or to date - i have to choose one by default) so it shows only either date in the columns .
    The  two variables. 1) Calender Day (Interval,Optional)) 2) Calender Year /Month (Interval,Optional)
    I got four restricted key figure to restrict number of employees by business.
    Eg :
    When Cal Day is choosed then the report will be :(01.01.2005 -10.01.2009)
                   (01.01.2005 - 10.01.2009)
    Country  Sales Finance
    India        20      30        
    Denmark  30      50        
    When Calyear / Month is choosed then the report will be : (01.2005 - 02-2005) :
                        01.2005                    02.2005                                
    Country     Sales Finance      Sales Finance    
    India           24     70                70         45       
    Denmark    36      60               56        30         
    Regards
    A.Vasister
    Edited by: vasister a on Oct 9, 2009 11:10 AM

    Hello,
    This cannot be achived dynamically.
    I think the two ways you can work out is creating two different reports one to include daywise and the other to include montwise structure.
    Otherwise you can keep calday in free char and ask user to swap calmonth with calday as per requirement.
    Else you have to create a workbook report and make use of VB macros to calculate report dynamically which is a very complex approach.
    Regards,
    Shashank

  • Release Date for Albums Year, MONTH DAY

    Why can't I enter the release date for albums (Year month and day)?   Itunes has a field for year but that's it.    I would have loved to be at the meeting where it was discussed.
    "Year, month and day? why the heck would any want that?"
    "Well a lot of us want to see our albums in chronological order and you can't do that with just the year, many albums come out every year"
    "Blah Blah Blah, music is just to dance to, no one cares about dates, besides it would four extra digit fields in each entry"
    But seriously, I would think that Itunes would aspire to be THE program for music lovers.
    Instead of being able to just enter the release dates I have had to come up with my own work around.  I put a the release date in the format yyyymmdd in fromt of each title and then sort by titles.
    Now all of my Beatle albums finally show up in chronological order by release date.   But why should I have to massage the data like this.   I can't imagine what goes on at Itunes planning  sessions.  I'm very unhappy about the loss of cover flow but that's another story.

    I'm glad to hear that I am not the only one who sees this as a problem.  And another Beatles fan too.
    This is so fundamental.  Every album has a release date and it's part of the data that is always associated with  that album.   Why did Apple look at the data available for an album and consciously decide to truncate it?
    What kind of music lover isn't aware of when albums are released?  I just don't get it.
    I like having the date yyyymmdd in front of each album.   It isn't pretty but it means the albums are chronological.   If you want, you could just put this in the sort field and leave the regular album title in the regular field.   Then the names would be right and they would sort correctly.   But again.  Why should we have to do all that? 
    Apple is busy constantly changing where the controls are on I tunes  rather than fixing something simple and important like this.
    Today I wanted to load some songs onto my ipod touch and it took me 10 minutes to figure out how to sync because the last itunes update got rid of the side bar.  
    How are you supposed to get comfortable using a product when they keep moving the controls around?   Just quit apple.   leave the controls where they are.  Add new controls if needed but stop moving them.  I know I'm ranting now but I am honestly angry and frustrated,

  • Balance for previous years

    I have the following requirement:
    A user enters a Fiscal Period.  On our report we want to define key figures which show values as follows:
    Our Financial year is from 1st January u2013 31st December with 16 posting periods (K4 variant)
    Fiscal Period: 042007 u2013 entered by user
    1.     Balance for beginning of reporting year and end of previous year
    2.     Balance for beginning of previous year and end of year before previous
    Therefore for the example:
    1.     Balance 01.01.2007 and Balance 31.12.2006
    2.     Balance 01.01.2006 and Balance 31.12.2005
    How can I do this can I offset if so how and if not do I need to write an exit if so how? Thanks

    Hi Varun,
    Which period you want to run the report? Please let us know and also share screen shot.
    Regards
    Mukthar

  • Expression to find value for previous year SSRS

    Hi
    I need some help with expressions.I need a report that shows calcul of a field for current year as well as previous year respecting this rule expression(Last-Last Previous)/Last Previous*100 (I work with MDX Query and i work with SSRS 2008).
    Also the report runs on a Year Parameter. Below is an example for the result
    for example i selected the years 2010 2011 2012 i can select another years because i have the report runs on  a Year Parameter
    year
    Data 2010 2011 2012
    hp 14 25 30
    Dell 17 18 20
    and the result i want
    year
    Data 2010 2011 2012 2011/2012
    hp 14 25 30 0.002 (Last -Last Previous)/(last Previous*100) =(30-25)/(25*100)
    Dell 17 18 20 0.0040
    Thanks a lot

    Hi Yassir,
    Please find the RDL code, save the code into .RDL and run it
    <?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>
    <Tablix Name="matrix1">
    <TablixCorner>
    <TablixCornerRows>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</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>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!value.Value)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</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>
    <DataElementOutput>Output</DataElementOutput>
    </TablixCell>
    <TablixCell>
    <CellContents>
    <Textbox Name="Textbox16">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=((last(Fields!value.Value) -Code.GetValueByKeyValue(Fields!keyvalue.Value)) /Code.GetValueByKeyValue(Fields!keyvalue.Value))*100</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <Format>f2</Format>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox16</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>
    <DataElementOutput>Output</DataElementOutput>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_year">
    <GroupExpressions>
    <GroupExpression>=Fields!year.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!year.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.21in</Size>
    <CellContents>
    <Textbox Name="year">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!year.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>year</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    <TablixMember>
    <TablixHeader>
    <Size>0.21in</Size>
    <CellContents>
    <Textbox Name="Textbox4">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox4</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_data">
    <GroupExpressions>
    <GroupExpression>=Fields!data.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!data.Value</Value>
    <Direction>Descending</Direction>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="data">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!data.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>data</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <TablixMembers>
    <TablixMember />
    </TablixMembers>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <RepeatColumnHeaders>true</RepeatColumnHeaders>
    <RepeatRowHeaders>true</RepeatRowHeaders>
    <DataSetName>DataSet1</DataSetName>
    <Top>1.20333in</Top>
    <Left>0.10833in</Left>
    <Height>0.42in</Height>
    <Width>3in</Width>
    <Style />
    </Tablix>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Get the last previous value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>12pt</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>
    <ZIndex>1</ZIndex>
    <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="Textbox7">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>data</Value>
    <Style>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox7</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</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>1in</Width>
    </TablixColumn>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.25in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="previous">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!previous.Value)</Value>
    <Style>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>previous</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</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="Textbox21">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Code.AddKeyValue(Fields!keyvalue.Value, last(Fields!previous.Value))</Value>
    <Style>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox21</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</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="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="year1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!year.Value</Value>
    <Style>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>year1</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</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>
    <TablixMember>
    <TablixHeader>
    <Size>0.25in</Size>
    <CellContents>
    <Textbox Name="Textbox20">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>Textbox20</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="data">
    <GroupExpressions>
    <GroupExpression>=Fields!data.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!data.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="data1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!data.Value</Value>
    <Style>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>data1</rd:DefaultName>
    <Style>
    <Border>
    <Color>White</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>DataSet2</DataSetName>
    <Top>0.43944in</Top>
    <Left>0.29667in</Left>
    <Height>0.5in</Height>
    <Width>3in</Width>
    <ZIndex>2</ZIndex>
    <Style>
    <Border>
    <Color>White</Color>
    <Style>None</Style>
    </Border>
    </Style>
    </Tablix>
    </ReportItems>
    <Height>1.76333in</Height>
    <Style />
    </Body>
    <Width>5.10833in</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>87cd8154-60ce-43ca-a678-39a5c1bfeb15</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet2">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@Year">
    <Value>=Parameters!Year.Value</Value>
    </QueryParameter>
    </QueryParameters>
    <CommandText>select * from
    SELECT data, year , value AS previous,cast(year as varchar)+ data as keyvalue,row_number() over(partition by data order by year desc) yeardesc
    FROM (SELECT 'HP' DATA, 2010 year, 14 value
    UNION
    SELECT 'HP' DATA, 2011 year, 25 value
    UNION
    SELECT 'HP' DATA, 2012 year, 30 value
    UNION
    SELECT 'Dell' DATA, 2010 year, 17 value
    UNION
    SELECT 'Dell' DATA, 2011 year, 18 value
    UNION
    SELECT 'Dell' DATA, 2012 year, 20 value
    ) AS t
    WHERE year IN (@Year)
    )t1
    where yeardesc &lt;&gt; 1
    order by year asc</CommandText>
    </Query>
    <Fields>
    <Field Name="data">
    <DataField>data</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="year">
    <DataField>year</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="previous">
    <DataField>previous</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="keyvalue">
    <DataField>keyvalue</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="yeardesc">
    <DataField>yeardesc</DataField>
    <rd:TypeName>System.Int64</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <QueryParameters>
    <QueryParameter Name="@Year">
    <Value>=Parameters!Year.Value</Value>
    </QueryParameter>
    </QueryParameters>
    <CommandText>SELECT data, year, value,cast(year as varchar)+data keyvalue
    FROM (SELECT 'HP' DATA, 2010 year, 14 value
    UNION
    SELECT 'HP' DATA, 2011 year, 25 value
    UNION
    SELECT 'HP' DATA, 2012 year, 30 value
    UNION
    SELECT 'Dell' DATA, 2010 year, 17 value
    UNION
    SELECT 'Dell' DATA, 2011 year, 18 value
    UNION
    SELECT 'Dell' DATA, 2012 year, 20 value) AS t
    WHERE year IN (@Year)</CommandText>
    </Query>
    <Fields>
    <Field Name="data">
    <DataField>data</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="year">
    <DataField>year</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="value">
    <DataField>value</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="keyvalue">
    <DataField>keyvalue</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportParameters>
    <ReportParameter Name="Year">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>=2010</Value>
    <Value>=2011</Value>
    <Value>=2012</Value>
    </Values>
    </DefaultValue>
    <Prompt>Year</Prompt>
    <ValidValues>
    <ParameterValues>
    <ParameterValue>
    <Value>2010</Value>
    <Label>2010</Label>
    </ParameterValue>
    <ParameterValue>
    <Value>2011</Value>
    <Label>2011</Label>
    </ParameterValue>
    <ParameterValue>
    <Value>2012</Value>
    <Label>2012</Label>
    </ParameterValue>
    </ParameterValues>
    </ValidValues>
    <MultiValue>true</MultiValue>
    </ReportParameter>
    </ReportParameters>
    <Code>Public PersSal as New System.Collections.HashTable()
    Function ClearList(SomeValue as String) as String
    PersSal.Clear
    Return SomeValue
    End Function
    Function AddKeyValue(KeyValue as String, Value as Decimal) as Decimal
    Try
    PersSal.Add(KeyValue, Value)
    Return Value
    Catch ex as Exception
    End Try
    End Function
    Function GetValueByKeyValue (ByVal Key As String) As Decimal
    For Each clsPair As System.Collections.DictionaryEntry In PersSal
    If clsPair.Key.ToString() = Key Then Return clsPair.Value
    Next
    End Function</Code>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>53660ed8-b969-46cf-960b-2ccb14abf7e7</rd:ReportID>
    </Report>
    Thanks
    Prasad
    Mark this as Answer if it helps you to proceed on further.

  • MDX to fetch record from 1st of current month to 5th of next month and same for previous year

    In my date dimension I have a attribute CalendarDate. I do have a hierarchy [Date].[Year].[Quarter].[Month].[CalendarDate] as well. I need to fetch data starting from 1st working day of current month to 5th working day of next month by MDX. I do have a attribute
    to filter working day as IsWorkingDay. How can we get a dynamic MDX that will find the current month first and than it will filter the record from 1st working day of current month to 5th working day of next month. And same for the previous year same month
    to compare.
    Thanks in advance!
    Palash

    Hi P,
    You can use a calculated member to dynamically add all the days in the current month and the first 5 in the following month.  You will need to change measure, cube and hierarchy names.
    with member measures.ThisMonthAnd5 as 
    sum([Date].[Year].parent.children,Measures.[Sales])
    +sum(Head([Date].[Year].parent.nextmember.children,5),Measures.[Sales])
    select 
    {Measures.[Sales]
    ,Measures.ThisMonthAnd5
    } on 0,
    non empty [Date].[Year].[CalendarDate]  
    on 1
    from MyCube
    Richard

Maybe you are looking for

  • Actionable Task form with data as an email in Human task implementation.

    Hi All, In one scenario in my project, I need to design an actionable task form with data as an email, and this email can be sent to specific users to actions ( like updating, approval, rejection etc). The users should be able to edit the data in ema

  • Reporting in SCCM 2012

    HI all, I have been trying to set up reporting for about 3 weeks now and are just about to give up, I'll give a quick run through of everything I have done. 1. I went through all the steps for both configuring the Reporting Config Manager and then ad

  • Elements 11 and camera raw update would not update - error messages

    Tried to update and recieved these two error messages: Photoshop Camera Raw 7.4 Update There was an error installing this update. Please quit and try again later. Error Code: U44M1I216 Photoshop Camera Raw 7.4 There was an error installing this updat

  • Why is TB re-syncing/re-load with GMail all messages each time I open TB? Slows down TB by much each time.

    Why is TB re-syncing/re-load with GMail all messages each time I open TB? It does slow down quite heavily. e.g. It takes almost 5 mins to just write a simple short email, since ''freezing'' at every 3-4 caracters. All other programs on the computer w

  • Lustre 2.0 and iSCSI - Active Active Cluster

    Hi All, I am sitting with a project that has me lookig at all kinds of solutions. Here is the Project Scope: 2 to 4 servers running Linux ( Still to be decided what Version of Linux ) the above said servers must see the same iSCSI Target and space. i