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

Similar Messages

  • Cross tab Date Column Grouping

    Hi,
    I have a cross tab in my report which displays no of tickets opened grouped by day, week or Month, grouping is done based on a parameter GroupBy, which has Day, Week, Month values
    Incident   Jun -99  Jul-99
    Priority1      10          20
    Priority2      45          23
    if user selects day or week, cross tab should display column in dd/mm/yy format, if its month, MMM-yy format.
    I have created formula which returns a date type
    GroupBy = Day then Opendate
    GroupBy = Week then opendate -dayofweek(opendate)+1
    GroupBy = date(year(opendate),month(opendate),1)
    and used this date formula as column in cross tab. I tried to format using custom date style...but its not working in cross tab.
    if I use totext to format the date formula, data will not be in sorted order...ex, its showing jul-99 before jun-99
    can anyone help?
    Thanks in Advance,
    Jyothi

    You can avoid multiple cross tabs by using the Display String expression under Field Formatting.  The expression that is entered in this field is what is displayed as the field value in the report.  Use the same logic as you are using for calculating the value, except return CStr(CurrentFieldValue, <format>), where <format> is the formatting code for the desired date format based on GroupBy.
    HTH,
    Carl

  • 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";

  • 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.

  • BIP Cross tab report

    Requirement is to display cross tab report in the format mentioned below
    Currency Denominations
    ----------------------------------1000-------500---------200--------100-----
    AED ---------------------------abc----------xya----------pqr-------www
    ----------------------------------1000-------500---------100--------50-----10
    INR ---------------------------abc----------xya----------pqr-------ww------uuu
    ----------------------------------100---------50-----------20---------10-----5
    USD ---------------------------abc----------xya----------pqr-------ww------uuu
    where number denotes the various denominations for a currency, text values denote the cell value, for the sake of simplicity only one row is displayed.
    Normally in a cross tab report, column values are fixed for each row value, but as illustrated above, each row has a different set of column values.
    How to achieve this format.

    http://winrichman.blogspot.com/search/label/cross%20tab

  • How to calculate difference in cross tab report

    Hello All,
    I have a cross tab report . I have values for 2 KPI's no of employees joined and no of employees left organization on monthly basis.
    I want to calculate employees Joined - employees left organization.
    Please let me know how can we achieve this.
    PFA the sample report.
    Regards
    Prasad Ambati

    Hi Prasad,
    I think you want the difference between the two columns in the cross tab i.e.
    "Count of Joinees" (lets say V1) and "Count of employees left the organisation" (lets say V2)
    For achieving this you can do:
    1. Create a variable V1 (as measure) for "Count of Joinees" as you have already used in your cross tab (1st Column), just create a variable for it.
    2. Create another variable V2 (as measure) for "Count of employees left the organisation" as you have already used in your cross tab (2nd column) just create a variable for it.
    3. Add a column next to "SUM" insert the formula =[V1]-[V2] 
    I think this should work just try it.
    Thanks,
    Shardendu Pandey

  • Extend style with cross-tab

    Hi guys,
    As is shown above, how to dynamically adjust section "Extend style"'s width, accroding to section "Cross-tab"'s width.
    Thanks.

    hi Hu Po,
    do you mean
    (a) the number of columns in Extend Style increases or
    (b) the width of the existing columns in Extend Style increase?
    if (a) the only way that the Extend Style cross-tab could expand automatically is if it had a field in the Cross-tab Expert > Column dialogue that matched the field in "Cross-tab" in your screen shot.
    if (b) unfortunately the Width property in a cross-tab cell's Size And Position dialogue is not available like it is in other objects like fields.
    -jamie

  • Hide the cross-tab headers

    Hi -
    I am trying to figure out how to hide the cross-tab headers on even number pages.  I know that I can suppress the text in the header columns but I would also like to hide the cells as well.  Is there a way to do this?
    Thanks
    Akash

    hi Akash,
    unfortunately there is no ability to hide the cells / space for column headers that are suppressed. the grid lines cannot be conditionally hidden either.
    if you really need this look and feel you may wish to insert a 2nd section below your existing cross-tab. copy and paste the cross-tab into the new section and have that 2nd cross-tab's column header suppressed as well as shrink up this header with the Size and Position > Height property. you can then remove the grid lines (if applicable) on the column header for this 2nd cross-tab.
    now you need to conditionally suppress the new section based on the page number and the original section based on the page number. to suppress the new section should be 
    remainder(pagenumber, 2) <> 0
    and for the original section
    remainder(pagenumber,2) = 0
    -jamie
    Message was edited by: Jamie Wiseman

  • Can we apply sorting on Column values in Cross tab??

    Can we apply sorting on Column values in Cross tab??
    Following is the scenario with me.
    I have 2 fields and one formula.
    Fields are HostName and Username.
    Formula is status which categorizes the Authorized and Unauthorized events.
    And in the Summary Field, I am calculating the total number of events.
    In cross tab, Fields are marking the Rows of the cross tab and Formula is making the Columns(Authorized and Unauthorized ) of the cross tab.
    Since in cross tab data is grouped from left to right and sorted by default. I want to remove this default sorting and want to put sorting on the formula for Unauthorized events.
    Is there any way to fulfill this requirement?

    Hi,
    You can assign a number to each Unauthorised field e.g
    Rank   Unauthorised
    1         A
    2         BC
    3         DF
    5         TD
    6         GF
    Then add "Rank" to the crostab Columns before the Unauthorised  field. Then you can control the sorting order on your crosstab.
    Hope this helps
    Regards
    Dotun

  • How to count number of columns in cross-tab report

    I have created a cross-tab report and have managed to get the data out as below:
                 Jan     Feb     Mar....(display of months will auto expand) Avg/Mo  Total
    UserA     4          3        4                                                                         11
    UserB     6          1        1                                                                          8
    UserC     5          5        5                                                                         15
    Total       15        9        10                                                                        33 
    I want to insert a calculated column (Avg/Mo) into the cross-tab report based on the formula: Total/Number of Months. I used this calculation formula  for Avg.Mo column:
    (GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/GetNumColumns)
    However, I get the wrong average since GetNumColumns count the total number of columns including the column of Avg/Mo and Total.
    How do i get the number of columns, excluding the Avg/Mo calculated column and Total column?
    PS: I can't use hardcode since the number of months/columns will auto expand the months progress...
    Edited by: jutamind on May 26, 2010 9:27 AM

    ok managed to solve this by slightly changing the formula:
    GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/(GetNumColumns-2)

  • Hiding a column in Cross tab

    Hi all,
    Could any one provide me a solution to hide a cross tab column.
    My cross tab has the Dimension in the rows and date values in the columns
              Dec'06 Dec'07 Jan'08 Feb'08..........Dec 08
    DIM1     20         10       35        28                 26
    DIM1    30          20       15         14                 22
    Some reason am bringing Dec'06 data and this data is coming from the universe.
    So now I would like to hide this Dec'06 column in the cross tab how can I achieve this?
    or is there any solution to hide first column in the cross tab?
    Any help would be highly appreciated.
    Thanks

    Hi all,
    For this I just created a variables as below first for Prior Prior year end as I always need to hide prior prior year Dec data so created a variable as below
    Prior prior year end=ToDate("31/12/"+FormatNumber(Year([Date]);"0000");"dd/MM/yyyy")
    after that created another variable like
    If([date]=[Prior prior year end];"Y";"N")
    Now created a filter saying filter cal date="N"
    It is hiding all the years december data but I only want to filter only prior prior year end
    any help pls
    Edited by: VP S on Feb 10, 2011 5:21 PM

  • How to create a title over the top of the left-most column in a cross-tab.

    This is one of those things that seems simple until you try it.
    I'm almost there.  I moved the cross-tab from the report header to the report footer so I can have a page title.  I tried using an overlay but it didn't work for any page past the first.
    I can't seem to figure out how to put a title over the left-most column though.
    Thanks in advance,
    J

    I have used a text box, after you type in the text, select the box, and move it to the front.
    then select the crosstab and move it to the back.

  • Dynamically color to each column in Cross-tab report

    Hello All,
    I am a newbie in Crystal report,from last few weeks, i am working on cross tab crystal report.i have a requirement to show color dynamically for each column.i am adding an attachment how i want it. i tried dynamic coloring using object field formula but it is showing red color to all data.i want red color data when in 2nd  cross tab report data is beyond upper or lower limit in first cross tab table. it will be very helpful if somebody will give me any clue on this.... i read so many articles now it seem like impossible for me..:(
    i am using visual studio 2010 and sap crystal report version 13.0.0.99 for visual studio 2010.

    Hello Manish,
    I have attached a sample report that does this. You will need to remove the .txt extension from the attached file to open it as an .rpt file.
    Please right click on one of the value fields of the first cross tab in the report > Format Field > Common > Suppress if Duplicated conditional formula.
    The nested formula is as follows;
    numbervar array l;
    numbervar array u;
    numbervar x:=CurrentColumnIndex;
    if GridRowColumnValue ('@limit') = 'lower limit' then
    (redim preserve l[x];
    l[x]:= tonumber(CurrentFieldValue))
    else if GridRowColumnValue ('@limit') = 'upper limit' then
    (redim preserve u[x];
    u[x]:= tonumber(CurrentFieldValue));
    false
    So it assigns each lower and upper limit value for each client (in the sample it is country) to an array using the cross tabs column index to index the array and it ends in False as we don't actually want it to suppress if duplicated. This nested formula is just used to generate the arrays of upper and lower values.
    In the second cross tab if you again right click on one of the value fields > Format Field > Font > Color you will see the following conditional formula;
    numbervar array l;
    numbervar array u;
    numbervar x;
    if not(tonumber(CurrentFieldValue) in l[CurrentColumnIndex] to u[CurrentColumnIndex]) then
    crred
    else
    crblack
    So this compaes the current field value to range generated by the 2 arrays and assigns a color based on whether or not it is in the range.
    Regards,
    Graham

  • Cross Tab calculation in Individual column-Crystal Report

    Hi experts
    I am preparing a report in Crystal report 2008. Report template is Cross Tab.
    Structure of report is
    Cardname-Row, DocType-Columnd, DocTotal-Summarize field.
    Result of this report is
                          IN(Invoice)             RC(Incoming Payment)      Total
    XYZ                    1000                  -500                                 500
    ABC                    2000                 -1000                               1000
    Total                   3000                  -1500                               1500
    I have inserted a column using calculated member. I want to Calculate in that column with BP opening balance
    eg. OCRD.Balance-DocTotal when I do this it give first value to all column rows, i.e (consider XYZ opng Balance is 1500, I have calculate month opening balance which meance Current Opening Balance-Current month Order bookings=Month opening balance)
              IN(Invoice)             RC(Inc Pmt)      Total   Opng Balance
    XYZ       1000                  -500                  500     500
    ABC      2000                 -1000                1000     500
    Total      3000                  -1500                1500    500
    I want to calculate Opng Balance for each CardName but it gives first Customers opning balance to all customers.
    Give me solution.
    Thanks in Advance

    Hi
    I think you can do calculation based on the formula .On the cross tab ,there is :
    X -selection - row
    Y - selection -column
    Z - summary
    You can also use formula on cross tab to do that function  and insert into summary section .
    Hope this helps .
    Bishal

  • Creating a header for rows/columns in cross-tab with syntax

    Hi,
    The issue is creating strings for rows or columns' headers. How can I create a formula field which contains more than one seperate string. Such as "aaa", "bbb" and "ccc" are headers and they should be in seperate columns. In short, they will behave like characteristics of one of my query's field but they are just headers of the columns.
    ..............aaa...bbb...ccc....
    row1.......x.......x........x.....
    row2.......y.......y........y.....
    Also there is another issue about the formulation again. Is there any operator that does the same job as " \n" which is used in C languages to break the line?
    before:
    aaabbb
    after:
    aaa
    bbb

    Hi Carl;
    Firstly, thanks for answering my question. To explain my problem there are two options ahead(for my first question); first one is writing down the actions step by step, the second one is posting an image file(jpeg etc) to visualize it. I think the first one will be enough. If not tell me
    Step 1- Create a cross-tab and right click and select cross-tab expert.
    Step 2- Click the button "New Formula" and write down any word(such as "Sales") between two -"- sign to make it string.Then save and close.
    Step 3- Drag and drop the created formula to "columns" section and fill the other necessary sections with your database's(such as xtreme.mdb which is famous for crystal users) fields.Don't forget to add another column value to "columns" section, since our formula has no link to database.
    Step 4- Then click OK to save the changes and lets preview the cross-tab.The result will have one top column and his child or children(that depends on your data). And this top column is behaving like a header not a field.
    Now turn the second step but write down a formula for 2 columns or more.For exmple "Sales" and "Profit".So the result will have 2 top columns and their child/children.
    My question is "what is the formula for 2 or more columns?"
    Also I couldn't get the answer for my second question. What is the meaning of expressions "\c" and ChrW(13)?
    Edited by: diabolus on Oct 30, 2009 9:39 AM

Maybe you are looking for

  • Enabling Typewriter tool in browser

    I have a web application that is displaying pdf files stored on a shared drive. The pdfs are displayed within the embedded viewer in IE. All users of this application have Adobe Standard installed. From a previous post, I saw that I could get the com

  • JSF Tree construction - My Faces Tree2 Component development

    Hi I am planning to recommend JSF and MyFaces for the development of the application. like Navigation Tree on the left side, header, footer and body .. 1) Can any one share a piece of code to develop Dynamic Navigation Tree(like ServerSideToggling ..

  • ClassCastExceptions when trying to view documents from a custom document provider

    I have a very basic extension of DefaultDocument that I am using as our document representation. In the recommended strategy #3 we are told that we need to have something that extends DocumentDef, which this fits. However, in the deployment descripto

  • Putting songs on both an mp3 and ipod

    im sure this has been asked hundreds of times but im new so sorry if this is repeatitive but.. I have itunes and an ipod nano first generation and mydad has a simple mp3 player. my issue is the fact that my dad downloads songs from itunes also and i

  • Creative Mediasource can't play Chinese so

    Recently I reformatted my computer and had to reinstall Creative Mediasource.However, now it cannot play any songs with Chinese characters in their names. src="http://i22.photobucket.com/albums/o246/yunyikaren/creativemediasourceprob.jpg">The Chinese