Question Regarding Crosstab or Matrix Reporting

Hi,
I have a Requirement Where I have to Create a Cross-tab Report,
We use XMLPublisher which is Bundled with R12...
our ERP version is :12.1.3
Our XML Publisher is :5.6.3.x.x
The Requirement Output is
I have Generate a report which should be a Pivot Report for Every item Entered by the User (it may be one or Multiple Item)
if one Item is Entered
I have To list the report as below
ITEM ID:1234 ITEM DESC: SquarePaper Plate =>Item Detail to be printed on top of the table.. Followed by
DATE is the Column field for the Crosstab
ORDER STATUS  is the Row Field( Order Status will be of Five Types( BOOKED,ENTERED,AWAITING_SHIPPING,AWAITING_SHIPPING,SHIPPED,CLOSED) for the Crosstab
QTY is the Field Data Field  for the Row Field(Order Status)..for the Crosstab
If More than One Entered
Then I have to Repeat the Same Logic to Produce Pivot Table for that many Items entered by the User..
For Cross Tab I have Found this Link by Vetsrini
http://winrichman.blogspot.com/2008/08/pivot-table-cross-table-with-fixed.html
I followed his Template and I am Getting the Crosstab Output but I am getting for all the Items as One report,
I could not get a Logic to Group or ( Repeating Group) by Item and Item Description..
Please help as I am Stuck at this Logic for almost 3 weeks and I have posted so 4-5 questions on this regards unfortunately No replies..
Thanks

Hi, Nagornyi,
Thanks for the Reply,
<?if:count(ITEM)=1?>
CROSSTAB_1
<?end if?>
<?if:count(ITEM)>1?>
CROSSTAB_2
<?end if?>
When I use this Method, I am getting this Error..
ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
Template: C:\Documents and Settings\aranganathan\Desktop\Currently Working\RTF\tpc_item_count_sum_ver6_test.rtf
RTFProcessor setLocale: en-us
FOProcessor setData: C:\Documents and Settings\aranganathan\Desktop\cross_tab_test\tpc_item_count_sample2.xml
FOProcessor setLocale: en-us
Output type: MHTML
java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
     at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
     at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
     at RTF2PDF.runRTFto(RTF2PDF.java:629)
     at RTF2PDF.runXDO(RTF2PDF.java:470)
     at RTF2PDF.main(RTF2PDF.java:289)
Caused by: oracle.xdo.parser.v2.XPathException: Error in expression: './/=1'.
     at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
     at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:614)
     ... 15 more
Also
My Question was
For Every ITEM_ID entered by the User, I have to Create Crosstab result grouped by ITEM_ID's
Say
if the User Enters one ITEM_ID then
I should Create the Report as
ITEM ID : 1234 ITEM_DESC: SQUARE PAPER PLATE -- Heading
CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
Say if the ITEM is more than ONE
ITEM ID : 1234 ITEM_DESC: SQUARE PAPER PLATE -- Heading
CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
ITEM ID : 2341 ITEM_DESC: ROUND PAPER PLATE -- Heading
CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
ITEM ID : 3421 ITEM_DESC: RECTANGULAR PAPER PLATE -- Heading
CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
ITEM ID : 4123 ITEM_DESC: TRANGULAR PAPER PLATE -- Heading
CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
Thanks
once again

