Cross-tab column name sorting

Hi
I created a cross-tab report in Bi Publisher, the sorting in the column names is sorted in alphabetical order. How do I customize this in the order I expected?
Thank you in advance,
Jean

Thank you Jorge!
I used the pivot table to create the template in word. I check the link and it is what I need. But the template I created is so different. I am very new to BI Publisher. the following is the what I have in the field browser:
crosstab:c547;"//ROW";"ETHNIC{,o=a,t=t}";"S_TYPE{,o=a,t=t}";"EMP_ID";"count"?>
<?horizontal-break-table:1?>
<?for-each@column:$c547//C1?>
<?./H?>
<?end for-each?>
<?for-each:$c547//R1?>
<?./H?>
<?for-each@cell:.//R1C1?>
<?./M1?>
<?end for-each?>
<?./T1?>
<?end for-each?>
<?for-each@cell:$c547//C1?>
<?./T1?>
<?end for-each?>
<?$c547//M0/M1/T?>
How do I make the S_TYPE in my order, like the sample you gave me (Wednesday before Thursday)?
Thanks,
Jean

Similar Messages

  • Cross-tab Columns

    I'm trying to design a cross-tab report the following columns:
    Rows : MONTHS       Columns : 2009 Sales; 2010 Sales; 2011 Projections; 2011 Sales; Sales vs Proj; % diff; 2010 vs 2011 diff
    I have a grouping on location.  Then I created a formula that will define what goes in each column. The Sales columns are in  the database.  The projections will be hard coded (an amount for each month and each location).
    MY PROBLEM IS, I'M HAVING A HARD TIME GETTING THE PROJECTIONS TO GO INTO THE CORRECT COLUMN.
    Here is a formula I have for each location.  ( I was having trouble getting all the locations in one formula)
    IF {@SERVICE TYPE NAMES}="DALLAS" THEN (IF{@MONTH NUMBER}= "01 - JANUARY" THEN 989006.66
                ELSE
                    IF{@MONTH NUMBER}= "02 - FEBRUARY" THEN 1006933.40
                ELSE
                    IF{@MONTH NUMBER}= "03 - MARCH" THEN 2027802.10
                ELSE
                    IF{@MONTH NUMBER}= "04 - APRIL" THEN 2229853.06
                ELSE
                    IF{@MONTH NUMBER}= "05 - MAY" THEN 2286594.60
                ELSE
                    IF{@MONTH NUMBER}= "06 - JUNE" THEN 2273131.89
                ELSE
                    IF{@MONTH NUMBER}= "07 - JULY" THEN 2192997.93
                ELSE
                    IF{@MONTH NUMBER}= "08 - AUGUST" THEN 2083988.42
                ELSE
                    IF{@MONTH NUMBER}= "09 - SEPTEMBER" THEN 1851888.57
                ELSE
                    IF{@MONTH NUMBER}= "10 - OCTOBER" THEN 1720331.72
                ELSE
                    IF{@MONTH NUMBER}= "11 - NOVEMBER" THEN 1158791.62
                ELSE
                    IF{@MONTH NUMBER}= "12 - DECEMBER" THEN 1089271.37
                ELSE 0)

    Hi, 
    Nested Ifs are like brackets.  If you mess one up all the others that follow will do strange things and trying to figure it out just causes high-blood pressure. 
    Try this with Case statements instead: 
    IF {@SERVICE TYPE NAMES}="DALLAS" THEN
         (Select {@MONTH NUMBER}
              Case "01 - JANUARY" :989006.66
              Case  "02 - FEBRUARY" :1006933.40
              Case  "03 - MARCH" :2027802.10
              Case  "04 - APRIL" :2229853.06
              Case  "05 - MAY" :2286594.60
              Case  "06 - JUNE" :2273131.89
              Case  "07 - JULY" :2192997.93
              Case  "08 - AUGUST" :2083988.42
              Case  "09 - SEPTEMBER" :1851888.57
              Case  "10 - OCTOBER" :1720331.72
              Case  "11 - NOVEMBER" :1158791.62
              Case  "12 - DECEMBER" :1089271.37
              Default     :0;)
    ELSE 0;
    I added a Default because I prefer to control unknowns than having Crystal do it and erring out unexpectedly. 
    Good luck,
    Brian

  • Cross Tab Column Header and Embedded or Calculated Member

    Hello All
    I am needing some help with a Cross Tab in CR2008.
    My Cross Tab look as follows:
    Rows______________Columns
    ......................................Fiscal Year
    Account Number...........Summarized Field (Value Field)
    The report spans three Fiscal Years but not all accounts have three Fiscal Years worth of data so some Cross tabs start 2009, 2008, 2007, Some report 2008 and 2007, Some just 2007 (and other variations). To get my cross tab working correctly I need to create a formula that get the CurrentColumnIndex based upon the Fiscal Year. e.g. If columnd header = 2009 column index = 0.
    Can anyone advise how I would go about this?
    Thanks
    Phillip

    Phillip, go to your data source, and see if you can add a new connection,
    one of those options should be (Command)
    if you can add a Command, then you can put the SQL in the command section.
    You will need to add the Command as a data source, and remove the old
    data source once the command is added, you will be able to edit it if needed.

  • Cross tab column issue

    I have a cross tab report that has three column fields. I want to design the report such that when the outer most column (1st column) field get repeated again it should appear at a certain gap from the first one.
    By default crystal report shows all the columns joined together with no space in between.
    e.g lets say that column has three values A,B and C. I want to have the cross tab report to have gaps between these three matrices that get displayed. i.e. A with its sub columns and summary values then a slight gap followed by B with its sub columns and summary values and so on.
    Please Help.

    Is the show cell margins option checked or not.If unchecked please check it and see the results.
    If this doesnot work you can right click on the summary field and in the Display String add formula
    "  "+CStr(CurrentFieldValue)+"  "
    Hope this helps
    Regards
    sjain
    Edited by: sjain on Nov 6, 2009 6:04 AM

  • Cross tab column headers display on all pages

    I made a Crystal Report with a cross tab which displays all details. In the cross tab I have 6 columns with details about the data displayed in the last 2 columns. The headers of these columns are only displayed on the first page but not on other pages. How can I add column headers to all pages? Thank you.

    Column headings should be repeated automatically, row headings can be repeated by
    1.right-clicking on the row header
    2. select Row options
    3. .select Repeat Labels on Page break
    or, when I just reviewed it in the help section it says:
    "When you create a Cross-Tab that is wider or longer than the specified page size, the program automatically spans the printing across enough pages to accommodate the size of the Cross-Tab. In the Preview tab, a line will appear at each page break. For ease in reading, column headings will be repeated on subsequent pages. Row headings can also be repeated using the Keep Columns Together option.
    To repeat row labels
    Right-click the blank top-left area of the Cross-Tab and select Cross-Tab Expert from the shortcut menu.
    The Cross-Tab Expert appears.
    Click the Customize Style tab.
    Select the Repeat Row Labels check box, if desired.
    Crystal Reports lets you designate report objects that don't expand horizontally, such as text objects, field objects, OLE objects, charts, maps, lines, boxes, and so on, to be repeated on each additional horizontal page that a Cross-Tab creates. For more information, see Repeating report objects on horizontal pages."

  • Formula for Cross-Tab Column

    Hi
    I am struggling with a particular issue related to cross-tab and I tried a lot, but couldn't managed to get the solution.
    Please help with this issue , it would be of great help to me.
    Thanks
    Aniket
    [CrossTab problem|http://www.forumtopics.com/busobj/viewtopic.php?t=120765]

    Thanks for your prompt reply.
    As I am new to this forum,so I don't know how to attach file, also I tried searching but couldn't get.
    At the end of the previous post, Link is given. There is a file attached "Plz_help.zip". Please look into that file and also if you know how to attach any file, please let me know.
    If still it's not clear, please let me know I will try my best to clear this issue.
    [http://www.forumtopics.com/busobj/viewtopic.php?t=120765]
    Thanks a lot.
    Regards
    Aniket

  • Cross tab column question

    I have 2 crosstabs that read from 2 different columns in my database. the values in the columns range from 0 to 5 however are not always present. I need for the column headers to always be 0,1,2,3,4,5 even if there are no 0's or 3's etc in that column so that the 2 crosstabs will always line up.
    my crosstab shows the % of the total count that the 0-5 is in that column, so if there are no 0's i need to show 0% in the 0 column. Currently the crosstab only shows the columns that there are values for.
    So how can I set a static number of columns for 0-5?

    this is a duplicate thread. you should close it.
    Edited by: Debi Herbert on Feb 24, 2011 1:17 PM

  • 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

  • Sorting in Cross Tab

    Hi,
    We are using the Cross Tab component in Crystal Report XI and the cross tab have the sorting option as ascending, descending and specific order.
    The Sorting order will come from the query as an parameter, in that case how do we achieve the sort order in Cross Tab or how to use the sort in specific order.
    Please provide the solution or any reference.
    Thanks in advance.

    Right click on crosstab and go to Crosstab Expert and in the columns click on "group options" button and in the options tab select "Use a formula as sort order" and write the condition like this
    if {?Parameter}="Ascending" then
    crAscendingOrder
    else
    crDescendingOrder
    Hope this helps!
    Raghavendra

  • 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

  • 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

  • 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

  • Displaying other columns/tables apart from a cross tab

    Hi,
    I designed an RTF template. This contains 3 tables. First table contains the invoice information. 2nd table is the cross tab and 3rd table contains the aging details. My requirement is to print the other tables in all pages if the cross tab goes to multiple pages. Presently all the tables are displayed in the 1st page only. If the cross tab output goes to next page then the 1st and 2nd tables are not being displayed in other pages.
    Can anyone suggest me how to display the other columns/tables apart from cross tab columns if the cross tab output goes to multiple pages.

    Can u plz send me the sample xml and the template so tat i can help u frm my side...

  • Cross Tab Sort and Exclusion

    I have a cross tab that maps closing dates over the prior 13 months and looks like this: 
                    Total
            Total          3,004
         Sep-08     137
         Aug-08     220
         Jul-08     251
         Jun-08     201
         May-08     168
         Apr-08     263
         Mar-08     212
         Feb-08     163
         Jan-08     142
         Dec-07     100
         Nov-07     176
         Oct-07     149
         Sep-07     109
         Jan-00     713
    I have mapped everything that is not within the prior 13 month range to Jan 1, 2000.  I have used record selection to grab records based on multiple criteria.  It looks at cases opened in the prior 13 months and cases closed in the prior 13 months.  This looks at opened and closed dates.  The 713 is just everything in the past 13 months that doesn't have a closed date.  When I don't map it to Jan-00 it displays a blank row.  I tried to do a specific order sort but when I ran my report today it did not include Sep-08, not that its difficult to add the month once a month, but is it possible to exclude Jan-00 when its printing the cross-tab and then sort the remaining ones in descending order [most recent month prior to oldest]?  I am new to Crystal Reports.  I thought it may be in the Formula as Group Sort Order and something like this
    if {@Closed Month}= date(2000,01,01) then [not sure of what function to exclude] else {@Closed Month} crDescendingOrder
    thank you all for the support so far

    Try using group selection formula like
    {@Closed Month}<>date(2000,01,01)
    to exclude JAN data.
    Regards,
    Raghavendra

  • Array in formula to use in a cross-tab

    Post Author: eliasc
    CA Forum: Formula
    I am using CR 10.  I have a report where I am using a formula to use as a column header for a cross-tab.  Below is an example of what I am trying to achieve.
    ATLANTA INVOICE  ATLANTA SERVICE  ATLANTA WARR.  BIRMINGHAM INVOICE BIRMINGHAM SERVICE BIRMINGHAM WARR.  ETC..
    Below is the array in my formula.
    Shared NumberVar i;Shared StringVar CompanyName;Shared StringVar Array Companies := &#91;"HFSE - FW","ATLANTA INVOICE","ATLANTA SERVICE","ATLANTA WARR.","BIRMINGHAM INVOICE","BIRMINGHAM SERVICE","BIRMINGHAM WARR.","BGSI INVOICE","BGSI SERVICE","BGSI WARR.","PEN INVOICE","PEN SERVICE","PEN WARR.","JACKSON INVOICE","JACKSON SERVICE","JACKSON WARR.","FORT WORTH INVOICE","FORT WORTH SERVICE","FORT WORTH WARR.","JAX INVOICE","JAX SERVICE","JAX WARR.","LOUISVILLE INVOICE","LOUSIVILLE SERVICE","LOUISVILLE WARR.","OKLAHOMA CITY INVOICE","OKLAHOMA CITY SERVICE","OKLAHOMA CITY WARR."&#93;;0;
    local stringvar tString;shared numbervar CompName;
    CompName :=UBound(Companies) +1;i := CompName;
    For i := 1 to CompName step 1 do(  ReDim Preserve Companies&#91;i&#93;;    tString :=Companies&#91;i&#93; );
    tString;
    Can someone please help me.  I don't know where I am going wrong and why it isn't putting the above names in the cross-tab columns.
    Thank you for your help.
    Chris

    Hi,
    The "buffer" variable in DIG_Block_Out is an array of short integers (16 bit integers). It expects you to pass the array pointer as the function value. In the example below, "buffer" would be the parameter value.
    Dim buffer(5) as Integer
    Ron

Maybe you are looking for

  • Can I upgrade my laptop Graphic Card

    I have a HP DV6 B1N18EA, its has the nividia geforce 630m 2 gb detecated, I need a better graphic card to upgrade it. So can anyone please tell me if i can

  • Simple example code connect Ldap server...

    Hi all. I am beginning working with Ldap. Please help me a simple example source code to connect with Ldap server. I install Ldap administrator and see a public Server : ldap://directory.d-trust.de:389 How to connect it ? Thanks in advance Diego

  • Upload value mapping - migration from Requisite

    Hi all, We have some rules set up in Requisite that maps for example a category code provided by the supplier ot a material group code. Currenlty, I have been manually maintaining the value mapping in Import Manager. I am wondering whether there is a

  • Folder is missing files...help!

    I have CS GoLive and my portfolio folder on the local side of the window has a plus sign next to it, but won't expand and show the portfolio files. I've tried to copy and paste the pages and I've tried to import the pages to the folder, but nothing s

  • Update HTML-DB 1.5 to 1.6 under 9.2.0.4

    Hi, I want update HTML-DB from 1.5 to 1.6. My database is 9.2.0.4 the doc says: database needs 9i (9.2.0.3) or later or 10.1. but the htmldbins.sql REM Requirements 10G and uses a user variable DB_VERSION=10 Can I update against 9.2.0.4 ? Should I ch