Create CROSS-TAB Arrange Column data (sort Data)

Dear,
I have created CROSS-TAB and left axix has has data like
aa
bb
cc
dd
but i want result like
cc
aa
bb
dd
Please quide me how to arrange data with my own will.
Regards

I've found that when the sort is out of the order I want, it's necessary to set up a calculation that sets a key to use instead of the field value.
So case when field = 'ccc' then 'a. ccc'
when field = 'aaa' then 'b. aaa'
and so on.
That initial character then forms the basis of the default crosstab sort.

Similar Messages

  • How to create cross tab reports in SAP-MII

    how to create cross tab reports in SAP-MII

    Hi,
    What do you mean by cross-tab reports? Pls elaborate.
    MII Transaction has an action block named 'crosstab' that is used to calculate subtotals of data columns.
    http://wbhelp.sap.com/manufacturing/xmii_120/en/44/749ea81627053ce10000000a1553f6/content.htm
    Is this what, you are looking for?
    Best Regards,
    Kedar
    Edited by: Kedar Shewalkar on Jan 11, 2011 10:40 AM

  • Cross-tab with a lot of data causes fault in crpe32.dll when exporting to Excel

    Hello.  I believe I found a bug in the Service Pack 9.  After upgrading my production to runtime 9, I found that cross-tab reports with large datasets crashed the website.  Per the Windows Application Log, a fault happened in the crpe32.dll.  So I uninstalled the runtimes for 9 and re-installed 8 and the reports worked again.  My production uses the 64 bit runtimes.
    I created a test site which includes a two datasets one large and one small with two reports, one cross-tab and another non-cross-tab.  The site has four pages, one to open the cross-tab report using the large dataset, another with the same cross-tab report using the small dataset, another for the non-cross-tab report using the large dataset and the last with the non-cross-tab report using the small dataset.  Only the cross-tab report using the large dataset causes the fault.  I’ve attached the test site for you use as needed.

    Hi Thomas,
    What version of Visual Studio are you using?
    What OS are you using?
    What version of IIS?
    I did a quick test using a simplied one liner WEB app and I see the same thing...
    FYI, changes we've done is IIS recommends, actually it's a must, to load the report and viewer in the Page_Init section and not the Page_Load so you initialize all of the required dependencies, Page Load doesn't handle it properly...
    I tried both, doesn't make any difference...
    By the way your "large dataset" is not that big. I've seen people use a 10 meg xml files.
    Try moving all of your code to the Page_Init section and test again to confirm...
    I don't believe it has anything to do with the amount data directly, I believe it's the number of pages to render for a crosstab report.
    I'll escalate this to DEV - ADAPT01726274
    Set for SP 10 ( which means I set it to be fix in SP 10 but it does not mean it will be. All depends on DEV's work load )
    Thanks
    Don

  • Unable to create cross tab report with multiple level dynamic columns

    Hi Gurus,
    We are trying to develope group above cross tab report with BI Publisher.
    i am unable to achieve multiple level columns dynamically.Using cross tab wizard i can achieve single level measure column ,but not the second level column.
    Output should look like this:
    Country1
    Region1 Region2 Region3 --(level1 column)
    d1 d2 d3 d1 d2 d3 d1 d2 d3 -- (level2 column)
    Row1 10 20 30 70 80 90 40 70 90 --data
    Row2 21 24 54 65 23 64 64 76 87
    Here regions and d1 d2 d3 may vary based on xml data.Also we have page break on country.
    Thanks,
    Mahesh

    Hi kavipriya,
    Any update on this.I have set the rtf and xml to ur gmail id.
    Thanks,
    mahesh

  • How to produce dynamic cross-tab query result on this data ?

    Hi gurus,
    I have sales (simplified) sales data as below :
    create table sales_summ (area_code varchar2(3), sales_amt number, product varchar2(10) ) ;
    insert into sales_summ values ('A01', 100, 'P01');
    insert into sales_summ values ('A02', 200, 'P01');
    insert into sales_summ values ('B01', 300, 'P02');
    insert into sales_summ values ('A01', 400, 'P02');
    insert into sales_summ values ('A02', 500, 'P01');
    insert into sales_summ values ('A03', 600, 'P01');
    insert into sales_summ values ('A01', 700, 'P02');
    insert into sales_summ values ('A02', 800, 'P02');
    insert into sales_summ values ('A03', 900, 'P01');
    And I want to produce a cross-tab sales summary like below :
    Product A01 A02 A03 B01
    P01     100          700     1500          0
    P02     1100          800     0          300
    How is the query ?
    Thank you for your help,
    xtanto

    Search this forum for "pivot". Plenty of examples.
    Regards,
    Rob.

  • How to create primary on a column when redundant data is present

    I am interested to add primary key constraint on a column where repeated data is there without affecting the date how can I immplement this.
    Can any one help me in this regard.
    Thanks
    Sanjay

    If you have duplicated data and going to specify the primary key constraint on that data it's quite against RDBMS concepts and can't be considered as a relevant idea. Nevertheless Oracle provides you with such tricky method, but once again, it's NOT good idea, change your mind:
    SQL> create table t (x int);
    Table created.
    SQL> insert into t values(1);
    1 row created.
    SQL> insert into t values(1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t;
             X
             1
             1
    SQL> create index t_x on t(x);
    Index created.
    SQL> alter table t add primary key (x) novalidate;
    Table altered.
    SQL> insert into t values(1);
    insert into t values(1)
    ERROR at line 1:
    ORA-00001: unique constraint (ORACLE_OCM.SYS_C006647) violated
    SQL> insert into t values(2);
    1 row created.
    SQL> select * from t;
             X
             1
             1
             2In this case you have PK constraint and it affects all new DMLs, but
    in fact you can't rely on PK.
    Rgds.

  • How to create cross tab reports using RAS SDK api with Crystal Reports XI

    Hi Everybody,
    Iam generating reports in a web-based application with Crystal Reports XI using Report Application Server(RAS) SDK API. The columns in my report exceed that of an A4 sized page. So, when I export that report to pdf, only those columns that fit to a page are showing up. To solve, this problem, I thought of using cross tab. But, I donot know how to generate cross tab report using RAS SDK API. I have tried to get some code from the internet. But, I did not find any java code for that.Can some one give me some sample code.It is very urgent.
    Thanks in advance.

    Hi,
    The easiest way I use is to create the worksheet as regular table and then when i verify the data I get (non aggregate) I duplicate it as a cross tab.
    In the duplication wizard I just need to define the axis (using drag and drop).
    if you want to create a cross tab from the beginning you need to define that in the new workbook wizard (check the "cross tab" rather then "table"), chose your fields and define the place you want them.
    The data point (the center of the cross tab) is aggregated as to your machine definition and will happen automatically.
    for example: to find the amount of receipt by months:
    On the left put the "Buyer Name", on top put the "Months" and in the data point put the amount.
    What you'll get is something like:
    months: jan feb mar apr ......
    buyer_name
    jhon_smith 100 50 30 250 ......
    jhon_doe 80 45 90 453 ........
    and so on.....

  • How to create Cross Tab using Desktop

    Hi Everyone,
    We use Sundard Banner (Universities) with Discoverer.
    I would like to create a Cross tab
    | Final Grade
    |_______________________________
    Course Title|
    |
    |
    Valid grade values are: HP - High Honors
    H - Honors
    P - Passed
    Suppose we had 3 students for class: Emergency Medicine
    George Washington - HP
    John Adams - HP
    Abraham Lincoln - H
    Would like query to look like this:
    | HP, | H | P
    |_________ |_____|_________________
    Emergency Medicine| 2 | 1
    |
    |
    Can this be done using Desktop, pls advise... thx, Sandra

    Hi Rod,
    Thx for your help.... I think I got it to work... Can I run the steps by you:
    a) create table query with: course title, final grade, count of final grade
    b) duplicated query as cross tab
    c) dragged course title to left
    d) noticed that Discoverer create a "field" - called data point for: count of final grade
    e) delete all vertical fields and just left count of final grade
    quests, please:
    ===========
    1) I tried a few times to create a cross tab before posting quest, and this is the first time that I see that
    Discoverer automatically created a field called datapoint for count of final grade. Do you have to follow
    a crosstab workflow carefully to the data point field to be created?
    2) what is definition of data point?
    3) Please confirm: The data point is located in the white space of the cross tab?
    4) Please confirm: When running the query, the values of final grades run across the top,
    including "blank" column for null value
    5) If (4), there is a column to tabulate rows with null values, why is the value 0, instead of an actual row count
    6) Under the various column values, is the name of the datapoint field running as a second heading row
    EH | H | HP
    Final_Grade Count | Final_Grade Count | Final_Grade Count | Final_Grade Count
    I will try to paste 3 screen shots below, using the "Plain text Help" box to the right of the screen
    thx again for your help. sandra

  • Cross tab - change column name

    Hi,
    I would like to change on my dashboard the name of the column in cross tab based on design studio.
    I know that it is possible to do that on back-end side and provide desired names in query selection but I will need to to that on Design Studio level.
    Does anyone tell me if it is possible ?
    Thanks
    Marcin

    Hi Marcin,
    here's additional CSS for it
    .sapzencrosstab-ColumnHeaderArea .sapzencrosstab-HeaderCellDefault:first-child{
      visibility: hidden;
    .sapzencrosstab-ColumnHeaderArea .sapzencrosstab-HeaderCellDefault:first-child:after {
      visibility: visible;
      content: "column new name";

  • How to create Cross Tab type report?

    Hey all,
    I am in the process of converting an application. The current application uses Crystal Reports to generate a Cross Tab report. I want to use Oracle to generate this type of report. Can anyone tell me how this is accomplished?

    A cross tab report in Oracle is a matrix report. You can use the report wizard to build this type of report.

  • Arrange Column for export data

    Dear Expert
    I want to export data, how do i arrange the column in data?
    Exc
    COL1 = ACCOUNT
    COL2 = ASSET
    COL3 = ENTITY
    COL4 = COSTCENTER
    Please give your advice
    Best Regard
    Daniel

    Hi Experts,
    We are facing the same problem while exporting data from BPC. We have successfully exported data once but the Column mapping keeps changing each time we export.
    Can someone guide on the default column mapping in the transformation file and how to ensure that this mapping doesn't shift everytime we export?
    Any further help on the same are very much appreciated.
    Thanks,
    Pankti Shroff

  • Cross tab - Rank column

    I am trying to create a column that represents the rank of a row based on a column.  So if I have schools like Harvard, Princeton, Yale and each school is on the left and they have values of tuition, cost of living.  I would like to display two different columns of rank on the same crosstab.  One rank based on tuition and the other cost of living
    Princeton-----100000 -
    30000
    Yale--8000--
    10000
    I would like to CR to calculate the rank of the schools based on the tuition then the cost of living.
    Any ideas? Is there a function that does rank based on column values in CR?

    There are different methods to achieve the ranking effect.One method is given in below link
    http://evtechpartners.com/home/blog/3-ranking-in-crystal-reports-2008
    Hope this helps
    Regards,
    Bilahari M

  • Calculations based on Summarized data in Cross Tab

    First off, I'm pretty experienced with Crystal.
    I've run accross something that seems like it should be realy easy to do, and the sort of thing you would expect to do  in a cross tab... so maybe I'm missing something totally obvious.
    I'm doing a year over year comparison of some financial data broken down by month and by quarter.
    So, my Rows are Quarter, and a field called 'YEARMONTH' (calculated field, YYYYMM, for ease of sorting)
    My column is Year, and for summarized fields, I have the data field I'm interested in which is a float. Let's call it 'Dollars' for sake of argument.
    What I want to do is create a summary field (next to the total field) called 'Difference' or 'Delta' that calculates for reach row the difference between my two years (2008, and 2009)
    The only solution I can come up with is to dummy in a record from the datasource with a year value of 'Difference' and some other dummy values so that it will show up as a column on the cross tab, and then somehow use the currentrowcolum function or some such creature to mask the output in the column. but now that I type it out here, I'm not sure it's going to work. I also don't think it's going to export the way I want it to either.
    I'd really prefer it to be in a cross tab, and not in some manually created cross-tab emulation using manual running totals, but I'll go there if I have to.
    Thanks a ton!

    This is what I did in my report to get the difference
    my crosstab looks like this
                        2004     2005    Total
    Total              T1         T2         T
    USA               A          B          C
    INDIA              X          Y          Z
    right click on T1 and go to format field and write the suppress condition like this
    numberVar d:=0;
    currencyVar array arr1;
    currencyVar array arr2;
    numberVar e;
    if GridRowColumnValue('year')=2004 then
    (e:=e+1;
    redim preserve arr1[e];
    arr1[e]:=CurrentFieldValue)
    else
    (e:=e+1;
    redim preserve arr2[e];
    arr2[e]:=CurrentFieldValue);
    false
    right click on T and go to format field and write the Display string condition like this
    currencyVar array arr1;
    currencyVar array arr2;
    totext(arr1[1]-arr2[1])
    right click on A and go to format field and write the suppress condition like this
    currencyVar array four;
    currencyVar array five;
    numberVar d;
    if GridRowColumnValue('year')=2004 then
    (d:=d+1;
    redim preserve four[d];
    four[d]:=CurrentFieldValue)
    else
    (d:=d+1;
    redim preserve five[d];
    five[d]:=CurrentFieldValue);
    false
    right click on C and go to format field and write the Display string condition like this
    currencyVar array four;
    currencyVar array five;
    numberVar g;
    g:=g+1;
    ToText(four[g]-five[g])
    Note: Please select the option "column totals on top" for crosstab in customize style
    Hope this helps!
    Raghavendra

  • Don't show data from web service to Cross-Tab in xcelsius

    Hi all visitors
    I have created one web service and my web service will show data like this.
    Group ___Floor ____Amount
    Member__Floor 1__1000000
    Member__Floor 2__1000000
    Member__Floor 1__1000000
    Member__Floor 2__1000000
    Member__Floor 2__2200000
    Member__Floor 1__     1000000
    Member__Floor 1__     1000000
    In my xcelsius, i have option to make it to cross-tab.
    when i use that data( data above by manual) to excel spreadsheet. The data will change to
    Group______________Floor1________________Floor2______________GrandTotal
    Member____________5000000_____________ 3200000_____________8200000           
    GrandTotal__________5000000_____________ 3200000_____________8200000
    But when i load the data from web service,It doesn't show anything.
    (when i use list view to show data from web server, i see all data)
    How can i load data from web service and show the data like manually?
    Best Regards,

    Hi Tony,
    As per your example i have used the SUMIF fucntion
    have a glance at that and let me know if you need help
    Data coming from webservice >>     Concat     Group     Floor     Amount
                                              =C7&D7     Member     Floor1     1000000
                                              =C8&D8     Member     Floor2     1000000
                                              =C9&D9     Member     Floor1     1000000
                                              =C10&D10     Member     Floor2     1000000
                                               =C11&D11     Member     Floor2     2200000
                                               =C12&D12     Member     Floor1     1000000
                                              =C13&D13     Member     Floor1     1000000
    Cross Tab >>Group     Floor1                                                                    Floor2
          Member     =SUMIF($B$7:$B$13,$H$7&I6,$E$7:$E$13)     =SUMIF($B$7:$B$13,$H$7&J6,$E$7:$E$13)
         Grand Total     =SUM(I7)                                                                     =SUM(J7)
    Original data after
    Group     Floor1     Floor2
    Member     4,000,000     4,200,000
    Grand Total     4,000,000     4,200,000
    Hope this may solve your issue.
    Ley me know if you have any other issues.
    Regards,
    AnjaniKumar C.A.

  • Detail-Data in Cross-Tab

    Hi,
    i would like to add additonal data to the row-label in a cross-tab.
    ....................... C1    C2    C3
    Customer1
    .... add.Data1
    Customer2
    .... add.Data2
    Customer3
    .... add.Data3
    How can i do that?
    The link between the Customer-Table and the Extra-Data is the customer-id and a Date-Field (parameter of the report - used for filtering on a date-basis).
    Table for extra data:
    customer-id     date     amount
    DATE is a parameter of the report.
    Is there any way to do this?
    (I use CR XI).
    Result should look like this:
    Selected Date (Parameter): 2009-02-02
    ...................................................... C1    C2    C3
    Customer1 +
    ....amount on 2009-02-02 for C1
    Customer2 +
    ....amount on 2009-02-02 for C2
    Customer3 +
    ....amount on 2009-02-02 for C3
    THX in advance,
    Markus

    Hi,
    Lets phrase it differently again
    i have a second table from which i would like to add additional information to the row-information in a cross-tab.
    customer.... date ... amount
    Cust1....2009-02-01....   10
    Cust1....2009-03-01....   15
    Cust1....2009-04-01....   77
    Cust2 ........
    Cust3 ........
    I need ONLY the first amount from the starting-date in the CROSS-Tab.
    The starting-date is a parameter in the report.
    If i put there the linked amount-field i get a row for each different date.
    I need only one row per customer with the first amount from date 1. (the parameter-date-value)
    So if i enter 2009-03-01 as the parameter, i would like a cross tab with a row-name of:
    "Customer1 + ChrW(13) + 15 "
    It works with a SQL-Expression (named "StartSaldo") like:
    (Select Saldo from Goldbeck_Saldo where D_Date = '20090301'
    and "Goldbeck_Saldo"."I_PERSID"="BaseTable"."I_PERSID")
    and a row name of "Customer.Name + ToText({%StartSaldoSQL})
    However the Date "20090201" is hard-coded there.
    I can find no way to make the Date from the SQL-Expression soft-coded (pass the parameter to the scalar SQL-Expression). According to another forum-post this is not possible.
    THX
    Markus
    Edited by: Cumulus7 on Apr 27, 2009 4:25 PM

Maybe you are looking for