Matrix Report Row Group Totals

dear experts,
I want to create a matrix report for purchase bills in which each bill may have mutiple items with diffrent rate and vat
i could create the matrix report but the grand total in each purchase master table having column billtotal, vattotal
the report shows one purchase row and vat column are displayed as multiple colums correctly
but grand total of billtotal, vattotal gets added as many times as the items are there in that each bill
any suggestion.
the data from various tables is attached as an xml and crude method i adopted to overcome the set repetation of masters
<PurchaseRrgister>
<y>
<doc_gl>500</doc_gl>
<doc_no>3</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>1835</supplier_billno>
<supplier_billdt>2012-03-31</supplier_billdt>
<amt>28641.6000</amt>
<z>
<suppliername>G.R.CORPORATION</suppliername>
<amount>28080.0000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>345.60</lstamt>
<w>
<vatname>C.S.T. 2%</vatname>
<syssrl>2</syssrl>
<f>
<glname>CLOTH</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>500</doc_gl>
<doc_no>5</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>71</supplier_billno>
<supplier_billdt>2012-04-17</supplier_billdt>
<amt>30365.2700</amt>
<z>
<suppliername>GIRIRAJ TRADING COMPANY</suppliername>
<amount>28919.3000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>136.00</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>2</syssrl>
<f>
<glname>RAW MATERIAL</glname>
</f>
</w>
</z>
<z>
<suppliername>GIRIRAJ TRADING COMPANY</suppliername>
<amount>28919.3000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>750.00</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>3</syssrl>
<f>
<glname>RAW MATERIAL</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>500</doc_gl>
<doc_no>8</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>2764</supplier_billno>
<supplier_billdt>2012-04-13</supplier_billdt>
<amt>14771.4000</amt>
<z>
<suppliername>FAVOURITE BOOK CLOTH &amp; PAPER MART</suppliername>
<amount>13968.0000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>98.50</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>2</syssrl>
<f>
<glname>CLOTH</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>500</doc_gl>
<doc_no>11</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>176</supplier_billno>
<supplier_billdt>2012-03-22</supplier_billdt>
<amt>61248.0000</amt>
<z>
<suppliername>VIGNESHWAR HOISERY MFG.</suppliername>
<amount>61248.0000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>0.00</lstamt>
<w>
<vatname>TAX FREE PURCHASE</vatname>
<syssrl>2</syssrl>
<f>
<glname>CLOTH</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>500</doc_gl>
<doc_no>13</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>178</supplier_billno>
<supplier_billdt>2012-03-24</supplier_billdt>
<amt>56448.0000</amt>
<z>
<suppliername>VIGNESHWAR HOISERY MFG.</suppliername>
<amount>56448.0000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>0.00</lstamt>
<w>
<vatname>TAX FREE PURCHASE</vatname>
<syssrl>2</syssrl>
<f>
<glname>CLOTH</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>500</doc_gl>
<doc_no>15</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>170</supplier_billno>
<supplier_billdt>2012-03-16</supplier_billdt>
<amt>58779.0000</amt>
<z>
<suppliername>VIGNESHWAR HOISERY MFG.</suppliername>
<amount>58779.0000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>0.00</lstamt>
<w>
<vatname>TAX FREE PURCHASE</vatname>
<syssrl>2</syssrl>
<f>
<glname>CLOTH</glname>
</f>
</w>
<w>
<vatname>TAX FREE PURCHASE</vatname>
<syssrl>3</syssrl>
<f>
<glname>CLOTH</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>500</doc_gl>
<doc_no>21</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>13</supplier_billno>
<supplier_billdt>2012-04-05</supplier_billdt>
<amt>35280.0000</amt>
<z>
<suppliername>ROYALTY MINERALS</suppliername>
<amount>33600.0000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>520.00</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>2</syssrl>
<f>
<glname>RAW MATERIAL</glname>
</f>
</w>
</z>
<z>
<suppliername>ROYALTY MINERALS</suppliername>
<amount>33600.0000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>375.00</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>3</syssrl>
<f>
<glname>RAW MATERIAL</glname>
</f>
</w>
</z>
<z>
<suppliername>ROYALTY MINERALS</suppliername>
<amount>33600.0000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>275.00</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>4</syssrl>
<f>
<glname>RAW MATERIAL</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>500</doc_gl>
<doc_no>22</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>14</supplier_billno>
<supplier_billdt>2012-04-03</supplier_billdt>
<amt>34102.5300</amt>
<z>
<suppliername>GIRIRAJ TRADING COMPANY</suppliername>
<amount>32478.6000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>1119.93</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>2</syssrl>
<f>
<glname>RAW MATERIAL</glname>
</f>
</w>
</z>
<z>
<suppliername>GIRIRAJ TRADING COMPANY</suppliername>
<amount>32478.6000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>204.00</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>3</syssrl>
<f>
<glname>RAW MATERIAL</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>500</doc_gl>
<doc_no>29</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>2695</supplier_billno>
<supplier_billdt>2012-03-30</supplier_billdt>
<amt>52349.2200</amt>
<z>
<suppliername>VISHVARAJ ENTERPRISES</suppliername>
<amount>45200.8000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>1682.10</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>2</syssrl>
<f>
<glname>RAW MATERIAL</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>500</doc_gl>
<doc_no>30</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>2694</supplier_billno>
<supplier_billdt>2012-03-30</supplier_billdt>
<amt>57675.4500</amt>
<z>
<suppliername>VISHVARAJ ENTERPRISES</suppliername>
<amount>49799.6000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>1544.20</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>2</syssrl>
<f>
<glname>RAW MATERIAL</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>500</doc_gl>
<doc_no>43</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>2696</supplier_billno>
<supplier_billdt>2012-03-30</supplier_billdt>
<amt>46738.6500</amt>
<z>
<suppliername>VISHVARAJ ENTERPRISES</suppliername>
<amount>40300.3000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>1009.26</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>2</syssrl>
<f>
<glname>RAW MATERIAL</glname>
</f>
</w>
</z>
<z>
<suppliername>VISHVARAJ ENTERPRISES</suppliername>
<amount>40300.3000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>168.54</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>3</syssrl>
<f>
<glname>RAW MATERIAL</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>500</doc_gl>
<doc_no>58</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>44</supplier_billno>
<supplier_billdt>2012-04-11</supplier_billdt>
<amt>1820.2400</amt>
<z>
<suppliername>SAI ENTERPRISES</suppliername>
<amount>1440.0000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>73.74</lstamt>
<w>
<vatname>MVAT 12.5%</vatname>
<syssrl>2</syssrl>
<f>
<glname>REPAIRS &amp; MAINT - MACHINERY</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>501</doc_gl>
<doc_no>70</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>19601</supplier_billno>
<supplier_billdt>2012-04-23</supplier_billdt>
<amt>18678.9400</amt>
<z>
<suppliername>KISMAT MACHINARY SALES</suppliername>
<amount>16603.5000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>1214.81</lstamt>
<w>
<vatname>MVAT 12.5%</vatname>
<syssrl>2</syssrl>
<f>
<glname>REPAIRS &amp; MAINT - MACHINERY</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>501</doc_gl>
<doc_no>71</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>92</supplier_billno>
<supplier_billdt>2012-04-22</supplier_billdt>
<amt>5400.0000</amt>
<z>
<suppliername>AMIT TOOLS CO.</suppliername>
<amount>4800.0000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>237.50</lstamt>
<w>
<vatname>MVAT 12.5%</vatname>
<syssrl>2</syssrl>
<f>
<glname>LABORATORY EXPENSES</glname>
</f>
</w>
</z>
</y>
<y>
<doc_gl>501</doc_gl>
<doc_no>75</doc_no>
<doc_dt>2012-04-29</doc_dt>
<supplier_billno>19832</supplier_billno>
<supplier_billdt>2012-04-27</supplier_billdt>
<amt>898.8000</amt>
<z>
<suppliername>STEEL TRADERS|</suppliername>
<amount>856.0000</amount>
<bed_amt>0.0000</bed_amt>
<ecess_amt>0.00</ecess_amt>
<vattotal>0.0000</vattotal>
<misc_charg>0.0000</misc_charg>
<prevatcharges>0.0000</prevatcharges>
<postvatcharges>0.00</postvatcharges>
<packingAmt>0.00</packingAmt>
<lstamt>14.00</lstamt>
<w>
<vatname>MVAT 5%</vatname>
<syssrl>2</syssrl>
<f>
<glname>CONSUMABLE STORES</glname>
</f>
</w>
</z>
</y>
</PurchaseRrgister>

