Record Sort

I have a report with 3 groups
Group 1
Group 2
Group 3
             details
I need the detail section to sort by a date field.
When I open the Record Sort Expert the sort fields listed are (in order) like this:
Group #1 mytable.myfield-A
Group # 2 mytable.myfield-A
Group #3 mytable.myfield-A
A-@Ending Date
This appears to be correct to me, but the dates do not sort in order, whether I select Ascending or Descending.
Am I missing something, or does the 3 groups throw off the sort order in the details section?

Thanks Graham
For some reason, after I added the date field to the record sort expert, deleted my last group(Group 3) , then added the same group back to report, it now works.

Similar Messages

  • Custom Record Sort?

    I have a field that is a "String" and I need to sort it a special way.  The data contains both numbers and words, and when I sort it using the record sort expert.  I get the numbers to show up, then the words show up after all the number records have displayed.
    I need to be able to put the word values in A-Z to display first.  Then I will need to display the number values after all of the word values; and sort the numbers 1-9.
    So restating my question: I need to see words values first, and when all of those records have been sorted.  I will need to see the numbers start to sort below the word values.  This is all in the same field.
    How would I go about doing something like this?

    I took some of Brian's advice and here is what I did incase someone stumbles apon this problem in the future.
    I created the following formula...
    //Words start now
    if {PYPCL.CLCY} = "DSDGW" then
    "DSDGW" else
    if {PYPCL.CLCY} = "DSDRF" then
    "DSDRF" else
    if {PYPCL.CLCY} = "DSDRT" then
    "DSDRT" else
    if {PYPCL.CLCY} = "SALBW" then
    "SALBW" else
    //Numbers start now
    if {PYPCL.CLCY} = "178WK" then
    "Z1" else
    if {PYPCL.CLCY} = "337WK" then
    "Z2" else
    if {PYPCL.CLCY} = "342WK" then
    "Z3" else
    if {PYPCL.CLCY} = "343WK" then
    "Z4" else
    if {PYPCL.CLCY} = "344WK" then
    "Z5" else
    if {PYPCL.CLCY} = "481WK" then
    "Z6" else
    if {PYPCL.CLCY} = "497WK" then
    "Z7" else
    if {PYPCL.CLCY} = "549WK" then
    "Z8"
    Then I went into the record sort expert and sorted this newly created formula in ASC order.
    Then on the actual report I dragged the field from the database and NOT the formula.  The formula works with the database field for sorting purposes only and doesn't need to be on the actual report to work.

  • How to display top n records(sorted by no of defects) within date range

    I would like to display top n production orders(sorted by defects linked with each order) within the date range entered by the user.
    Please advice.
    I have 3 parameters to my report:
    1. n(n is no of top records to be displayed)
    2. From date
    3. To date
    Appreciate quick response.
    Regards,
    Hari

    if you use the parameters in the report by placing them in the record selection it should display the records within your date range.
    if {date field} in ?start to ?end then true

  • Record sorting using integer properties in aggregated records

    This is regarding a clarification on how sorting works across within rolled up endeca records . We roll up endeca records to represent the complete record (product). We have price as a property available with every record and when rolled up along with price sorted (low to high), with in the aggregated record we get the least price. When we apply price sorting (high to low), we get highest price with in the aggregated product.
    we are looking for is the least price with in the aggregated record to be used for sorting High to Low. Any ideas if this can be done.
    Below is the example of how the data looks at record level.
    P1
    R1  3.35
    R2  3.25
    R3  2.85
    P2
    R1  2.35
    R2  3.45
    P3
    R1  3.45
    R2  4.65
    R3  3.25
    R4  3.95
    Currently Low to High brings (P2-2.35,P1-2.85,P3-3.25)
    Currently High to Low brings (P3-4.65,P2-3.45, P1-3.35)
    Expected  ---> High to Low (P3-3.25, P1-2.85, P2-2.35) The reverse order of current low to high

    Check the class java.util.Collections and its method sort().
    You may also want to have a look at java.util.Arrays.
    Søren

  • Crystal Reports 8.0 Distinct Record Sort

    I have a report that shows with the following fields:  Firm, Appraiser, Location, Order #, and Order Date.  How can I get it to return the most recent order date for each Firm sorted by Order Date?

    Use grouping
    group by order date,
    group by firm
    insert summary (Max order date) into GF2
    put your firm in GF 2,
    suppress what you don't need to see.
    GF2 should have Firm, Appraiser, Location, Order #, and (Maximum) Order Date

  • Problem with Sorting Detail Records

    Hello All,
    I have an ODBC connection to our AS400 System and I am able to retrieve records in Crystal. I am trying to perform a sort on the Cost Center field and then on the Salaries Account field. These two fields are Alpha Numeric fields. I went to the Record Sort Expert and selected these two fields. However,the Salaries Account field does not sort. When I do Browse data for the Salaries Account (field 2) it is in Ascending Order. When the report prints the detail records within each cost center (the primary sort) the Salaries accounts do not appear sequentially. For example account 510110 appears before 510105. I do not understand why the Salaries Account would not sort?
    I appreciate you input as to why this could be happening and how  I could resolve this? I have exhausted evey thing I could think of but I just cant' get it to sort. You input is much appreicated.
    thanks in advance.
    Imty.

    Hi Abhiash,
    I don't see any dashes. The Cost Center sorts fine and is also Alphanumeric. The accounts are 6 digits. When I do Browse Data they appear in ascending order. So, It baffles me why it would be out of sequence when the detail prints out. See output below. Account 510110 appears before account 510105. This is in the account group view.
    THIS IS BY COST CENTER AND ACCOUNT GROUPING  *********
    11002001     510100     LEE,DONNA R     01/29/2012
    Sub Total     510100          
    11002001     510110     BEKKAIR,RADIA     01/29/2012
    11002001     510110     BROWN,JILLEE S     01/29/2012
    11002001     510110     SASPA,MADONNA T     01/29/2012
    11002001     510110     THOMPSON,LISA Y     01/29/2012
    11002001     510110     VAIL,SHEENA M     01/29/2012
    11002001     510110     VANG,CHEN T     01/29/2012
    Sub Total     510110          
    11002001     510105     COURTRIGHT,EMILY E     01/29/2012
    11002001     510105     HUMPHRIES,CHRISTINA L     01/29/2012
    11002001     510105     KALIFA-MAMAE,SILEPA T     01/29/2012
    11002001     510105     MARTIN,KATHRYN M     01/29/2012
    11002001     510105     MEYER,TRACY L     01/29/2012
    11002001     510105     RODRIGUEZ,MICHELLE     01/29/2012
    11002001     510105     SEXTON,JASMINE N     01/29/2012
    11002001     510105     WILLARD,LISA     01/29/2012
    Sub Total     510105          
    "Total11002001
    THESE ARE THE DETAIL RECORDS. YOU CAN SEE  CENTER 510110 APPEARS BEFORE 510105 EVEN THOUGH I HAVE
    SPECIFIED COST CENTER AND SALARIES ACCOUNT IN THE RECORD SORT *******
    11002001     510100     LEE,DONNA R
    11002001     510110     BEKKAIR,RADIA
    11002001     510110     BROWN,JILLEE S
    11002001     510110     SASPA,MADONNA T
    11002001     510110     THOMPSON,LISA Y
    11002001     510110     VAIL,SHEENA M
    11002001     510110     VANG,CHEN T
    11002001     510105     COURTRIGHT,EMILY E
    11002001     510105     HUMPHRIES,CHRISTINA L
    11002001     510105     KALIFA-MAMAE,SILEPA T
    11002001     510105     MARTIN,KATHRYN M
    11002001     510105     MEYER,TRACY L
    11002001     510105     RODRIGUEZ,MICHELLE
    11002001     510105     SEXTON,JASMINE N
    11002001     510105     WILLARD,LISA

  • Dynamic Sorting on Multiple filed in Crystal report 2008

    Hi
      I am using Crystal report 2008 sp3 full build with hotfix 3.3 along with ASP.NET 2.0
      I have implimented the multi filed sorting using the record sort export and setting the sort order in the report designer.
    Now my requirement is such that i would like to have dynamic sorting on multiple fileds while report is displayed in the UI.
    Means suppose i have a report with Customer region,name,city,rating,status etc.
    Now by using the sort control  i would like to have the functionality in such a way that if user
    a)  first sorts on the region then the records should be first sorted by region
    b)  then sorts on the city then the records should be sorted first by region then by city
    c) now sorts on the  rating then the records should be sorted first by region ,second by city and then by rating
    Now other user may do
    a) first sorts on the rating then the records should be first sorted by rating
    b)  then sorts on the status then the records should be sorted first by rating then by status
    c) now user sorts on the  region then the records should be sorted first by rating,second by status and then by region
    and so on the sorting criteria changes from user to user through the UI.
    Is there any way to achieve the dynamic kind of sorting with Crytsal report 2008 where we can set the order of the fileds at sorting in UI dynamically .The sorting order of the fields are not known at the time of design of the report and its completely depends on the user's need.
    Please let me know if you require any information on the same.
    Regards,
    smitha

    Hello,
       Good Day!
       Thanks for your answer.
       Could you please explain me in detail how to achieve this functionality?
       Do i need to create a static parameter?
       I  get my data set through the command option in crystal report.So i think i need to go by formula in the report.
       i am just putting down the steps to follow.Please correct me if i am wrong.
      step1 :Create s static parameter with the name SORT.
    step2: create the formula as you have mentioned like     
        (IF {?Sort}='Vendor Number' THEN {Pr_Voucher_Status;1.Vendor_Key}& " "& {Pr_Voucher_Status;1.ap_remt_key}
        & " " & {@date}
       else
        IF {?Sort}='Invoice Number' THEN {Pr_Voucher_Status;1.ap_vchr_invno}& " " & {Pr_Voucher_Status;1.Vendor_Key}&
        " " &{@date}
       else
       IF {?Sort}='Invoice Amount' THEN {Pr_Voucher_Status;1.ap_vchr_amtc}& " " & {Pr_Voucher_Status;1.Vendor_Key}&
         " " &{@date})
        I could not  understand what this formula is really doing .
        Could you please tell me what the following names indicates? :
                  Pr_Voucher_Status :- Table/Command name ??
                  Vendor Number,Invoice Number etc.. :-  ??
                 Vendor_Key,ap_vchr_invno,ap_vchr_amtc .. :-  Filed names ??
                 use of 1.{} :- ??                              
    step3: place the below formula in the page header  to display the sort order
        (if {?SORT}='Vendor Number' then "Vendor Number, Remit To, Invoice Date"
              else if {?SORT}='Invoice Number' then "Invoice Number, Vendor Number, Invoice Date"
              else if {?SORT}='Invoice Amount' then "Invoice Amount, Vendor Number, Invoice Date") .
    Note:-My report does not have grouping.Do i need to have grouping?
    in this case how the sort control will work  ?
    As i have mentioned in the first post the order of sorting is completely depends on the user's perspective .
    The report is used by the whole organization ..
    i mean the people with different roles like Manger,Team leads,modul leads,developers ,testers etc..
    the usage of report varies according to the roles so the sort order also.
    Regards,
    smitha.
    Edited by: smitha thomas on Mar 16, 2011 5:01 AM

  • Need help in sorting a alphanumeric DB column in BO report.

    Hi All,
    We have a DB column (Data type = varchar2).. with values..
    1                               
    1
    1.1
    1.1.1
    1.1.1.1
    1.2
    1.2.1
    1.3
    1.3.1
    1.3.1.1.1
    Desired
    1
    1.1
    1.1.1
    1.1.1.1
    1.2
    1.2.1
    1.3
    1.3.1
    1.3.1.1.1
    2
    etc..
    We need to sort this column in BO report.. any idea..  we have sorted it in the Query which is giving right output in pl/sql developer but in BO sorting is not showing properly.
    Could you help please to achieve this?
    Thanks and Regards,
    Priyashree

    The Record Sort Expert appears when you choose the Record Sort Expert command from the Report menu.
    Use the Record Sort Expert to define how you want the records in your report to be sorted for printing. You can add and remove a sort field and define the sort direction (ascending or descending) for the data in your report.
    In my version Record Sort appears as a   A over a Z with Arrows pointing from A to Z, and Z to A.  It is next to group expert, which looks like a mountain with an arrow pointing up.  Both are on the "Expert" tool bar.

  • Custom sorting in data grid

    Sorting entire records
    Problem:
    Assume you have an array of 20 items (master array), and
    first 5 items are pulled into another array (paged array),
    Which is the dataprovider for the datagrid. And the datagrid
    has 10 columns.
    When the user sorts on the datagrid, sorting should happen on
    the 20 records, and
    Not on the 5 records.
    What i tried:
    Clicking on a datagrid column header will sort only the data
    provider of the datagrid. i.e., the
    5 records. In order to sort all 20 records, sorting should
    take place on the master array,
    and not on the paged array. Sorting on 20 items seems to be
    impossible.
    The only logic we could think of was that, on the
    headerRelease of datagrid, capture the
    column header clicked(not sure if you can capture it or not).
    And write custom function
    for sorting based on that column. Since there are 10 columns,
    the number of functions
    or number of blocks of code to be written will Be 10. So did
    not feel to be feasible and optimal solution.
    Please advice.

    Hello chhavs,
    If you listen to the DataGrid's headerRelease event, the event has a property columnIndex to let you know which column the user wanted to sort. So you don't need 10 functions, just one with a switch statement, which is reasonable.
    private function handleHeaderRelease(event:DataGridEvent):void
    var sort:Sort = new Sort();
    var field:SortField;
    switch (event.columnIndex)
    case 0:
    field = new SortField("fieldA");
    break;
    case 1:
    field = new SortField("fieldB");
    break;
    case ...
    sort.fields = [field];
    masterRecords.sort = sort;
    masterRecords.refresh();
    Thanks,
    Philip

  • Birthday calendar on iCloud sort by last name first name like my contacts

    birthday calendar on iCloud sort by last name first name like my contacts

    Curiously, the most recently inputted entries do sort properly, as do all company entries.
    Does that mean "most recently inputted" AFTER you upgraded to Snow Leopard?
    If that is true, it would mean that something about your existing records before the upgrade, for the records that are people contacts (with first and last names) instead of business contacts, do not agree with Snow Leopard and/or Snow Leopard's version of Address Book.
    This may not be feasible, but if you exported the records with this problems and then imported them, maybe they will be re-inputted so that are properly sorted.
    If you use Time Machine, maybe you can use the +flying through space+ interface to restore one of the records with this problem to see if the restore process makes the record sort properly.

  • Line Chart X Axis Not Sorted Correctly

    I have created a line chart where the x axis is date closed and the y axis is number of days to close. This chart is placed within a group called priority.
    When the chart is created the close dates are not on the x axis in ascending order. I'm expecting it to be 10/1, 10/2, 10/3, etc. but instead I'm getting 10/6, 10/31, 10/28, etc. from left to right.
    I've got the Record Sort set to closed date ascending and if I place the records into the report they sort correctly. It's just the chart that sorts incorrectly.
    What am I missing here?

    Hi Jason,
      here is the steps you should follow in order ro set the sorting for barchart.
    1. go to chart expert
    2. click on data tab
    3. select the field in the selected list of report columns on which you have to sort, then the order button will be enabled
    4. click on the order button
    5 it will open new window by name "chart sort order", where you can set the sorting order(ascending order, descending order, specified order or the original order) for the selected report column.
    I hope this will help you..
    Regards
    Deepa

  • 'Sort by last name' not working in Address Book

    In Address book, the 'sort' function (under preferences-General) does not work for half my contacts (all people rather than companies). This does not work for 'by first name', nor 'by last name'. This random list appears at the top of address book, followed by properly sorted entries.
    Curiously, the most recently inputted entries do sort properly, as do all company entries.
    On MobileMe, everything sorts properly
    On my iPhone address book, the same problem, except the random unsorted list now appears after the properly sorted entries (under the category #)
    Is there any reason why this is happening, and any fix for this?

    Curiously, the most recently inputted entries do sort properly, as do all company entries.
    Does that mean "most recently inputted" AFTER you upgraded to Snow Leopard?
    If that is true, it would mean that something about your existing records before the upgrade, for the records that are people contacts (with first and last names) instead of business contacts, do not agree with Snow Leopard and/or Snow Leopard's version of Address Book.
    This may not be feasible, but if you exported the records with this problems and then imported them, maybe they will be re-inputted so that are properly sorted.
    If you use Time Machine, maybe you can use the +flying through space+ interface to restore one of the records with this problem to see if the restore process makes the record sort properly.

  • Sort image files by average luminance and by average hue?

    Hi.  I would like to be able to sort images by average luminance and by average hue.  Is there anything in OS X that will let me determine the average luminance or average hue of an image, and save that datum to the image?
    Ultimately, I would like to use this within Aperture (my sole area of expertise {all my ASC points are from the Aperture forum}).  After I posted the question there, a regular suggested I post in this forum to find out what is possible:  specifically, are there any AppleScript hooks that might allow this?  (Sadly, I don't script, but it helps me know what can be done.)
    I know of one program which does this: CF/X's Photo Mosaic, which uses the averages to match an image to a tile in the "master image".  I don't know of any way to attach the Photo-Mosaic-generated averages to the files themselves.  I asked CF/X about this today.
    Thanks.

    Hello
    You may try the AppleScript script listed below. It is a simple wrapper of rubycocoa script which uses CIFilter to calculate average brightness and hue of each image (jpg|jpeg|png) in specified directory tree. It is a skeleton just to generate a TSV output of [brightness, hue, file] records sorted by brightness and then hue on desktop. I don't know how to embed these info into image metabata.
    Script is briefly tested under 10.6.8.
    Hope this may help somehow,
    H
    PS. If copied code has extra spaces in front of every line, which appears to be the case with some browsers including Firefox, please remove them before running the script.
    -- SCRIPT
    set d to (choose folder with prompt "Choose start folder")
    set args to d's POSIX path's quoted form
    do shell script "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -w <<'EOF' - " & args & " > ~/desktop/test_out.txt
    #     get average brightness and hue of image files (jpg|jpeg|png)
    #     * output record = B=brightness [TAB] H=hue [TAB] file [LF]
    #     * sorted by brightness and then hue
    require 'osx/cocoa'
    include OSX
    EXTS = %w[ jpg jpeg png ]    # target extensions
    module OSX
        class << CIContext
            def contextWithSize(w, h)
                br = NSBitmapImageRep.alloc.objc_send(
                    :initWithBitmapDataPlanes, nil,
                    :pixelsWide, w,
                    :pixelsHigh, h,
                    :bitsPerSample, 8,
                    :samplesPerPixel, 4,
                    :hasAlpha, true,
                    :isPlanar, false,
                    :colorSpaceName, NSCalibratedRGBColorSpace,
                    :bytesPerRow, 0,
                    :bitsPerPixel, 0)
                c = NSGraphicsContext.graphicsContextWithBitmapImageRep(br)
                CIContext.objc_send(:contextWithCGContext, c.graphicsPort , :options, {})
            end
        end
        class CIFilter
            def setParameters(dict)
                self.setValuesForKeysWithDictionary(dict)
            end
            def output
                self.valueForKey('outputImage')
            end
        end
        class << CIVector
            def vectorWithRect(r)
                self.vectorWithX_Y_Z_W(r.origin.x, r.origin.y, r.size.width, r.size.height)
            end
        end
    end
    # process ARGV and retrieve image files with given extensions under specfied directory
    raise ArgumentError, %Q[Usage: #{File.basename($0)} directory] unless ARGV.length == 1
    dir, = ARGV.map { |a| a == '/' ? a : a.chomp('/')}
    ff = %x[find -E \"#{dir}\" -type f -iregex '.*/.*\\.(#{EXTS.join('|')})$' -print0].split(/\\0/)
    # get CIContext and CIFilter
    cic = CIContext.contextWithSize(5000, 5000)  # let it be large enough
    cif = CIFilter.filterWithName('CIAreaAverage')
    cif.setDefaults
    # retrieve average brightness and hue of images
    hh = {}
    ff.each do |f|
        u = NSURL.fileURLWithPath(f)
        ci = CIImage.imageWithContentsOfURL(u)
        civ = CIVector.vectorWithRect(ci.extent)
        cif.setParameters({'inputImage' => ci, 'inputExtent' => civ})
        ciout = cif.output
        cgout = cic.objc_send(:createCGImage, ciout, :fromRect, ciout.extent)
        colr = NSBitmapImageRep.alloc.initWithCGImage(cgout).colorAtX_y(0, 0)
        hh[f] = { :b => colr.brightnessComponent, :h => colr.hueComponent}
    end
    # sort criteria
    brightness          = lambda { |k| hh[k][:b] }
    hue                 = lambda { |k| hh[k][:h] }
    brightness_and_hue  = lambda { |k| b, h = hh[k].values_at(:b, :h); b * 1e6 + h }
    # print sorted records
    hh.keys.sort_by(&brightness_and_hue).each do |k|
        b, h = hh[k].values_at(:b, :h)
        puts %Q[B=%f\\tH=%f\\t%s] %  [b, h, k]
    end
    EOF"
    -- END OF SCRIPT

  • Sort Order: Natural = Sort by  ;-(

    CR Xi
    SQL 2005
    Under Record Sort Expert I have three (3) groups and a calculated field that is TRIM({Table2.CharacterBasedField}).
    1) When I only have the three (3) groups the sorting apparently is in natural order
    2) When I add the TRIM({Table2.CharacterBasedField}) under the third group and select sort in ascending order I still get the apparent natural order.
    Group 1 is the name of the person (displayed, name of person as a result of the Person'sID (Group 2))
    Group 2 is the Person'sID (Hidden, internally SQL maintained ID)
    Group 3 is the Table1.KeyID (Hidden, internally SQL maintained ID)
    Table 1 and Table 2 are linked via a Left Outer Join.
    What do I need to do to have the sorting done by the calculated (only TRIMmed) CharacterBasedField?
    I'd like for the output to be sorted by name of the person and then their respect CharacterBasedField (like an order #, job # etc.) but the report won't even sort by CharacterBasedField.
    Any ideas?
    TIA

    Groups take precedence over sorts. if you want CharacterBasedField to be next sort after Person then you will need to add it as group2.
    If you want to see report in PersonID order, make that group one and instead of showing ID, show person name by simply adding the name field to group1 header or use the customise group name option in the change group dialog.
    Ian

  • Sort Formula Field

    Hi
    I have a similar issue....
    I have a report that's looking for Turnbacks,Total Trips and Turnback Percent of total trips grouped by Vendor.
    Report Layout
    Date (Group1)
    Vendor (Group2)
    Under group Vendor I have summarized fields...
    Date 20101119
    Vendor Id Sum of Turnbacks T otal Trips Turnback Percent of total Trips
    123 50 100 50%
    456 10 100 10%
    789 100 100 100%
    Date 20101120
    Vendor Id Sum of Turnbacks Total Trips Turnback Percent of total Trips
    123 60 100 60%
    456 20 100 20%
    789 100 100 100%
    I would like to sort the Turnback Percent of total Trips field in descending order. But it does not appear in neither(Group or Record) sort option.
    Any help will be greatly appreciated.
    Thanks!

    Based on the Turnback field (DB value/number) the formula TB assigns a value of  1 or 0. This value is later summed at Vendor group level.
    The percent formual is based on the previous sum value (at vendor group leve) and the total count of trips (at vendor group level).
    for example:
    If the Sum is 20 and the totla trips is 100 then the percent is 20.
    Percent Formula
    sum(turnback, Vendor ID) % Count(Trips, Vendor ID)
    Thanks!
    Edited by: achett13 on Nov 22, 2010 10:02 PM

Maybe you are looking for

  • On click sorting icons lost  in UI table

    Hi All, I want to implement sorting in my UI table. I followed the following steps: 1. Created a context attribute of "TableSorter" type (used TableSorter.java) 2. Created an Action "Sort" and have written the below code in its event wdContext.curren

  • Custom content selection in apple tv 2.0?

    Hi, I was wondering whether it's possible to build a kind of "custom selection" of the itunes content to be shown through ATV. The selection whould be larger than the ATV hard drive space. There's the "Show only the synced items on my Apple TV" check

  • Business Package: company suggestion system

    Hello all, I wonder if there is a Business Package for a company suggestion system?? Thanks for your help. Best Regards, Sandra N.

  • Third Party App Updates....

    I was wondering if it was possible or if there was anything like Apple Software Update for third party apps. By this I mean is there a way to get all the third party installed software such as Tweetie, VLC, Quicken, iHomework, etc. to all check for u

  • How do get adobe flash player on my iPad?

    How do I get adobe flash player on my ipad2?