Similar Messages

  • HTML question regarding saving a Analytic Report

    Hi - my question is regarding a Saved Siebel CRM report from Design View. Is there a way when users click on a Saved report that the report will open in a new window instead of inside the ReportIframe?

    Try changing your Browser settings to open links in a new window.
    Mike L.

  • Matrix report performance

    Hi,
    I have a table with the following attributes : item, location, value. I want to create a matrix report with items on columns, locations as headers and in the middle the correspondent values: the report should look like this:
    item loc1 loc2 loc3
    1234 200 300
    2456 25 12
    456 12 15 16
    I know how to do the matrix report(I use a view based on the table) but my question is related to a performance problem. As the view contains a lot of data (more than 2mil. records), my question is how the matrix report is being build( I need to know if it does a self-join with the same view to build it, as this might take a long time to generate the report).
    In case I use a parameter for location(for example I want to generate a matrix report but only for loc1) it will take a long time as well?
    Thanks

    Try to avoid too much of regrouping in layout, have your xml structure in desired format. Also try enabling scalable mode

  • Regarding Matrix Report Issue in (RTF Template)

    Hi,
    We are developing the new report in XMLP (Matrix Report) and this is new stuff for us in XMLP. we dont have any material to explore about how to apply matrix report concepts in RTF Template.
    We have tried with some xml data with the RTF file but the data is not coming out well..since the mapping we did
    correct in the RTF File but the field VALUE not populating the data and also
    not able see the full table in the pdf output.
    Please help me out why this formatting issue happening with the matrix report format ?..
    Also please provide some notes to understand about how to apply Matrix concepts in the RTF to get perfect output.
    Thanks in Advance.
    Regards
    Prabu

    can you put your simple requirement here.
    like some sample xml, sample out required, and what you have tried.
    winrichman.blogspot.com
    check for crosstab there.you should find something.

  • Questions regarding new functionalities in EhP 4 - Reporting Financials 2

    Dear Forum,
    in a project we would like to use some new functionalities from Reporting Financials 2 - ie. Datasource 0FI_AA_20 for Depreciation and Amortization loading to BI for following years as this can not be done by old extractor.
    We are know looking for reliable information about impact and changes that are made in ERP if we switch on the functionality Reporting Financials 2 via SFW5? Will old extracors work nevertheless? Will all reports in ERP work without problems? Is there any impact on business processes? Or is this just additional functionality which will not affect current implementation?
    Can anybody give information about this?
    Thanks, regards
    Lars
    Edited by: Lars Hermanns on Jun 2, 2010 10:29 AM
    Edited by: Lars Hermanns on Jun 2, 2010 10:29 AM

    Marc,
    Some additional questions regarding locking.
    I encounter that the dataset that is locked depends on the restrictions made in the 'Characteristic Restrictions'-part of the query.
    Restrictions in the 'Default Values'-part are not taken into account. In that case all data records of the characteristic are locked.
    Q1: Is that correct?
    To give an example: Assume you restrict customer on hierarchy node in Default Values. If you want people to plan concurrently this is not possible since all customers are locked then. When customer restriction is moved to Char Restr the system only locks the specific cutomer hier node and people can plan concurrently.
    Q2: What about variables use in restricted keyfigures like variable for fy/period? Is only this fy/period locked then?
    Q3: We'd like to lock on a navigational attribute. The nav attr is put as a variable in the filter of the Characteristic Restrictions. Does the system then only lock this selection for the nav.attr? Or do I have to change my locking settings in RSPLSE?
    Then question regarding locking of data for functions:
    Assume you use the BEx Analyzer and use the query as data_provider_filter for your planning function. You use restricted keyfigures with char Version. First column contains amount for version 1 and second column contains amount for version 2.
    In the Char Restrictions you've restricted version to values '1' and '2'.
    When executing the inputready query version 1 and 2 are locked. (due to the selection in Char Restr)
    But when executing the planning function all versions are locked (*)
    Q4: True?
    Kind regards, Harjan

  • Hi Sir! I have some questions regarding word report generation please.1.How can i add border to a word page?.2.How can i add grid lines to a table generated in word report?.3.How can i add border to a table of word report?.Thanks Imran Pakistan

    Hi !
    Sir I have some questions regarding word report generation using(C language in labwindows) Please.
    1.How can i add border to a word page?.
    2.How can i add border and grid lines to a table generated in word report(Not the " cvi table control" inserted from gui,i am asking about the table generated in word report)?
    3.How can i fill a cell of word report table withe the data type other than "character"?.
    And sir one question about use of timer in cvi labwindows please.
    Sir i'm trying to set minimum delay interval of timer control to 1millisecond(0.001s),as i set ,timer don't cares of the interval that is set by me it responds only to the default minimum time interval which is i think 10milliseconds(i'am using windows xp service pack3 version 2002).
    Regards
    Imran
    Pakistan
    Solved!
    Go to Solution.

    Hello sir!
    Sir i'm using daq6251.But Sir before implimenting it to my final application now i'm just trying to achieve 1millisecond time interval for timer in a vary simple programe i mean at this time no hardware (daq device) is  involved i,m just trying to achieve minimum time interval of 1millisecond.
    Sir i read form "help" of labwindows how this time interval can be set,i'm trying for,as described in help notes but i could'nt.I'm attaching a screen shot sir for you it may helpful for you to explain me.
    And sir also waiting for your kind reply regarding word report generation.
    Thanks.
    Imran.
    Attachments:
    screen_shot_rigistry.docx ‏65 KB

  • Product Order for Matrix Reports [Certification Question]

    [ My Situation ]
    I'm having difficulty understanding the use of a property: a cell's Product Order property, used in Matrix reports by the main cells. Basically, I can't figure out what it does.
    [ What I Think a Matrix Report Is ]
    I understand the matrix report concept like so:
    A matrix report consists of 3 basic components: A category Row, a category Column, and Cells.
    The Row is the result of a query such as "SELECT DISTINCT dept_no FROM emp".
    The Column is like the Row such as "SELECT DISTINCT gender FROM emp".
    A Cell is a summary that coresponds to the queries that formed the Row and the Column, such as:
    SELECT AVG(salary)
    FROM emp
    GROUP BY dept_no, gender
    HAVING dept_no = 10 AND gender = "Female";
    The example above would produce a report where you could see whether males and females tended to have different salaries for various departments.
    [ I Know How the Data Model Works ]
    I understand the Data Model for a matrix report, where the summary fields go, etc.
    [ What I Think Product Order Does ]
    I don't understand what Product Order does for the Cells of a matrix report. It's a list of combinations of the groups in the matrix group from the Data Model. I think it translates to the order of the columns in a query's ORDER BY clause.
    If I reverse the order in which the groups appear in Product Order, I get different results. If my understanding of a matrix report and the Product Order property is correct, the order shouldn't matter.
    What am I misunderstanding?
    Thanks in advance for your help.

    from the online help:
    Description The Product Order property is the order in which
    groups are evaluated in the cross product for a summary.
    Product Order also defines the frequency of a summary, formula,
    or placeholder in a cross product group. That is, the summary,
    formula, or placeholder has one value for each combination of
    values of the groups in its Product Order. Product Order is
    used only for columns owned by cross-product groups. Because a
    cross product relates multiple groups, the groups in the cross
    product could be evaluated in any one of many different orders.
    Therefore, when creating a summary for a cross product, you must
    use Product Order to specify for Report Builder which group
    should be evaluated first, which second, and so on. You must
    also use Product Order to specify the frequency of a summary,
    formula, or placeholder within the cross product.
    Values A valid group combination.
    Applies to summary, formula, and placeholder columns
    Required/Optional required, if the column is a summary or
    formula column belonging to a cross product group.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • SSRS Matrix report. Variance expression by Month. Need to compare month from prior year to current month of current year VS2010

    Please help.  I have a matrix report.  In the report I have row group  PO Type.  One the Column groups I have a parent group by Fiscal Year, and then a child group by Month.  When I run the report, I get two years of data back broken
    out by month.  Please see below.
    Now here is where I am getting stuck.  I need to take the variance between the current month of the current year, from the same month of the prior year.  So I need to show the difference between Oct , 2014 from Oct, 2013. November, 2014 from November
    2013... etc. etc.
    In the example below, how do I create a column or row showing the variance for Contracts for October 2014.  I need to take the contracts for October 2014 which is 3 and subtract that from October 2013 which is 8.  Any suggestions? How do I do that
    for each month?  Then I need to do it for the quarter... then the year?  But I'll be happy if I can just get the month working first.
    Any help will be appreciated. 
    here is what my rdl file looks like.
    Here is what my report looks like when I render it.

    Hi Adrian_s2012,
    According to your description, you want to compare values for the month of current year with the month of prior year and get the variance. Right?
    In Reporting Services, we don't have any function to get this "Year to Year" Growth. In this scenario, if you data source is a cube, we suggest you use Analysis Services to achieve your requirement. If this data source is just from database, it will be hardly
    to calculate the variance because we need to compare the values within every two different column group and matrix generate adjacent columns one by one. Even we make it by using custom, every time executing the long code when generating result
    in a cell will reduce a lot of performance, we really don't suggest to do that in SSRS. Here is a thread with much easier requirement, please take a reference of that:
    http://social.msdn.microsoft.com/Forums/office/en-US/842e2dcb-d949-4297-9d91-eac989692cb5/difference-between-the-grouped-column?forum=sqlreportingservices
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Page level total in a mulipage matrix report

    hi!
    I am facing a problem in marix reports because a very late change in customer requirement.he wants a page total at the end of every page in the report ,because these reports are matrix style,they involve cross product.i can get the grand total at the end of the report because the summary column works well at report level,but when i try to reset it at page level,at times it shows blank or generates an error that matrix report fetches everthing at report level and cannot generate results at page level.but now how do i get these page totals without changing these matrix reports.Plz reply ASAP
    Regards
    simer
    The Oracle Reports Team
    http://otn.oracle.com/

    Hi I was browsing through the forum, and found no reply to your question, if you still interested about the solution I can send you my RDF file where I did the page level total in matrix report as well as brought
    forward in next page, this is something very hard for me to explain in word, so if you can give me your email address I can send you the RDF file.
    Thanks & Regards
    Eamon

  • How to calculate difference and percentage in matrix report dynamic columns in SSRS 2008

    Hi Friends,
    I need to calculate Difference and Percentage In matrix report SSRS 2008
    1) Row grouping based On Product
    2) Column Grouping Week and Fiscal Year Current week  and Previous Year same Weeks 
    3)Data Invnetory(Value fileld)
    Example:
    If value1 and Value2 Available we need to calculate Percentage and Difference.Otherwise Not required NA I need to Show.
    For example If Particular week,Current year data is available,Previous year  week data is not available No
    need to cal Diff and Percentage we need to show Empty.
    Below Code is working for If two values is available.
    If any one of the fiscal year week data is not there it's taking some garbage values.
    I tries with If condition in GetPCT() and GetDiff() It's not working.
    Can some one please help me on this.
    I am using the custom code 
    Public Shared Value1 as String
    Public Shared Value2 as String
    Public Shared previous as string
    Public Shared previousweek as string
    Public Shared Function GetValue(Value as String,partner as String,Week as String) as String
    If partner =previous and Week =previousweek Then
    Value2=Value
    Else
    previous=partner
    previousweek=Week
    Value1=Value
    End If
    return Value
    End Function
    Public Shared Function GetDiff()
    return Value2-Value1
    End Function
    Public Shared Function GetPct()
    return (Value2-Value1)/Value1
    End Function
    How to handle this.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, if one of the fiscal year week doesn’t have data, the custom code returns false results.
    For your requirement, if NULL value exists in the database, we should replace it as zero then perform calculate. So within the code, we should judge whether the value is NULL. To achieve your goal, please refer to the steps below:
    1. Create a table like below.
    create table dif4
    ([Product Group] varchar(50),
    [Week] varchar(50),
    [Fiscalyearweek] varchar(50),
    value int
    insert into dif4 values
    ('Desktops','W01','FY14W01',0),
    ('Desktops','W01','FY15W01',45),
    ('Desktops','W02','FY14W02',null),
    ('Desktops','W02','FY15W02',30),
    ('Desktops','W03','FY14W03',12),
    ('Desktops','W03','FY15W03',50),
    ('Notebooks','W01','FY14W01',35),
    ('Notebooks','W01','FY15W01',56),
    ('Notebooks','W02','FY14W02',45),
    ('Notebooks','W02','FY15W02',87),
    ('Notebooks','W03','FY14W03',75),
    ('Notebooks','W03','FY15W03',105),
    ('Tablets','W01','FY14W01',34),
    ('Tablets','W01','FY15W01',46),
    ('Tablets','W02','FY14W02',49),
    ('Tablets','W02','FY15W02',96),
    ('Tablets','W03','FY14W03',42),
    ('Tablets','W03','FY15W03',113)
    2. Add the custom code in the Report Properties.
    Public Shared Value1 as Integer
    Public Shared Value2 as Integer
    Public Shared previous as string
    Public Shared previousweek as string
    Public Shared Function GetValue(Value as Integer,product as String,Week as String) as Integer
    If Value=Nothing Then
    Value=0
    End If
    If product =previous and Week =previousweek Then
    Value2=Value
    Else
    previous=product
    previousweek=Week
    Value1=Value
    End If
    return Value
    End Function
    Public Shared Function GetPct()
    If Value1=0 Then
    return 0
    Else
    return (Value2-Value1)/Value1
    End If
    End Function
    Public Shared Function GetDiff()
    return Value2-Value1
    End Function
    3. Design the matrix like below.
    4. Then get the expected results.<o:p></o:p>
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • SSRS Matrix Report

    Please see below matrix report before and after I run. How can I find percentage of below marked fields,
    for example: 1/3=0.33 (%33)  Female(PAs)/Total(PAs)=?
    Erdal Huzmeli

    Hi Erdal,
    According to your description, you have a matrix report and you want to get percentage of two different column in this report. Right?
    In Reporting Service, we can’t just use ReportItem function or aggregation function with scope string to calculation when we are working in a matrix because the columns of matrix are dynamic. So we need to define some functions in custom code and do calculation
    by calling those functions. Your scenario has been tested in our local environment. Here are some steps and screenshots for your reference:
    Add the custom code below into your report:
    Dim Shared Num1 As Integer
    Dim shared Num2 As Integer
    Public Function GetPA(PA as Integer, Type as String) 
    If Type = "Male" Then
       Num1=PA
    ELSE If Type="Female" Then
       Num2=PA
    End If 
    Return PA 
    End Function
    Public Function GetMalePct()
    Return Num1/(Num1+Num2)
    End Function
    Public Function GetFemalePct()
    Return Num2/(Num1+Num2)
    End Function
    Ps: We notice that Total PA=Male PA +Female PA. So we use “Num1+Num2” in the functions that we define in the custom code instead of using “SUM(Fields!PA.Value)” in expression.
    Put the expression below into the PA textbox in Gender group:
    =Code.getPA(SUM(Fields!PA.Value),Fields!Gender.Value)
    Put the expression below Female textbox within Gender Percentage:
    =Code.getFemalePct()
    Put the expression below Male textbox within Gender Percentage:
    =Code.getMalePct()
    Save and preview, the matrix and result looks like below:
    Reference:
    Custom Code and Assembly References in Expressions in Report Designer (SSRS)
    How to calculate the Percent change in a dynamic
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • SSRS Matrix report to show or hide year column based on parameter value "Date" selected.

    Hey experts!
    I have a requirement an ssrs matrix report should display columns (year/s) based on parameter value (date/s). 
    My Dataset fileds are: Product, Year_name, Month_name, Date
    Currently my report output looks like this-
    Param Date: 2013-08-01 00:00:0.000
    Product +Calender2011      +Calender2012     -Calender 2013........                        +Calender2014
                             Total
                      Total Jan13  Feb 13  Mar13..  Dec13   Total           Total
    Abc                      100
                        220
    10      20         30.......  20       250              400
    Xyz 110
    200 50      80         40.......  30       450              600
    My requirement:  if I'm selecting Date parameter value as '2013-xx-xx' I should only able to see Year column 'Calender2013' and rest of the years should hide. Similarly If I'm selecting Date parameter value as '2014-xx-xx' I should only able to
    see Year column 'Calender2014' .
    Appreciate your kindly help. 
    Afan

    Hi Afan,
    According to your description, you want to only show the selected year on your report, right?
    In this case, you need to get the year from the date parameter using the expression below
    =Year(Parameters!Date.Value)
    And then use the expression below to get the year from Year_Name field.
    =Right(Fields!Year_Name.Value,4)
    Then add a filter to the dataset to filter the data like below
    Expression:=Year(Parameters!Date.Value)
    Operator:=
    Value:=Right(Fields!Year_Name.Value,4)
    Reference
    http://msdn.microsoft.com/en-IN/library/dd255287.aspx
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How can i create a Matrix View or Matrix Report in JDeveloper

    Dear All
    I'm tring to creat an updatable view display (items , customer , quantity)
    The customer must be Distinct
    , And the view column are not fixed (Like the Matrix Reports)
    Example
    customers___________item01___________item02___________item03----------item_N
    dan_________________5_______________10_____________15 -----------
    sara________________12_______________7______________3 -----------
    How can i display that in ADF table ?
    It's Possible to make that view updateable
    Thanks
    Ahmed Galal

    May I suggest that you ask this question in the customer forums in the Business Center at [http://sme.sap.com|http://sme.sap.com]
    Best regards, Christian

  • Matrix Report Issue

    Friends I am creating group matrix report for Balance Sheet. I am not able to calculate sum on group level 1. Suppose, I am highlighting the issue:
    Asset
    Current Asset
    2012
    2013
    Account1
    10
    20
    Account2
    20
    40
    30
    60
    Fix Asset
    2012
    2013
    Account1
    10
    20
    Account2
    20
    30
    30
    50
    Asset Total
    60
    110
    ' ===== Not able to calculate this field. Its giving me report level total
    Any help.
    Regards

    Hi,
    please read:Re: 2. How do I ask a question on the forums?
    and provide the following information:
    a) Sample data (CREATE TABLE and INSERT statement or alternatively WITH statement with data)
    b) database version
    c) description of the logic
    d) expected output
    You have just posted and output and we don't have idea of what is your input data. It's a bit difficult to answer in this way.
    Regards.
    Al

  • How to calculate percentage and difference of two values in matrix report in ssrs 2008

    Hi everyone,
    DB--SQL server
    SSRS-2008
    I am creating matrix report with grouping on WEEK and Fiscalyearweek,
    I need to calculate of difference between FY14W01,FY15W01 ande  percentage of those..
    how to calculate in ssrs level.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, you want to calculated the increment percentage and difference between two fiscal year week within each week. Right?
    In this scenario, since we need to do calculation based on values between dynamically generated cells, we can't simply use expression to achieve this goal. In this scenario, we need to use custom code to record the value for fiscal 14 and fiscal 15, then
    we can calculate the difference and percentage within the column group. We have tested your case in our local environment, please refer to the steps and screenshots below:
    1. Add the custom code below into the report (you may need to modify the data type based on your scenario:
    Public Shared Value1 as Integer
    Public Shared Value2 as Integer
    Public Shared previous as string
    Public Shared previousweek as string
      Public Shared Function GetValue(Value as Integer,product as String,Week as String) as Integer
    If product =previous and Week =previousweek  Then
         Value2=Value
    Else
    previous=product
    previousweek=Week
    Value1=Value
    End If
         return Value
      End Function
      Public Shared Function GetPct()
         return (Value2-Value1)/Value1
      End Function
    Public Shared Function GetDiff()
         return Value2-Value1
      End Function
    2. Design the matrix like below:
    3. The result look like below:
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

Maybe you are looking for

  • I cannot open Mozilla at all sometimes, why is that?

    Sometimes I cannot open Mozilla at all, nothing happens when I click on it. I have to re-start my computer, then minimize so I can have access to it. What is happening with that?

  • Creating PDF forms: possible in InDesign?

    Hi there I'd like to create PDF forms to be used for email questionnaires and surveys. The last time I looked into it I found that I needed to create the PDF first and then use another application (I can't remember the name) to add the fields for the

  • Three external displays with 13" Retina Display

    Hello, I have a 13" Macbook Pro Retina Display...I have two 22" displays that I connect up using a thunderbold/minidisplay port to VGA and I have a third 22" display which I want to connect up using the remaining HDMI port. I am only able to connect

  • Crystal Reports setup problem (?)

    Hello, I have recently taken over the role of creating/updating our Crystal Reports and have of course installed the software on my PC just as is explained in the installation guide and have set up the ODBC datalink. I decided to leave it installed o

  • Assign Search help in report program

    Dear All, I facing problem to assign search help in report program. I crated one elementary search help in which three fields i include -carrid -carrier name -booking   all three fields having import and export parameter in search help. while executi