Hi Sushil Agarwal,
As per my understanding, you want to create a matrix and use xml as data source for purchase bills, each purchase bill has multiple items with different rate and vat. In order to improve the efficiency of troubleshooting, I need to ask several questions:
Please provide corresponding column name for purchase, rate, billtotal and vattotal.
“but grand total of billtotal, vattotal gets added as many times as the items are there in that each bill” What’s the meaning of this sentence?
What function do you want to achieve? What’s the state of report now? please provide some more detailed information of your requirements. I would be appreciated it if you could provide screenshot of the report in design mode.
This may be a lot of information to ask for at one time. However, by collecting this information now, it will help us move more quickly toward a solution.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support

Similar Messages

  • Matrix report with group.

    dear all,
    can anyone guide me how to build a matrix report with group using scott schema.
    i can not be able to build a query.
    Thanks
    Muhammad Nadeem

    The example given by Oracle (from the above link) using the following SQL for a matrix report is flawed.
    SELECT DEPTNO, JOB, SUM(SAL)
    FROM EMP
    GROUP BY DEPTNO, JOB
    ORDER BY DEPTNO, JOB
    The SUM function handled by the query restricts you from doing so many things - especially when you want the empty fields to be filled by 0 (by using the Value if Null property).
    If the query is changed to ''SELECT DEPTNO, JOB, SAL FROM EMP' , and use the SUM function in the wizard to build the Matrix cell, then the 'Value if Null' property can be used without any issues.
    This also makes Section 25.6 (Add zeroes in place of blanks) of the documentation a joke.
    Anyway, that's my cents worth....

  • OTN TEAM Please respond-matrix reports row limitation(very urgent)

    Hi ,
    using with matrix reports for delimited reports what's the maxmimum row limitation for text and excel?
    thanks in advance.
    please advice asap.
    thx in advance.

    See response in OTN TEAM Please respond-matrix reports row limitation(very urgent)

  • Matrix report - row field text extends into cell field's display space

    The horizontal elasticity of the row field in the matrix is set to VARIABLE. This row field's horizontal elasticity needs to be VARIABLE (not FIXED).
    However, this causes problems because if the row field's text length is long, the matrix does not change accordingly, i.e. the cell field does not move to the right to make room for the row field. So the row field extends into the display space of the cell field, and the text of the row and cell field overlap, and so the text is almost impossible to read (as well as ugly).
    I have tried to put a frame around the row and cell field so that they are together and move accordingly, but this hasn't helped. I have also tried anchors but they cause the fields to appear NULL when they are not.
    Any help is appreciated.
    -nelson
    [email protected]

    I think you'll need to revert to a fixed sized field and increase the height of the field to cope with the number of rows that you could have.
    You might be able to create a repeating frame above the matrix that tracks the matrix and pushes the whole matrix down as it expands, but I don't see how you could do this within the matrix structure itself.

  • Matrix reports total -- urgent

    hi
    I want to make a matrix report with the total column reset at report level,i.e. the group total for each row. But instead of printing it at the end of the report, i want it to be printed on the first page before the matrix cell fields start. Now the problem is that on the consecutive pages, the space occupied by this total column is coming blank i.e there's a gap between the matrix column(printed down) and the matrix cells. I dont want this gap at all. Is there any way by which i can make the matrix cells shift to the left so that this gap is not there in the second and the consecutive pages.

    This doesn't work.Had already tried it but it always gives the errors that the matrix repeating frame cannot anchored with other objects though I select it as the parent frame. Also, if I try anchoring it to some other object it gives wierd results

  • MATRIX REPORT , URGENT ........................

    Hi ,
    I have a report, which is to be built as matrix report. Its a
    matrix report with group. But this report has some calculations
    to be done at each group level. Can any one tell me how to do
    it ? Here is the lay out of the matrix report. This is very
    urgent . Please help me out.
    Thanks
    Feroz
    COUNTRY ----> This is the top group
    <---- GROUPS------> <----COLUMNS MOVING ACCROSS ------>
    DEPT CATEGORY BRAND Month1 Month2 Month3 Month 4 .....
    HHN LAUNDRY SURF Sales 800000 |
    Units 20000 |
    Avg. Price 40 |=> These are the row values
    %Sales 60% |-\These are the calculation
    %Units 40% |-/
    LAUNDRY TOTAL Sales
    Units
    Avg. Price
    % Sales
    % Units
    HHN TOTAL Sales
    Units
    Avg. Price
    % Sales
    % Units
    GRAND TOTAL Sales
    Units
    Avg. Price
    % Sales
    % Units

    There is a specific reports discussion forum that you should use
    for these questions.
    But to answer your question.
    Create the report with the wizards and choose group matrix
    report.
    If you can't define all your calculation using the wizards,
    Then add the calculation to the data_model manually, making sure
    to add them in the group above the data that they calculate.

  • Xml matrix report not expending horizontally

    hi guys m trying to develop xml matrix report but m totally stuck.value are not expanding vertically.
    RTF tags are here.Plz tell me how can i attach rtf and xml file with this post so you people can help me in better way.
    plz help me its very urgent
    <?for-each:G_1?>
    <?ITEM_CATEGORY?>
    Organization : <?horizontal-break-table:1?>
    <?for-each-group@cell: G_ITEM_CATEGORY; ORGANIZATION_CODE?>
    <? ORGANIZATION_CODE?>
    <?end for-each-group?>
    <?for-each-group: G_ITEM_CATEGORY;ITEM_CODE?> <?ITEM_CODE?>
    <?for-each-group@cell:current-group();ORGANIZATION_CODE ?>
    <?current-group()// AMOUNT?>
    <?end for-each-group?>
    <?end for-each-group?>
    <?end for-each-group?>

    When you say "the values are not expanding vertically" do you mean that on the printed report it is not returning all the values for a given field, i.e. the field is too small to display the entire value.... OR the repeating frame for the group is not expanding enough to display all the fields???

  • Matrix Report 's Query Output is not as Toad...!!!!!!

    Hello,
    i have the following Query
    SELECT ALL
    FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4)  months,
    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
    CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
    PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
    PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
    PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
    FROM
    PLN_PLAN_DISTRIBUTION_WAY,
    PLN_PLAN_PRODUCTS,
    CDE_MATERIALS,
    FINANCIAL_YEAR_MONTHS
    WHERE
    (PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
    AND (    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE   )
    AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
    AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
    AND (  PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE = 
    to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
    AND( to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)) >= 7 )
    AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
    AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE)
    UNION ALL
    SELECT ALL
    FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4)  months,
    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
    CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
    PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
    PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
    PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
    FROM
    PLN_PLAN_DISTRIBUTION_WAY,
    PLN_PLAN_PRODUCTS,
    CDE_MATERIALS,
    FINANCIAL_YEAR_MONTHS
    WHERE
    (PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
    AND (    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE   )
    AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
    AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
    AND (  PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE = 
    to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
    AND to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2))<= 6 
    AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
    AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE) the Report is a Matrix Report with Group Material_names as Rows and financial Months as Columns and the expected_Quantity as cells of that report matrix.
    Well,the query runs just fine in Toad as
    Months Material_code Material_Desc ..etc.
    July 2007 1 abc
    July 2007 2 def ...etc.
    June 2008 1 abc ..etc.
    June 2008 2 def ...etc.
    But in a report the output of months are a mess not ordered as a fin_year months..
    i tried to change the design of the report from Matrix group to Matrix got same result...
    Any Suggestions pls.
    Regards,
    Abdetu..

    This the Query with order by which doesn't return the required order..
    SELECT ALL
    FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4)  months,
    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
    CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
    PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
    PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
    PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
    FROM
    PLN_PLAN_DISTRIBUTION_WAY,
    PLN_PLAN_PRODUCTS,
    CDE_MATERIALS,
    FINANCIAL_YEAR_MONTHS
    WHERE
    (PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
    AND (    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE   )
    AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
    AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
    AND (  PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE = 
    to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
    AND( to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)) >= 7 )
    AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
    AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE)
    UNION ALL
    SELECT ALL
    FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4)  months,
    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
    CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
    PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
    PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
    PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
    FROM
    PLN_PLAN_DISTRIBUTION_WAY,
    PLN_PLAN_PRODUCTS,
    CDE_MATERIALS,
    FINANCIAL_YEAR_MONTHS
    WHERE
    (PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
    AND (    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE   )
    AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
    AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
    AND (  PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE = 
    to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
    AND to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2))<= 6 
    AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
    AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE)
    ORDER BY months

  • Center a report title in Matrix report SSRS 2008

    I have fought with my first Matrix report for about a week now. What a pain. Now of course when I seem to be close to the end I can't center my report title on the report. How do I center a title? Help please. Thanks. SSRS 2008.

    Hi gainesvillepratt,
    After testing the issue in my local environment, we should add a textbox with title value above the matrix. Changing the Width of textbox with the same size as the rendered the matrix Width (Row Groups area width + Column Groups area width * the number of
    columns in column group), then setting the TextAlign property to Center in the Properties Windows pane. Thus we can achieve your requirement.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Placeholder in a Matrix Report

    I am looking for a solution for a formatting issue in a matrix report with grouping.
    I would like to find a way to add a place holder to maintain verticle (columnar) consistency if a value is not found in a group for a column.
    Thank in advance for any help
    Frank

    Hi Frank,
    Could you give an example to clarify the problem? How does your report look like currently, and how do you want it to look?
    Navneet.

  • 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

  • Matrix Reports Orientation!

    Hi,
    I have the following situation:
    Report Orientation: Landscape.
    Paper Size: Letter
    Report Type: Matrix.
    My matrix report fetches 20+ COLUMNS and 80+ ROWS. In this situation, neither all ROWS nor all COLUMNS fit on one page.
    What happens is, when the report prints from the 2nd page onwards, the MATRIX ALIGNMENT GOES HORRIBLY OUT OF SEQUENCE.
    (Note: U need to try this senario to see the output for visualizing).
    Please let me know if i can do anything to correctly print the output data under respective ROW/COLUMN.
    Your help is greatly appreciated. Thanks in advance.
    Satyajit.
    null

    See response in OTN TEAM Please respond-matrix reports row limitation(very urgent)

  • Calculate percentage between two rows in a matrix report with a single row group in SSRS 2008

    I need your help. I have a matrix report in ssrs 2008. The report contain one field value column and one value column. I need to calculate a percentage for two values. For example : row 1 : Discount 10 Row 2 : Sales 100 Result : 10/100. I have only one
    row group, I need to have a condition where Field = Discount % on Revenue then Discount/Total Turnover. Because of the  grouping for total, I am not being able to calculate the %, its just totalling the % discount. Kindly refer to the snapshot of the
    report.

    Hi Thanks a lot for your answer, but unfortunately it didn't work,the report is reading from a stored procedure which I have unpivot to convert all columns into rows, so that's why Discount % on Revenue, Discount and Total Turnover is found in one column.
    So the Field!Col.Value is the Discount % on Revenue, Discount and Total Turnover. I have tried to change the code to
    "=SUM(IIF(Fields!Col.Value = "Discount",Fields!value.Value),0))
    /IIF(SUM(IIF(Fields!Col.Value = "Turnover Total",Fields!value.Value),0)) = 0 ,
    Nothing,SUM(IIF(Fields!Col.Value = "Turnover Total",Fields!value.Value),0)))" but to no avail. Any other suggestion will be most welcome.
    Thanks.
    If everything you're getting from stored procedure then you need to calculate and bring the value from there itself.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Group total in matrix report

    hi
    i have a matrix report with 2 level groups above it. now i need to sum group 2 cloumn values for every row on the basis of level 1 group.
    For example, I have Top level group like TUBEWELL TYPE ( values are DEISEL and ELECTRIC) and below it at lower level is OWNER (with values like PRIVATE, GOVT) repeating both for DEISEL and ELECTRIC.
    Now I need to sum every row i.e Private and Govt for Diesel and Private and Govt for Electric (two sums in one row).
    Wizard provides complete row total but not group total.
    So ur help required guys!!
    nadeem ameer
    [email protected]

    Hi..
    am not providing you the exact answer.
    But you can refer to the PRODUCT ORDER PROPERTY in the reports help or on the website.
    Basically, all you need to do is manipulate the product order property, reset at or may be even compute at properties in the summary/ formula column of your matrix report.
    Swati

  • How can I get the second group and report totals in Matrix report?

    Hi,
    I have created a matrix report with 2 break Groups.
    Iam getting columns totals for the first group, but not for the second group and the report totals.
    How can I get the second group and report totals for each month?
    Thanks.
    Ram.

    Hi Ram,
    If you want a total at any group-level, go to the particular group in the data model, insert a summary column in the group, and select
    Reset At > appropriate Group Name
    For report level summaries, you must create the summary column outside of all groups.
    Navneet.

Maybe you are looking for

  • How do I get all the accounts on my mac to have access to the same itunes library?

    How do I get all the accounts on my mac to have access to the same itunes library?

  • Optical drive not recognized

    Ok - I'm trying to work out what the heck has gone wrong with my optical drive. I think it started from when i updated from 10.5.8 to 10.9. I had been having trouble reading any disks at all and sat down to try and fix it, when I looked more into it

  • Storage location list during Confirmation

    Hi! I discovered during confirmation of the goods in SRM (SRM 4, extended classic) that when I choose to list the storage location for selection, although only the relevant storage locations are listed, there are gaps in between the storage locations

  • STMS problem in TMS Alerts

    Hello all,  i am getting beloww error in STMS alerts, does any bosy know how to correct it? I re-created TMS configuration and also regenerated RFC destination and reset user TMSADM but nothing worked. I am trying to import a client 900 on a differen

  • Time differences when syncronizing iCal and SonyEricsson W810i

    Does anyone know why the time of appointments and other entries in the calendar is different in my phone and in iCal? There seems to be one hour dislocation... For example, if I add an appointment using my phone, setting it to 13.00-14.00, after sync