Sorting Crosstab By Summaerized Fields

Hi,
I have a fairly strightforward crosstab. The data is has RptGroup for rows and has 4 summarized fields
Avg of @ComplianceYN
Count of Command.MRN
StdDev of Command.Persistence
Avg of Command.Persistence
The crosstabs default order is by RptGroup. The user would like to see it sorted by Avg of Command.Persistence.
I can't find any way in the crosstabe object to to this.
Can you help?
Thanks,
Dick Rosenberg

Hi Sastry,
Now I am more confused than ever.
I made another report that was essentially the same as the first report. When I got to the crosstab I thought I would do the same thing you suggested for the first report, create a formula, Average of Persistence, that was average({Command.Persistence}), put that in my crosstab as a column, then go into Group Sort Expert and sort on my formula.
Well it doesn't work and the symptoms are very confusing.
In my first report, after I put the formula Average of Persistence as a column in my crosstab, as you predicted, there were a lot of extra columns in my crosstab. As I recall (this happened a couple of days ago), I deleted one of the new labels from my crosstab and all of the new columns disappeared.
Yet I was able to find the Average of Persistence formula in the Group Sort Expert and when I previewed the report, the crosstab sorted in the same order my chart. So I was happy.
Today I copied the report to a different name (same command) and went about changing the Chart and the crosstab to represent the new grouping (it is the same data but charted and crosstabbed by a field in the command called Team as opposed to the first report which was charted and crostabbed by a field in the command called Reporting group).
I was able to sort the chart easily enough, but I can't sort the crosstab in the order of Average Persistence. So I went back to look at the first report to see what I had done. I discovered that the formula Average of Persistence was not in the columns in the crosstab on the first report (which probably happened when I deleted  all of the fields in the crosstab that appeared when I put in the column ).
Yet the crosstab in the first report still sorts in the correct order, by Average of Persistence.
And, no matter what I do, I can't get the second report to sort that way.
So I feel like I'm back to square 1 - I don't know what I did in the first report to get it to work and I can't get it to work in the second report no matter what I do.
Help!
Thanks,
Dick

