Sorting column name in cross tab

Hi Experts,
How to sort the column name in cross tab.Crystal is sorting alphabetically like
Apr 2013 Apr 2014 Aug 2013 Aug 2014 Dec 2013 Dec 2014 Feb 2013 Feb 2014 Jan 2013 Jan 2014............................so on
But i need result like
Jan 2013 Jan 2014 Feb 2013 Feb 2014 Apr 2013 Apr 2014 Aug 2013 Aug 2014  Dec 2013 Dec 2014
I am using crystal report 2013 version.
Kindly see the attached file

Hi Bharathiraja,
Instead of using a string field to display the month names, use a Date field as the column of the Crosstab.
You can then, highlight the column in the crosstab expert > Options > Options tab > check 'Customize group name field' > click the formula button beside 'formula' and use this code:
Totext({DATE field}, 'MMM yyyy')
-Abhilash

Similar Messages

  • 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 compare 2 columns in a cross tab

    Hi,
    I need some idea on how to compare 2 columns in a cross tab in Deski.
    Original Table is like this:
    Type..............ID...........Name
    Type1............1............BO1
    Type1............2............BO1
    Type1............3............BO2
    Type2............1............BO7
    Type2............2............ --     
    Type2............3............BO5
    I did Slice and dice to the original table and now it looks like a cross tab
    ......................1..............2............3
    Type1.........BO1....... BO1.......BO2
    Type2.........BO7........--     ...........BO5
    Now I want to compare column 1&2, 1&3 and put these values in new columns after column 3 for Type1 & Type2
    Does anyone has any idea on this?
    Thanks,

    1. Right click your table
    2. Select Calculations -> Count
    3. It will insert a new column. Edit this new column formula and substitute it with thos other formula:
    =If ( <Name> Where (<ID>=1)  = <Name> Where (<ID>=2)  ) Then "Column 1 equal to column 2" Else "They're not Equal"
    4.Put this title in that column's header:
    Column 1 vs Column 2
    5. Repeat steps for comparison between 1 and 3, just that this is the formula you have to use:
    =If ( <Name> Where (<ID>=1)  = <Name> Where (<ID>=3)  ) Then "Column 2 equal to column 3" Else "They're not Equal"
    Note: Apply necessary changes depending on what you need.
    Edited by: PadawanGirl on Jul 4, 2011 10:32 PM

  • Setting Total Column width in Cross Tab report

    I am having an issue with the width of the Total Column in a Cross tab report. I have set the width of the column and saved the report but when I am reopening the report the Total column width is expanded but rest of the data column width remains the same (which I saved). Any idea how to adjust the total column width?
    TIA,
    AJ

    AJ.
    Did you ever solve this?

  • Conditional Formating of rows and columns in template(cross tab)

    Hi,
    I am developing a cross tab report in which I have row header as the year like 2008,2007,2006....column header as months jan,feb,mar...and the data area contains the respective data...I need to format the background color of the rows and columns which are below the date of the report(report is ran for a particular month like mar-08)..I was able to format the background color of all the rows that fall below(ex:08) the year of the report(using <?if@row:row_name<'$first'?> <xsl::attribute name="background-color" xdofo:ctx="incontext">#C0D27F</xsl::attribute><?end if?>)..
    and I need to format the 3(till march) columns in the yr 2008
    Thanks...

    Hello..
    Thanks for the reply...
    I have report date as mm|yyyy...below is a sample data of the cross tab..
    <Q1>
    <REPORT_DATE>04|2005</REPORT_DATE>
    </Q1>
    <Q4>
    <CLASS_ID>1</CLASS_ID>
    <MONTH_BEGIN_DATE>JAN</MONTH_BEGIN_DATE>
    <BEGIN_DATE>2004</BEGIN_DATE>
    <NET_ROR>1.32</NET_ROR>
    <ACTUAL_DATE>01/01/2004</ACTUAL_DATE>
    <FUND_FACT_YTD>7.942192987387475647074276803933198866</FUND_FACT_YTD>
    </Q4>
    <Q4>
    <CLASS_ID>1</CLASS_ID>
    <MONTH_BEGIN_DATE>JAN</MONTH_BEGIN_DATE>
    <BEGIN_DATE>2005</BEGIN_DATE>
    <NET_ROR>-.21</NET_ROR>
    <ACTUAL_DATE>01/01/2005</ACTUAL_DATE>
    <FUND_FACT_YTD>5.739540457478967975310388578877768035</FUND_FACT_YTD>
    </Q4>
    <Q4>
    <CLASS_ID>1</CLASS_ID>
    <MONTH_BEGIN_DATE>FEB</MONTH_BEGIN_DATE>
    <BEGIN_DATE>2004</BEGIN_DATE>
    <NET_ROR>.59</NET_ROR>
    <ACTUAL_DATE>02/01/2004</ACTUAL_DATE>
    <YTD>7.942192987387475647074276803933198866</YTD>
    </Q4>
    <Q4>
    <CLASS_ID>1</CLASS_ID>
    <MONTH_BEGIN_DATE>FEB</MONTH_BEGIN_DATE>
    <BEGIN_DATE>2005</BEGIN_DATE>
    <NET_ROR>1</NET_ROR>
    <ACTUAL_DATE>02/01/2005</ACTUAL_DATE>
    <YTD>5.739540457478967975310388578877768035</YTD>
    </Q4>
    <Q4>
    <CLASS_ID>1</CLASS_ID>
    <MONTH_BEGIN_DATE>MAR</MONTH_BEGIN_DATE>
    <BEGIN_DATE>2004</BEGIN_DATE>
    <NET_ROR>0</NET_ROR>
    <ACTUAL_DATE>03/01/2004</ACTUAL_DATE>
    <YTD>7.942192987387475647074276803933198866</YTD>
    </Q4>
    <Q4>
    <CLASS_ID>1</CLASS_ID>
    <MONTH_BEGIN_DATE>MAR</MONTH_BEGIN_DATE>
    <BEGIN_DATE>2005</BEGIN_DATE>
    <NET_ROR>-.2</NET_ROR>
    <ACTUAL_DATE>03/01/2005</ACTUAL_DATE>
    <YTD>5.739540457478967975310388578877768035</YTD>
    </Q4>
    <Q4>
    <CLASS_ID>1</CLASS_ID>
    <MONTH_BEGIN_DATE>APR</MONTH_BEGIN_DATE>
    <BEGIN_DATE>2004</BEGIN_DATE>
    <NET_ROR>-.07</NET_ROR>
    <ACTUAL_DATE>04/01/2004</ACTUAL_DATE>
    <FUND_FACT_YTD>7.942192987387475647074276803933198866</FUND_FACT_YTD>
    </Q4>
    <Q4>
    <CLASS_ID>1</CLASS_ID>
    <MONTH_BEGIN_DATE>APR</MONTH_BEGIN_DATE>
    <BEGIN_DATE>2005</BEGIN_DATE>
    <NET_ROR>-.87</NET_ROR>
    <ACTUAL_DATE>04/01/2005</ACTUAL_DATE>
    <YTD>5.739540457478967975310388578877768035</YTD>
    </Q4>
    MONTH_BEGIN_DATE goes as the column header, BEGIN_DATE goes as the row header and NET_ROR is the data area..I need to get the background color of each cell of NET_ROR below the report date as one color...
    Thanks ..

  • Enhancement Request: Sorting column-names AND Saving Package in clipboard

    Hi,
    I would like to have the following features:
    - Sorting with the column-names (A-Z) would be very nice like I can do in the worksheet or the columns-tab but not in the data-tab
    - Saving source code of packages not only to file but to clipboard.
    Thanks, Juergen

    Hi Juergen,
    Sorting with the column-names (A-Z) would be very nice like I can do in the worksheet or the columns-tab but not in the data-tabThat's already requested on the SQL Developer Exchange. Go vote on it there to add more weight.
    Saving source code of packages not only to file but to clipboardYou can add that one as a new request, but I'd say chances are small to see this implemented.
    What I do is ctrl-a (select all), then ctrl-c (copy to clipboard). If you don't like using the keyboard, you can do it through the Edit menu. Isn't that enough to satisfy everyone's needs?
    Regards,
    K.

  • Unwanted extra column in a cross-tab at run-time

    Hi all,
            I have a question about using a cross-tab on a report. I have a web page with the report and for the cross-tab column data I have selected some data from an array I supply to the report.  At run-time, when I call SetDataSource(data) for the report and look at the data there is only 2 items in the array for the column data. When the report is displayed the 2 column names and values from the data appear correctly on the cross-tab but I also have a third column. The third column has no name and has a value of 0.0.
    The actual data I am associating with the column is the time member of the CategoryTime[]. Any ideas on what could be causing this?
    public class ResourceActivity
            public string resourceName;
            public CategoryTime[] categoryTime;
    public class CategoryTime
            public string categoryName;
            public float time;
    Thanks in advance for any help
    JohnN

    John,
    It sounds like there might be a null record returned and the crosstab is generating a column for it. You could try suppressing blank columns in the crosstab expert or filter out nulls in the record selection

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

  • Filtering Key Figures/Columns in a Cross Tab Component

    Hello All,
    I am creating a P&L Statement for Better/Worse comparisions, and I have to show only three columns at a time based on User Drop Down Selections.
    Here is my Bex Query Out put looks like.  The Rows part is "Structure" and Columns are "Cell Restrictions".
    Now, the CrossTab component has to show only Two columns at a time, based on user selections. Here is my desired output. User will Select either ' Avg' Rate or 'End Rate'. Based on that selction, Actual's will show in the First Column and based on Selection from Second DROPDOWN for Budget/Forecast/PY, the Second Column has to be displayed.
    Is there any DropDown Component or CrossTab Component Options are there to Filter the Columns based on User Selections ?
    Appreciate your help. This is the Crucial Chart for the whole Dashboard.
    Thanks,
    Sonti.

    Hi Tammy,
    Thanks for your quick reply.
    Can it be done dynamically without the User touching it ? My Cross Tab has to show values based on the Selctions. But, I couldn't find the code to restrict Cross Tab data.
    I have to code for Dropdown box --> On Select, to check / Un check the KF's in the Filter Panel Component. And in Filter Panel Comoponent, --> On Select, DATASOURCE.setFilterExt("KF1", "KF2").
    And assign the data source to Cross Tab.
    Please correct me if I am wrong.
    Regards,
    Sonti.

  • Column dissappeared in Cross tab with specific order

    Hi experts,
    I have a cross tab, with 2 columns from YEAR (2009, and 2010). Then I created a other column with the differences of both columns before, I changed the SPECIFIC ORDER and the 3th column is DISAPPEARED!!!
    I dont understand why!!
    thank you very much

    At the beggining i have the following columns:
    2009 2010 Desviation
    I created this with specifciar order.
    Then, I want to change the order and I put :
    2008 2009
    but the desviation is disappearing.
    thank u

  • Date Formatting in Charts and Dynamic column resizing in Cross tabs

    Hi All,
    I am new to Design Studio, so am in desperate need of your help on the following:
    Is there a way we can change the date format in x axis in charts?
    For ex: Am getting dates as mm/yyyyy from BW but requirement is to show in yy-Mon
    Requirement is to display data in cross tab just below the charts. How can I make the column widths in the cross tab the same as x-axis divisions in the chart? Also, this will be dynamic as depending on filter selection x axis scaling in charts will vary.
    In cross tab, can I hide the column header?
    Would really appreciate any kind of help from you.
    Thanks & Regards
    Swasti

    HI Swasti,
    To answer your first question, in Design Studio it's what you see is what you get! so it shows the Data Labels as it is in the BEx output, if you have to modify this you have to change it in the Background.
    There might be CSS workarounds, but I am not sure if that will satisfy your requirements.
    You can fix the Column width, but it would be constant, aligning that to your X-axis would require a lot of Effort.
    You cannot hide the Column header directly, but one workaround would be to use a white BG text component to overlay on the Crosstab.
    Regards,
    Fazith Ali Z

  • Display two different column types in cross tab

    I am using Cross Tab template in crystal XI and I have to show two different column types one is of type int and other is of type string. Below is the format of the report
                                  AmountGiven             Amount Spent            Attended
    Mike                       5000                              3000                         Yes
    Steve                     200                                 200                           No
    Is there a way I can do this showing "yes" or "no" in the third column???
    Thanks...

    Hi
    If you are trying to show "yes" or "no" for a column value in a cross tab, then yes we can try using a formula for it.
    I would suggest you 2 ways that you can try at your end:
    1.
    a) Create a formula in the cross tab expert and write your condition.
    for eg: if Sum({Orders.Order amount}) > 5000 then "yes" else "no"
    b) Then select that formula in the summarized fields in cross tab expert and change the summary to MODE.
    c) You can see the "yes" and "no" Within the same box.
    2.
    a) Add a field to the colums in the cross tab expert.
    b) A column gets inserted in the cross tab.
    c) Right click the field and select format field.
    d) Go to Common tab and write a formula for the display string.
    e) Write the condition in that formula.
    f) You can see a new column with the expected values.
    Hope this helps you..
    Please revert incase of any queries.
    Regards
    Pradeep Hulke

  • Adding a column to a cross tab report?

    Hi,
    I have a cross tab Report having measures and i want to add a one xtra column to it to display the "total values'.
    i found the option to insert a row. but i didn't find it for a column.
    can u please help me on this?

    Add a Summary

  • Sorting column name in crosstab report 10.1.3.2.1

    hi,
    i have crosstab report build with bipublisher 10.1.3.2.1.
    in column, i have jan'11 feb'11 etc but not sorted correctly(it should be ordered by numeric not character).
    any advise will be higly appreciated.
    thx.
    regards,
    tyo

    You need to either convert these to a date in canonical format and sort based on date,
    Or convert these months to number and sort based on number to have the months sorted correctly

  • Getting row names in cross tab

    Hello all,
    I have a filed in columns and ard 5 fields in summary and nothing in my rows. Now in order to get the row names i have manually written them but they do not show up when i export the report to excel.
    Can anyone suggest how to get row names?
    Thanks,
    Robinn

    Someone pls suggest me something.
    Thanks
    Robinn

Maybe you are looking for

  • A new HD TV, that will work in the building I live in

    I live in a tower structure apt building, on the 6th floor facing south. No dishes are allowed, there's no place to put em and it's in the lease. So, all I can get is Comcast cable, for TV. I could use rabbit ears, but I don't think that will give me

  • BDC for CO production order (KKF1)

    HI All, I have a requirement where i have to create a BDC for creating a CO production order using transaction KKF1. But the catch in this requirement is that i should create the CO order not using the default plant valuation type, instead the batch

  • Problem in LDB

    Hello Gurus, I am working on a Report on ASSET ACTIVITY BY DATE RANGE . The program is copied from std. program S_ALR_87011990. The above std. program displays for the whole financial year. This is modified for a particalar period range in the new le

  • Got a ipad mini and i tunes doesn't know it is there

    Just bought I pad mini for son, and it doesn't connect to my itunes account?  Help

  • Listing Of Articles In Assortment Module transaction  WSO2

    Hi All, Can you please provide a BAPI which used to list articles in an Assortment Module using WSO2 transaction. I have written BDC for this but its not functioning for huge no of articles. Thanks,