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

Similar Messages

  • Is it possible to copy a Cross-Tab object and Formulars to a new report.

    Afteroon all,
    I have created a Balance Sheet report using quite a few formulars and items. They are listed in a cross-tab object. Everything is working fine except something has happened to the report at some stage and it is causing problems when I deploy my web app (the rpt file will not delete when I undeploy my web app, it gets locked, untill I shutdown tomcat)
    So I want to try create a new rpt file and copy the cross-tab object and all its formulars across.
    So is there a way to copy formulars from one report to another and also is it possible to copy a cross-tab object across.
    Thanks
    Darren
    (PS Unless someone can tell me why my rpt file is being locked by tomcat)

    I am running windows and the rpt file "locks" and I have just noticed the \WEB-INF\lib\derby.jar file also locks. I dont use the derby.jar file at all. (as far as I am aware - I got an oracle connection).
    Maybe I am redeploying incorrectly or not clearing the report correctly.
    What I do is, I copy the WAR file to the webapps folder, Tomcat unpacks the app and I can run my reports no problem, fresh data is displayed if different parameters are used. I then close my browser window and make changes to my report design. I delete the WAR file in the webapps folder and export my project to a war file again - to the webapps, Tomcat then tries to clear the old project folder so that it can deploy the new WAR. it clears out everything except the rpt file and the derby.jar files. And then of course cannot redeploy the WAR file. So I have to stop tomcat and delete the project myself and start Tomcat again.
    Clearly this is not good as I dont want to have to stop and start my Tomcat server everytime I make changes.
    So how should I correctly undeploy a current version of my webapp and then deploy the new changes. Or am I not doing something when I am finished viewing the report.
    Sorry for going off Thread topic.
    I have tried using copies of the report but the same still happens.
    Thanks
    Darren
    Im busy reading the "CR not releasing the memory " thread, hopefully the answer is in there somewhere
    Edited by: Darren Jackson on Oct 7, 2008 5:21 PM

  • Cross Tab Sorting

    Hi,
    I have a cross tab report, i am summarizing total amount field i.e. is JSCOUNT, i want to sort the records with this field(JSCOUNT).
    how to do the sorting in cross tab with summarizing field[JSCOUNT], please help me
    Thanks
    Venkat

    Venkat,
         I have CRXI, click on the crosstab, (Top left corner) go to Report
    about half way down, you shold see group sort expert.  If you do not,
    you may need to click somewhere else on the crosstab.
    Note:    A report must contain a summary value in order to be able to perform a Group Sort. See Summarizing grouped data.
    Use the Group Sort Expert to identify top or bottom groups (the states with the most/fewest customers in a customer report, for example). You can also identify top or bottom percentages.
    Click Group Sort Expert
    in the " For this Group Sort"  section, select all
    you should see your summary value listed, and be able to select it now.
    Hope this helps.

  • Crystal Reports Cross-tab Sort?

    Hello,
    I am new to Crystal Reports and I canu2019t figure out how to sort a column on a cross-tab. 
    How can I sort in descending order the Total columns on a Cross-tab? E.g. will like to show the Product Names by the total amount of sales and not by alphabetical product name. 
    Rows: Product Name
    Columns: Region
    Summarized field: Total Sales  (this is the column I will like to have in descending order)
    If this cannot be done, what is the best way to solve this issue?
    Thanks!

    Hi Sorell,
    I tried this, I right clicked on the table border, and clicked group sort, For this group sort I choose All and selected the measure amount and descending. This sorted amount table by the total column for me based on the highest product revenue.
    Hope this helps
    Regards
    Alan

  • Cross Tab Size and Formatting

    Good Day To All,
    I have 3 Cross tab that fit perfectly on one page, but when it was created the user used an incorrect field as its columns.
    When I change the column field to the correct field the Cross-Tab increases in size shifting the last cross tab to another page.
    How can I keep the original size. I've tried To lock position and size but that does not work. I also tried using format painter but that only works on fonts size. I am unable to re-size the cross tab in design mode. Any suggestions would be appreciated.
    Regards,
    David

    hi David,
    unfortunately there are no properties in a cross-tab to keep it the same overall width if the number of column instances changes. the Size and Position dialogues for Width and Horizontal Position (X) also do not apply to cross-tabs.
    the only thing that you can do is to decrease the width of the column cell and if the output no longer fits in the width of the cell then you'll also need to decrease the font size.
    there is another workaround by limiting the number of records returned to a group. please see my blog post here in particular the section "Formatting a Cross-tab to Have N Rows & M Columns".  this is not an easy task either as the data coming in must be a precise match for the number of rows X the number columns that are required. this is explained further in the blog.
    -jamie

  • Advanced Cross tab table and selecting values

    Hi,
    Have a question on advanced tables again.
    I have a cross tab table...
    ACCT Val1 Val2 Val3
    1234 1 2 3
    Query fires ok and returns values, however, I am trying to retrieve the value in the CO (or AM - it doesn't seem to work eitherplace) to do some manipulation. So far there is only one row in the table, but I cannot seem to retrieve the value. For example I update val1 to 210 and save. I want to get the value and round it down to 200. I am using the following code
    OAAdvancedTableBean tableBean = (OAAdvancedTableBean)webBean.findIndexedChildRecursive("BudgetRN");
    OAMessageStyledTextBean augBean = (OAMessageStyledTextBean)tableBean.getgetAttributeValue("Val1");
    String strl = (String)augBean.VALUE;
    but i end up with a cast exception on the second line where i grab val1.
    Any ideas once again appreciated!

    u will get the class cast exception... because... u said that u r updating the Val1 field... if it is updatable...... then it should be messageTextInputBean... not messageStyleTextBean....
    Secondly dont use augBean.VALUE.... use augBean.getvalue().... something should be there....

  • How to put report title and page no to appear in multiple pages,when using cross tab reports

    Post Author: shaminranaweera
    CA Forum: General
    I am using crystal reports 9.0 with odbc foxpro database conectivity
    I have designed a cross tab report and it is on the report header part and all the report details  are fine,except that the report title and  and page no's only show on the first page of my report.Pls tell me how can i put my report title and page no on all the pages in my crosstab.

    Post Author: foghat
    CA Forum: General
    You need to put your title in the page header if you want it to appear on every page.  The report header only displays once per report.

  • Cross-tab report: need to SUM field and present as HH:MM:SS format

    I am creating a cross-tab report and several of the selected data fields I need to summarize are time-based fields, which are stored as seconds in the database.  When I create a standard report, the formula to convert the seconds to HH:MM:SS and SUM works just fine, but when I try to bring that formula field into the cross-tab report, it does a COUNT on it rather than a SUM.
    How can I get it to SUM that data and present it in an HH:MM:SS format in the cross-tab report?
    Here is the formula I'm using in the Standard Report to convert from seconds to HH:MM:SS and SUM the data.
    totext(abs((Sum ({wagent.acwtime})) / 3600),"00") & ":" &
    totext(abs(remainder((Sum ({wagent.acwtime})),3600) / 60),"00") & ":" &
    totext(abs(remainder(remainder((Sum ({wagent.acwtime})),3600),60)),"00");

    In the cross tab, do the sum on {wagent.acwtime}.  In the cross tab on the page, right click on the field for the sum, select Format, press the X-2 next to Display String, and enter your three line formula, replacing {wagent.acwtime} with CurrentFieldValue.
    HTH,
    Carl

  • Alerters in cross tab report

    Hi,
    I  have multiple crosstabs reports in a single tab each running on a different query.
    1st cross tab
    I created a crosstab report which has Account names,in the left column, dates in the top row header and account data in the data cell. This reports runs for historical dates example 01/2008-10/2008.
    I have caculated the average for this report and named it hist avg.
                       months
    acct names  data for each month      hist avg
    2nd cross tab
    I am using a different query which has account names and a single value(Field Value) for each account name.   eg  acct names    Field Value    Field Value* Hist Avg  (Caculated)= target   histavg(forsort)
                     Acct 1                   3
                     Acct 2                   29
    3rd cross tab
    I created a crosstab report which has Account names,in the left column, dates in the top row header and account data in the data cell. This reports runs for current dates dates example 01/2009-04/2009.
    I have caculated the average for this report and named it Current Avg.
             months
    acct names  data for each month      curent avg   Hist avg for sort  target
    ISSUE :
    I need to put alerters on 3rd cross tab based on target calculated in 2nd cross tab.
    All 3 cross tabs are mergered on acct names. and sorted according to desc hist avg
    But when I put alerters it is not working. Cross tab 1 and 3 has same query but different date prompts.
    I tried merging date dimensions. Now wht I have got is both cross tab displays histavg dates+ Current dates but data for only hist dates or current dates. I used hide empty coloums, So it doesn't show emplty coloums. and was able to bring hist avg in 3rd cross tab.
    BUT ALERTERS ARE NOT WORKING.
    Field value is a standalone derived table.
    Is there are way to use alerters on acct data from one cross tab into anothers when both are running on different dates.????
    Thank you in advance

    Look at the Total Wizard. You should be able select the right options to have totals at different level of the data. Also give us an example what you want to achieve.

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

  • Totals in Cross tab report

    Hi All,
    I have created a cross tab report and in this report there are 8 sub-totals.
    I need to total up the first 7 sub-totals and one more total summing up the first 8 sub-totals. Is there any in-built functions to do this.
    Thanks in advance
    Dhinesh

    Look at the Total Wizard. You should be able select the right options to have totals at different level of the data. Also give us an example what you want to achieve.

  • 2 rows in cross tab

    Hi Guys,
    I wonder if I can create to different rows 1 for product type and another one for product, now I have them both in the same column, looks nice but I want them in 2 different rows but I can't find the setting to do it.
    Thanks

    I have CRXI. SP 6
    Right click the crosstab, go to crosstab expert, click on customize Style
    You can try changing the summarize fields to horizontal.
    If that is not what you want, try this.
    Right click the crosstab, look for the pivot cross tab option, and try that.
    If neither of these fix the issue, please provide an example of what you have, and what you want.
    I may be misunderstanding the issue.

  • More than one summary column in cross tab reports

    Hi,
    I have a cross tab report.  The summary column is SUM. I want to add another summary column next to SUM which will be AVG(Average) column.
    Any ideas?
    Please see the attached image.
    Thanks,

    hi Anurag,
    my fault...i should have looked closer at your data.
    here's the easy way of showing two sets of summaries at the end of a crosstab, without having duplicate columns.
    1) copy your existing cross-tab and paste it to the right of your current cross-tab.
    2) now go to the cross-tab expert of the new cross-tab and remove the fields from the Column dialogue
    3) change the summary to an Average
    4) exit the cross-tab expert and go to the Section Expert for the section where both cross-tabs are...ensure that you check Relative Positions
    preview the report. now you'll have to move the 2nd cross-tab a bit so that it aligns properly with the first one.
    as a sample, see the attached report. extract the contents and change the .txt extension to .rpt.
    -jamie

  • Error formatting Cross-Tab table

    Hello!
    My CR2008 reports include many cross-tab tables and till now, everything went smoothly.
    ...till I got the message "Error formatting Cross-Tab table" while viewing the print preview.
    Technically the error comes up while clicking one of the groups itemized on the left.
    The database hasn't changed. Besides it happened with two different reports associated with two different data bases.
    Any idea ?
    Any help would be appreciated as I've been lost for a while.
    Thib'

    Before I received your answer (thanks a million by the way), I have been installing/un-installing subreports in the main report 'til the 'Error formatting Cross-Tab table' stops.
    The Error stopped occurring when I added a small Group Footer in the subreport : apparently the Error had begun when I had put it to a zero-height.
    Having said that, an hour later and many changes here and there, I have just put a zero-height again and no Error anymore...
    > Check in the main report design tab to see if the width of the subreport fits within the page of the main report.
    > If it doesn't try shrinking the subreport to fit.
    Within 'an hour later and many changes here and there', I did the opposite : I widened a subreport which did not fit in the main report. And the Error isn't raised anymore.
    > What happens if you drill into the subreport?
    You mean if I double-click the subreport to edit it ?
    If that is your question, no Error has ever been raised in the subreport : always in the Preview tab of the Main Report.
    Sorry for describing such an irrational behavior.
    I will categorize my question as answered but if you have any idea, I'd be delighted : I feel like this can happen again and I'd be less under stress to know what detail/ 'parameter' makes CR raise this Error. But your hint about the subreport fitting or not within the main report might be a clue.
    Thank you again
    Thib'

  • 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

Maybe you are looking for