Similar Messages

  • I've been deleting the info in the "Sort..." fields, but when I plug my iPod into my computer iTunes repopulates the fields I deleted.  How do I stop it from doing that?

    I've been deleting information I don't want in the "Sort..." fields (like getting rid of "Deluxe Edition" markers, etc.), but when I plug my iPod into my computer iTunes repopulates the fields I deleted.  This only happens for a few artists, and it's the same artists every time this happens.  How do I stop it from doing that?  It makes it measurably harder for me to control the organization of my library.

    Hi donfrommars,
    Welcome to the Apple Support Communities!
    Please use the following article for information and instruction on deleting the U2 album from your devices and account.
    Remove iTunes gift album "Songs of Innocence" from your iTunes music library and purchases
    Have a great day,
    Joe

  • Sorting on a Formula field

    Everytime I try to do a sort on the formula field below, I can't sort on the field.  It doesn't even show the field in the explorer window to sort on.  The formula is below.
    Sum ({fct_CurrentSales.Cases}, {@upc}) /
        (tonumber(Maximum ({vw_dim_Product.CA_MPN_JMelBoxesPerPallet}, {@upc}))) / {Command.Previous Fiscal Month}

    Sorting is done at record level and you're using a sum in your formula as well as a maximum value.  Not sure about what is being done in the {@upc} formula but it may be affecting it as well.
    Look at your user guide and look up the multiple passes CR makes and what is done in each pass.
    (I used to keep a copy of the multiple pass flowchart on the wall above my computer as it contains good information on what can be done and when during the report generation.)
    Sum ({fct_CurrentSales.Cases}, {@upc}) /
    (tonumber(Maximum ({vw_dim_Product.CA_MPN_JMelBoxesPerPallet}, {@upc}))) / {Command.Previous Fiscal Month}

  • Defining sort order using parameter fields

    Post Author: vandersee
    CA Forum: General
    I've created a report, the contents of which is sorted depending on a parameter selected (method used is as described in the help topic entitled "Defining sort order using parameter fields".  Is it possible to vary the Sort Direction (ascending/descending) using parameters also, so that if I choose to sort by field A it will be ascending, but descending if I choose to sort by field B?

    Post Author: V361
    CA Forum: General
    You can create a Parameter {?Sort Order}  make it a string, and add items A to Z and Z to A and a formula and sort the group using the formula.
    Group Expert, select the group, select options, check use a formula as group sort order
    if {?Sort Order} = "A to Z" then crAscendingOrder else crDescendingOrder
    And your group will sort based on what is selected in the parameter.

  • Applying Sorting for the Month Field

    Hi,
    When i apply sort to the month-name field for each quarter(Q1,Q2..), it sorts as 1)February 2)January 3)March..
    Its sorts the month-name field in alphabetical order(F,J,M) not in the usual 1)January 2) February 3)March order..
    To sort this issue i added the numeric field called month with values 1,2,3..
    How to sort the month-name field as January, February???

    And if you're still struggling, [read this|http://blog.davidg.com.au/2011/03/sorting-months-in-webi.html].

  • SORT Not merging similar fields if there are any editable fields in the ALV

    Hi All,
    I have two issues with my OOPS ALV report.
    1) Standard sort is not working :
    Output of the report looks like this
    WBS    TEXT          Period 1  Period 2
    A           Total hours     1         1
    A           Total hours     1         1 
    A           Total COSt     1         1
    A          Total COST     1         1
    My agenda is to calculate sub total of period1 and period 2 based on fields WBS and TEXT, my output should look like
    WBS    TEXT          Period 1  Period 2
    A          Total hours         1           1
                                         1           1
    Total hours                     2           2 ( Sub total )
    A          Total COST        1         1
                                         1         1
    Total COST                    2         2 ( Sub total )
    To achieve this i pass these two fields in the sort table and pass field subtot = 'X' for TEXT field.
    It is working fine, i am getting the sub totals but the WBS field are not grouped( Even though it is a standard functionality).
    my output looks like
    WBS    TEXT          Period 1  Period 2
    A         Total hours   1         1
    A         Total hours   1         1
    Total hours               2         2 ( Sub total )
    A      Total COST      1         1
    A      Total COST      1         1
    Total COST              2         2 ( Sub total )
    I have few editable fields in my output, i came to know this issue is because of the editable fields. have anybody come across the same error.
    Please let me know how to achieve the standard sort ( Merging similar values ) functionality even if the output has editable fields.
    2) IS it possible to get two Grand total based on a field value . In my example , my TEXT field will always have value either  'Total hours' or 'Total COST'
    my output should look like this.
    WBS    TEXT          Period 1  Period 2
    A      Total hours     1         1
                                  1         1
    Total hours(A)          2         2 ( Sub total )
    A      Total COST     1         1
                                  1         1
    Total COST(A)         2         2 ( Sub total )
    B      Total hours      1         1
                                  1         1
    Total hours(B)          2         2 ( Sub total )
    B      Total COST      1         1
                                    1         1
    Total COST(B)           2         2 ( Sub total )
    GRAND TOTAL HOURS    4         4
    GRAND TOTAL COST       4         4.
    Response will be appreciated.
    Thanks & Regards,
    Rajanidhi Rajasekeran
    Edited by: Julius Bussche on Jul 14, 2008 7:39 PM

    Hi
    If I make  the editable field to non editable then sort & cell merge is happening but if I make any of the field as editable then merge is not working shall i request you the solution
    Regards-Sreeni

  • Sort recordset by 2 fields

    I am aware that if you would like to sort records by 2
    fields, you list both fields separated by a comma after ORDER BY
    (i.e. ORDER BY Name, Date)
    With the above code, the only way records will sort by Date
    is if they are identical other than by their date.
    Now what if I would really like to do is first sort records
    that share a common Name value regardless of other field values and
    then sort by Date ( Something like "First ORDER BY Name which
    contains the value of "PC" and then ORDER BY Date DESC")
    Can this be done?

    You can use a CASE statement in the ORDER BY clause.
    "aonefun" <[email protected]> wrote in
    message
    news:g7fvjq$qgs$[email protected]..
    >I am aware that if you would like to sort records by 2
    fields, you list
    >both
    > fields separated by a comma after ORDER BY (i.e. ORDER
    BY Name, Date)
    >
    > With the above code, the only way records will sort by
    Date is if they are
    > identical other than by their date.
    >
    > Now what if I would really like to do is first sort
    records that share a
    > common Name value regardless of other field values and
    then sort by Date (
    > Something like "First ORDER BY Name which contains the
    value of "PC" and
    > then
    > ORDER BY Date DESC")
    >
    > Can this be done?
    >

  • XSLT mapping sorting against an output field

    Hi, all
    I am testing my XSLT mapping. Here is the output message type defintion:
    I want to sort f2 in my xslt mapping. Here is my mapping:
    <?xml version="1.0" encoding="UTF-8" ?>
      <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://fileconversion" xmlns:ns1="http://fileconversion">
        <xsl:template match="/">
          <ns1:TESTOUTPUT_MT>
            <Msg>
            <xsl:for-each select="ns0:TESTDATA_MT/Trans/Detail">
            <xsl:sort select="Transaction/Data/f2" />
              <Transaction>
                <Data>
                  <f1>
                    <xsl:value-of select="PERNR" />
                  </f1>
                  <f2>
                    <xsl:value-of select="POSITION" />
                  </f2>
                  <f3>
                    <xsl:value-of select="TEL" />
                  </f3>
                  <f4>
                    <xsl:value-of select="concat(concat(STREET,' '),CITY)" />
                  </f4>
                </Data>
              </Transaction>
                </xsl:for-each>
            </Msg>
          </ns1:TESTOUTPUT_MT>
        </xsl:template>
      </xsl:stylesheet>
    The sorting did not execute on field "f2" and the data is in the same order as the input.
    Note that I can do <xsl:sort select="POSITION " /> instead and it will work. But I am trying to test on sorting against output field as this is the requirement in the real interface.
    What did I do wrong? Please advise.
    Thanks,
    Jonathan.

    Hi Jon - You can sort the source values. If you use "sort select="Transaction/Data/f2" i don't think it has got some effect.
    You can use <xsl:sort select="POSITION " /> Any issues with that?
    Just to add - when you map Position with F2... how does the sorting will be different when you execute it on F2 or Position?
    If you are doing some calculation for F2 then should handle the Sort function accordingly..

  • CM21/cm25 sorting of user defined field in table area

    Hallo,
    I implemeted the field MARC-MATGR in the table area of the CM21 with user exit CYPP0005 and now I'm trying to use the user exit CYPP0002 for sorting in order of this field like explained in oss note 605217.
    I implemented the coding like shown in the examples of the user exits but sorting is not workiing.
    By debugging the user exit I'm not shure where I can change the internal tables to get a result sorted by this "MARC-MATGR".
    Perhaps someone can help me giving me an hint how the user exit is working and what has to be changed ?
    Thanks a lot in advance,
    Volker

    Dear ,
    I have posted a similar kind of reply in one of the thread  which may help u defining the User Defined Tabel /Filed .Just check this Out :
    For cm25/CM21 : Assuming that you have all the other set up for Capacity Requirement in place , please note the belwo steps for layout design for CM25 OR cm21 or cm22( all you will be used same overall profile )
    1.Make sure that you have proper Overall profile defined in OPD0-Define Overall profile .Here u will define Time Profile , Startegy prfoile . Lay out Profile etc .
    2.To paint your layout your soultion is to Goto -CY38-Pop down the menu -Select the Lay out Key which have been used as lay out -Goto Change Mode (Pencil symbol)-Now you will find the fields are high ligheted as per CM25 dipaly in a sequnce -You can un chekcde the Filed like Operation , Operation text , Setup what ever you do not want to show in Order Pool and Hit SAVE butotn and come back .
    CM25 --> Settings --> Display Profiles --> Planning tab.profile --> I01 --> Layout ID ( Example : 'SAPSFCLA05') which is Main Capacity Lay out id .
    If you goto CY38-Pop down the menu -You will find Main Capcitity Lay out Id : Example SAPSFCAS01 -Enter this lay out and chenage accordingly as I have explained in above
    Once you save this , then go back to CM25 and execute with coupe of work centres to check how is the order pool looks now .
    Refer this threade for Layout Id and option which u may need for CM25 front end
    Exception messages in CM21 or CM25
    I hope this should work
    Regards

  • Can you sort a multi value field in descending order on a BC?

    Hi
    We have a date field which is a multivalue field on our Enrolment BC. The field comes from our Attendance BC. The Enrolment BC has a one to many relationship with an Attendance BC.
    We would like to sort this date in descending order for use on the Enrolment BC. We tried this on the link using the associated list sort spec. However this did not work.
    The only way we could get the multi value field to sort by descending order on the Enrolment BC was to add a sort spec on the Attendance BC. That is Date (DESC).
    Is there any other to do this using configuration? We don't want to add a sort spec on the Attendance BC to do this. At the moment it looks we will need to use script on the Enrolment BC.
    Thanks for you help,
    Tim

    That is a good suggestion. It looks like we already have a couple of cloned "Attendance" BC's used by workflow / interfaces so maybe I can use one of these. Thanks!

  • Is it possible to sort document using Description field?

    In a specific folder you can sort documents by "Name", "Size" and "Last modified" fields. does anyone know how to enable the sort by "Description"?
    Thanks,
    Nadia

    I will give you 2 answers since I am not sure exactly how your report runs.
    Lets say your users choose a couple parameters to limit certain columns by in your where clause. In this case, you would want to just create a user parameter, and use that parameter in the where clause.
    select col
    from table
    where job_id = :P_JOB_ID and
    start_date between :P_START_DATE and :P_END_DATEPretty simple. Now here is how I would do it if those are optional parameters, and the user could enter a value, or could leave all blank.
    select col
    from table
    where job_id = nvl(:P_JOB_ID, job_id) and
    start_date between nvl(:P_START_DATE, start_date) and
    nvl(:P_END_DATE, end_date)If its null, it will set the column equal to each other, and will return all the rows (good little trick).
    The other case is if you need a different select/where clause entirely based on what the user sends in. For example, lets say you have 2 entirely different queries based on a certain parameter. Then you'd want to use lexical parameters and an after parameter trigger.
    I think you are looking for the first scenario, so try that and post back if you are looking for something different

  • Customizing the sort order of a field

    Hi,
    I would like to sort the order of a group on values within a field rather than in eg. ascending order
    eg.
    I would like to sort the group by values in the Status field, so if the Status values are 'Open', 'Closed', 'Unresolvable' then I would like to order the data by
    Status: Open
    Status: Unresolveable
    Status: Closed
    How would I do this?
    Thanks

    Yes,
    We can do it
    http://winrichman.blogspot.com/2009/09/custom-dynamic-sort-in-bi-publisher.html
    <?sort:(number(status='Open') * 1) + (number(status='Unresolveable') * 2) + (number(status='Closed') * 3);'ascending';data-type='number'?>Put this after the for-each statement
    do change the status to the element name in you xml.

  • Sort+logical database using field group and extract

    Hi Folks,
    I have a program which is using Logical database concept and creating a file on application server as below.
    SORT BY
        reguh-zbukr                        "Zahlender Buchungskreis
        reguh-rzawe                        "Payment method
        reguh-ubnks                        "Bankland unserer Bank
        reguh-ubnky                        "Bankkey zur Übersortierung
        reguh-ubnkl                        "Bankleitzahl unserer Bank
        reguh-ubknt                        "Kontonummer bei unserer Bank
        payment_form                       "Brazil: CC, DOC or OP
        regud-xeinz                        "X - Lastschrift
        reguh-zbnks                        "Bankland Zahlungsempfänger
        reguh-zbnky                        "Bankkey zur Übersortierung
        reguh-zbnkl                        "Bankleitzahl Zahlungsempfänger
        reguh-zbnkn                        "Bank-Ktonummer Zahlungsempfänger
        reguh-lifnr                        "Kreditorennummer
        reguh-kunnr                        "Debitorennummer
        reguh-empfg                        "Zahlungsempfänger CPD
        reguh-vblnr                        "Zahlungsbelegnummer
        regup-belnr.  
    LOOP.
    AT NEW reguh-rzawe
    PERFORM store_on_file USING j_1bh1.
    ENDAT
    AT NEW reguh-ubnkl
    PERFORM store_on_file USING j_1bh2.
    ENDAT
    AT NEW reguh-ubnkt
    PERFORM store_on_file USING j_1bh2.
    ENDAT
    AT NEW VBLNR
    PERFORM store_on_file USING j_1bh3.
    AT DATEN
    PERFORM store_on_file USING j_1bh4.
    ENDAT.
    ENDLOOP.
    FORM store_on_file USING daten.
      IF hlp_temse CA par_dtyp.            "Temse
        PERFORM temse_schreiben USING daten.
      ELSE.
        TRANSFER daten TO g_name.
      ENDIF.
    ENDFORM.
    Is Sorting concept different when it comes to logical databases and field groups ?
    I had added a new field in the sort reguh-rzawe.I think due to that it is getting into AT NEW UBNKL and AT NEW UBKNT even though those details are same for the payment methods in the payment run.Even though the house bank number and account number is same for all the payment methods it is getting into AT NEW UBNKL and AT NEW UBKNT for every new payment method in the iteration.
    vblnr-1
    rzawe- A
    ubnkl-12345
    ubnkt-45678
    vblnr-2
    rzawe- A
    ubnkl-12345
    ubnkt-45678
    vblnr-3
    rzawe- B
    ubnkl-12345
    ubnkt-45678
    vblnr-4
    rzawe- B
    ubnkl-12345
    ubnkt-45678
    Can anyone here throw some light on this.
    Thanks,
    K.Kiran.

    Read the documentation for the at-new process.  As I recall the at-new considers the field named, and all the fields to the left of that in the table.  With that in mind, look at how your logic will work.  This could result in more, or fewer, breaks than intended(fewer if, for instance, a field to the left was deleted).

  • Make Sort Key a required Field in Vendor Master & default values in it

    Dear Experts ,
    I need to make the sort key field  a required entry in vendor master .
    Also i want the system to default a particular value in this field .
    How can i achieve it ?
    Regards
    Anis

    Hi,
    Sort Key can be made as mandatory through SPRO settings.
    SPRO > Financial Accounting New > Accounts receivable and accounts payable > vendor accounts > Master Data > Preparations for creating vendor master data > Define Account groups with screen layout > Double click on your account group > Double Click on company code data > Double clcik on account management  > Make the field sort key as required entry.
    Regards,
    Prabu

  • Insert into table irrespective of sorting order of a field

    Hi All,
    I am not able to insert data in the data base table(YY...) as it is in the internal table.
    I do have data in following order in the internal table :
    I am simply using statement insert (database table) from (wa) in the loop...endloop.
    001   0002  2008  0000494219 001   0000494219          254.02  W4136      Keller & Kalmbach Widex
    001   0002  2008  0000198630 001   0000494219          100.10  W4136      Keller & Kalmbach Widex
    001   0002  2008  0000198418 001   0000494219           39.57  W4136       Keller & Kalmbach Widex
    001   0002  2008  0000198419 001   0000494219           89.93  W4136       Keller & Kalmbach Widex
    but when data is inserted in the table it appears as below:
    Means system is sorting the data in ascending order based on 4th column which is document number.
    001   0002  2008  0000198418 001   0000494219           39.57  W4136       Keller & Kalmbach Widex
    001   0002  2008  0000198419 001   0000494219           89.93  W4136       Keller & Kalmbach Widex 001   0002  2008  0000198630 001   0000494219          100.10  W4136      Keller & Kalmbach Widex 001   0002  2008  0000494219 001   0000494219          254.02  W4136      Keller & Kalmbach Widex
    How can I keep the sequence of data as it is in the internal table when I insert them into data base table.
    Thanks,
    Mark

    Assign one more field (let's say SEQ_NO). In your loop keep on incrementing this field and insert in database.
    You have to add this field as first primary key in your database table also.
    Hence you data will look like
    1 001 0002 2008 0000494219 001 0000494219 254.02 W4136 Keller & Kalmbach Widex
    2 001 0002 2008 0000198630 001 0000494219 100.10 W4136 Keller & Kalmbach Widex
    3 001 0002 2008 0000198418 001 0000494219 39.57 W4136 Keller & Kalmbach Widex
    4 001 0002 2008 0000198419 001 0000494219 89.93 W4136 Keller & Kalmbach Widex
    Regards,
    Mohaiyuddin

Maybe you are looking for

  • My 2009 mac mini suddenly stopped accepting any, and all discs.Do I need a new hard drive?

    my 2009 mac mini suddenly stopped accepting all discs.  Any disk put in, will eject itself within 3 to 4 seconds.  do I need a new hard drive, or is there something simple I an do to fis this?

  • Speedstep-centrino in beyond doesn't work

    Hi, I have Arch running on an inspiron 9400 with a core duo. If I boot into the normal arch kernel, cpu scaling works fine. But, in beyond it keeps saying: FATAL: Error inserting speedstep_centrino (location of *.ko file): No such device when I try t

  • DESKTOP ITEMS NOT DELETING

    I CAN'T DELETE THE FOLDERS AND ITEMS IN MY MAC BOOK PRO WHENEVER I CLICK MOVE TO TRASH IT ASKS ME THE PASSWORD WHEN I ENTER THE PASSWORD I CAN ONLY HEAR THE SOUND BUT THE FOLDER DOES NOT GO

  • Calulate for division in Acrobat X

    How do I calulate for division in Acrobat X? I do not know javascript and it appears that for simple division this might be what I have to figure out--fast. Thank you.

  • Photoshop CC quits after starting, when used as a trial - works fine

    Hello, I've purchased Photoshop and Lightroom bundle (combined deal for 12.99 Eur/Month), the problem is, whenever I try to run photoshop - it immediately quits after starting. Tried logging in and out of Creative Cloud with no luck. Reinstalling pho