Sort formula format

Hi,
I need help on system action "Sort rows". What format the field "sort formula" has?
Edited by: Eugene Balakhonov on Apr 15, 2008 3:17 PM

Hi,
the formula is of type string, and it represents the sorting order.
the expression is a string expression that is evaluated against each object in turn and returns the string value the defines the position of the object in the sorting order.
after passing on all the dataset's objects the infoset cursor points on the first object in the newly sorted infoset.
so far the technical stuff..
for example:
for objects:
  FIRST_NAME  |  LAST_NAME
1 Kenny                Smith
2 John                   Smith
3 George               Bush
SORT(@LAST_NAME & "," & @FIRST_NAME)
this will sort all the object in lexicographic order, i.e. Smith, John before Smith, Kenny and After Bush, George.
Regards,

Similar Messages

  • Line graph date sorting and formatting

    Hi Gurus
    We've recently upgraded to 11.1.1.7 and noticed that our Publisher line charts with date on the x-axis are no longer sorting correctly i.e. May comes before March. The reason for this is because in <11.1.1.7 we have a formatted date mask (to_char) in our data model but sorted by the underlying canonical date which worked. Now in 11.1.1.7 it is no longer sorting by the data model sort but by the formatted date string therefore numeric values of 30 April sorted after 1 May.
    We have tried a number of options to resolve:
    1. using the canonical date and sorting on that corrects the sort problem but the default formatting used in long YYYY-MM-DDT00:00:00-00:00 and not readable as our chart is showing daily totals. Changing to time-series chart can allow you to format the date but see problem 2 next...
    2. Time series = yes doesn't display the chart if we have a number of entities in our series i.e. multiple lines and the interactive viewer shows a red error icon. I think this may be due to the fact that our date range is not continuous ie we have a sparse data set.
    3. Workaround we used was a bar chart (our users preference is line charts) with time series = false but the date format is still long.
    Any advice / suggestions would be helpful.
    Thanks
    Nick.

    for #1: numbers does what is called a "stable" sort. Meaning that the previous sort order is preserved. i.e. do your sort in reverse order. Amount, then name, then date. Just did it with sample data and it was perfect. It keeps them in the original order, so if there is a match in name after you sort, you should see the amount still in the proper order.
    #2: What in your formula isnt working? I just made a formula that did math on the columns to the left, sorted and it worked. Sorted by static data columns and the formula column. I know it was broken originally, years ago, but it seems to be working correctly now, at least in my quick test. You might have an issue if you are using formulas that refer to data on other rows or tables.
    #3: yeah formatting can be a pain. But it is easier to do in the desktop program. No, you cannot get it for windows, sorry. If the formatting the only thing you need to do on the desktop side, then i dont see much tying you to it. I do 90% or more on the ipad and iphone now.
    Jason

  • Sorting and formatting in Numbers with iPad 2

    I am going to send feedback to Apple about this, but I wanted to let the community help, if I am incorrect and these things are actually possible.
    1. I can only sort by one column. I want to be able to create a sort priority. For example, I want to sort four columns first by date, then by person's name, then by $ amount. Not possible on mobile Numbers.
    2. I want to choose to sort only specific columns. I have a formula set up in column E that sums the cells to the left in columns C and D. My formulas break every time I sort.
    3. When I copy and paste from one Numbers spreadsheet into another, the formatting from the copied sheet gets put into the pasted sheet. I want to be able to "paste format" like you can in Excel. A sort-of workaround for this is to select the cell that has the correct format (this cell has to be directly above the cells that have the wrong formatting), pull the blue select box down the column to include the cells that have the wrong formatting, click the paintbrush at the top right corner, then choose whatever formatting you need--the format that is shown as selected will be the format of the first-selected cell. You have to do this for every individual column, however. And my columns are very long -- hundreds of cells long (I'm keeping a year's worth of data).
    Am I correct in that if I buy a Mac computer and Numbers for the computer, I would be able to do these edits on the Mac, and then have them show up on my iPad when it synchs with iCloud? I can't buy Numbers for a PC, can I? Being tied to a computer isn't what I want--I wanted to be able to do everything on my mobile device.
    Thanks!

    for #1: numbers does what is called a "stable" sort. Meaning that the previous sort order is preserved. i.e. do your sort in reverse order. Amount, then name, then date. Just did it with sample data and it was perfect. It keeps them in the original order, so if there is a match in name after you sort, you should see the amount still in the proper order.
    #2: What in your formula isnt working? I just made a formula that did math on the columns to the left, sorted and it worked. Sorted by static data columns and the formula column. I know it was broken originally, years ago, but it seems to be working correctly now, at least in my quick test. You might have an issue if you are using formulas that refer to data on other rows or tables.
    #3: yeah formatting can be a pain. But it is easier to do in the desktop program. No, you cannot get it for windows, sorry. If the formatting the only thing you need to do on the desktop side, then i dont see much tying you to it. I do 90% or more on the ipad and iphone now.
    Jason

  • Sort Date format in Oracle XML Publisher

    Hi All,
    I have a requirement like trx_date sort. i have taken trx_date in dd-mon-yyyy format. now i given sort option like this..
    <?for-each:G_TRX_ORDER_NUMBER?><?sort:TRANSACTION_TYPE?><?sort:DUE_DATE;'ascending';data-type=date?> <?sort:TRX_NUMBER?>
    now i have 3 dates
    07-NOV-10
    20-MAY-11
    20-DEC-10
    using above sort option.. this dates are not coming as per the ascending order.
    Can any one tell me what i have to ?
    Thanks

    What is your application release?
    Does the sort work for other data types?
    What if you change "<?sort:DUE_DATE;'ascending';data-type=date?>" to "<?sort:DUE_DATE;'ascending';data-type='date'?>", does it make any difference?
    Few examples about the sort can be found in these docs/links.
    How to Group Data Dynamically at Runtime in a BI/XML Publisher RTF Template? [ID 1062816.1]
    Sorting Data In eText Template [ID 1263511.1]
    Oracle XML Publisher User's Guide
    http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115xdoug.zip
    Thanks,
    Hussein

  • 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

  • Sort vertical format images

    Does anyone know how to sort images in Lightroom by their format shape, i.e. vertical or landscape?
    Hope you can help
    Regards
    John

    Silly me. Didn't spot that in the Sort options.
    Thanks for a quick reply, though.
    Regards
    John

  • Correct formula format in curve fit express vi

    I'm trying to implement this formula (see attached jpg) in the Curve Fit Express VI but I can't seem to get it into the correct format (format checker light stays red).  It works ok in the Formula Express VI but not here.  Is this correct?   a*(1-exp(-(b*x)**c))
    Solved!
    Go to Solution.
    Attachments:
    weibull.jpg ‏3 KB

    They have a terrible time making up their mind, in this case you need to use '^' for exponentiation instead of '**'.

  • Excel formulas/formatting SV Hyp Essbase dimensionality

    Hello. I am building a large report in Excel/Smart View Essbase. I am having issues with formulas that I have placed within dimension cells. For example, I want to create an IF statement formula to select a certain member for a Financial Element depending on the type of report the user needs to retrieve. When I have formulas in the dimension cells, upon refresh, I am losing the formatting and in some cases the entire dimension in the cells will disappear. Obviously, this is causing a lot of re-work. I am also building this report for others to use, and want to provide a seamless experience for them. I can't see a way to attach screen prints of my SV opton settings, as I am assuming the answer is somewhere in there.
    Thank you.

    Options -> Formatting -> Use Excel Formatting
    Also check preserve formulas in member options

  • A sort of formatting problem

    I'm having real trouble with ftp and uploading to my host. I am getting the site up there and can verify this with Cyberduck but when I look at the site my fonts have reverted to Times New Roman and my pictures are absent but for that annoying tiny blue question mark in the space where they should be. I have tried all sorts of things with the iweb publishing settings without any luck. The correct layout is there and text reads correctly but that's it. Does anyone have any pointers? I can't help thinking that it's something very fundamental that I'm missing. Any help would be appreciated. I have tried stripping everything back to one page, no links, no navigation, just a couple of titles one picture and a few lines of text, but still no joy.
    Thanks
    Matt

    Sorry Tom, my mistake the home.html file is not in the home_file folder, simply underneath it. Sorry to waste your time, it was too late at night and I was too cross.
    Roddy: When I publish to a local folder I end up with exactly as you describe and also a file called assets.http/--mattsampsonphotography.com.plist outside of the folder with the name of the website.I'm not sure if this is important or not.
    All I have to work with is Cyberduck which I have been assuming lets me see exactly what is on my part of the host server. Using Cyberduck I can create another folder which I call mattswebsitefolder and into that in Cyberduck I have dragged the locally published folder generated from iWeb called mattsampsonphotography... containing the six files. Could you clarify how I point the domain name at the index.html file inside mattsampsonphotography which is now in turn inside mattswebsitefolder. If I open URL from Cyberduck it works and I see the page, ( a small triumph), but if I try from Safari I get a white page and this message... Forbidden You don't have permission to access / on this server?
    The reason for the single page is nothing clever, it's simply so I can practice getting this stuff to work. It's not even a finished page, just contains the sort of elements I intend to use.

  • SSRS Chart to format the date in ascending order

    Hi All;
    I need to sort the dates on Horizontal axis in ascending order
    hence in category group - sorting - i had used teh below formula
    =format(CDate(Fields!goalstartdateValue.Value),"MMM yyyy")
    but it still displays the date as below
    Any help much appreciated
    Thanks
    Pradnya07

    Does it work if you use
    CDate(Fields!goalstartdateValue.Value)
    instead.

  • Cannot format hard drive and do a clean install

    I'm in a pretty big mess right now.  I was using boot camp with lion and Windows 7 no problem and I wanted to edit the sizes of the partions.  It didnt go so well and I ended up losing both operating systems.  Now the big problem is when I boot up from the recovery partion I cannot do any sort of formating from the disk utility, it always give me some sort of error.  When I try to install lion via web there is no partion that I can Install it to.  I can install Windows no problem from a USB drive whcih I have done already.  When managing the disk in windows I see 2 of the windows partions, the mac recovery partion, and an 80 GB partition that I can format but I cannot do anything else with.  I dont have any images or recovery devices other than the recovery partition.  I need some advice on how to get the drive back to mac format so I can re install lion.

    From the disk utility every time I would try to format the partitions or resize anything it would say cannot unmount disk and there was another error I cant remember.  I think I'm on the right track though.  What I've managed to do so far is with the disk utility on the recovery partition, I formated a usb drive and then installed Lion on that drive.  The drive is painfully slow but it seems to be working.  Where I am at now is I have booted from the the flash drive and managed to Format the Hard drive back to mac format and I am now creating an image of the USB stick that I can hopfully copy to the hard drive.  Creating the image is taking a while due to the crappy transfer rate of the USB stick.
    If you have any suggestions of where to go next or what to do I would appreciate it.

  • How do I Apply a Particular Format to cells using the IFBLANK function?

    I have an excel summary tab that copies information from other tabs referencing the cost of a product (guide price and actual price).
    I've set a function on the summary tab, so that if the "actual price" cell (located on the pricing tab) is filled then this is carried over to the summary tab. If it's not, then it uses the guide
    price (from the pricing tab).
    CODE on SUMMARY PAGE
    =SUM(IF(ISBLANK('Pricing '!S14), 'Pricing '!O14, 'Pricing 
    '!S14))
    This is roughly how the data looks on the summary tab. Some of these prices are from the "guide price" cells, and some have been overwritten
    by the "actual price cells" being populated. However there's no way to tell at the moment which are being used as there's no formatting.
    ITEM 1 £0.40
    ITEM 2 £0.45
    ITEM 3 £0.35
    I need to add some sort of formatting (preferably the guide to be grey and the actual to be green and bold) to the summary page prices, so it's clear whether the guide price or the actual price is being pulled
    from the pricing page.
    Hoping someone can help me here!
    ThanksRoxanne

    Hi Roxanne,
    Thank you for posting in the MSDN Forum.
    Since the issue is more relate to the feature of Excel, I'd like to move it to Excel IT pro forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Best regards
    Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HT201250 How to recover iPhoto Library after format of hard drive?

    I've recently reinstalled Lion onto my hard drive but I forgot to backup my iPhoto library. Is there any way of recovering this library? I also have an external hard drive that had Time Machine Backups but that hard drive has since gone through formats as well. Any help will be greatly appreciated. Thank you

    SOLUTION : iPhoto folder recovered after formatting hard drive by mistake.
    I was able for recover my iPhoto library ( intact ) after formatting the hard drive by mistake.
    On top of that I formatted it in FAT32 format. My iPhoto folder was huge 100GB with file and movies of all sort of formats. I kept it on a secondary hard drive of 500 GB. one day I was formatting flash drive for somebody which was 500Mb, seems similar to my 500GB and I formatted my hard drive by mistake. I realized the mistake a week after the person called me and said there is nothing in flash disk and I find a single file on my hard drive. Needless to say the earth disappeared underneath me. All my pictures for 10 years , 8000 thousand of them, cherished memories all gone. But was I determined to find them back and I know they are intact somewhere. My biggest fear was that formatting on MS-dos format might have really deleted them , but they were there. and here is how I got them back.
    First I tried the Data recuse 3 software. I got the photos back,  but they were all jumbled up. Long numerical file names and original dates were gone. No way I could sort it out back to the way it was before . So my target was to recover the iPhoto folder intact.
    - I bought an external hard drive with 1tb space to retrieve the data.
    - The software which did the miraculous job is called  " STELLAR PHOENIX MAC DATA RECOVERY" .
    - I ran a deep scan all night and came up with many volumes.  volume-1 was the MS dos , volume 2 was a mac system,
    - I tried MS dos volume first and there was nothing on it.
    - I tried the 2 volume with mac system. It got all my files and some other system file.
    - I could see the iPhoto folder and click on that only to recover. After that I went for my doc and other files later.
    - It took hours to retrieve my iPhoto folder intact, The folder size was right and file were there in master folder.
    - I checked in FINDER , opening iPhoto with "show content " and all my picture file were there with original date.
    - BUT when tried opening it in iPhoto , there was nothing. it keep showing the wait icon and nothing shows up. Empty iPhoto.
    - I tired starting iPhoto , holding command -option and tried building and repairing database, nothing worked.
    - Then I got this software " iPhoto library manager" .
    - downloaded, installed it and pointed it towards my iPhoto folder.
    - It asked for space to rebuild a new iPhoto library with existing picture and folder.
    I had another external hard drive , I used it to make a rebuild  iPhoto library.
    and there I GOT IT. only took three night of pain.
    IMPORTANT:
    I never touched my original formatted hard drive. Don't write anything on it until you are sure you have recovered everything. open and see files with your own eyes.
    - I recovered the iPhoto on another hard drive and then built it on another hard drive . Yes its pain in the neck but well worth fixing your stupid mistake of not making a back up in the first place.
    I hope this helps all who are looking for iPhoto recovery and their lovely memories.

  • Formula in gui

    This program runs except for the "for"loop. Program is supposed to compound quarterly interest and output yearnumber(incrementing up to 20), amount of principal at beginning of year, interest earned, and principal at end of year. I have worked hard on this and it is due today, and so far the professor is awarding me a 20 for my effort. Can anyone please help?
    //PROGRAM NAME:  mutualfund
    //PROGRAMMER'S NAME:  Rebecca Thompson
    //DATE:  February 21, 2005
    //PURPOSE:  Calculate compound interest
    import javax.swing.*;
    import BreezySwing.*;
    public class mutualfund extends GBFrame {
       // Declare variables for the window objects
       private JLabel       interestLabel;
       private JLabel         yearsLabel;
       private JLabel       principalLabel;
       private DoubleField interestField;
       private DoubleField principalField;
       private DoubleField yearsField;
       private JButton      calcButton;
       private JTextArea    output;
       // Define the other instance variables
       private double  totalYearsIn;        //The years in fund
       private double  totalBegPrincipal;  //The principal at beginning of each quarter
       private double totalInterestEarn;
       private double totalEndPrincipal;
       // Constructor
       public mutualfund(){
          // Define table heading line
          String header = Format.justify('l', "Years In", 15) +
                          Format.justify('r', "Interest Earned", 15) +
                          Format.justify('r', "Beg. Principal", 20) +
                          Format.justify('r', "End Principal", 20) + "\n";
          // Instantiate the window objects
           interestLabel= addLabel       ("Interest Rate"   ,1,1,1,1);
          principalLabel   = addLabel("Principal Amount $" ,1,2,1,1);
          yearsLabel   = addLabel       ("Years In"        ,1,3,3,1);
           interestField=addDoubleField(0                   ,2,1,1,1);
          principalField = addDoubleField (0               ,2,2,1,1);
          yearsField=   addDoubleField  (0                 ,2,3,1,1);
          calcButton  = addButton      ("Calculate "        ,3,1,1,1);
          output       = addTextArea    (header            ,4,1,3,4);
          // Disable the text area
          // Set the focus to principal field.
          output.setEditable(false);
          principalField.requestFocus();
          // Initialize the totals to 0.
          totalYearsIn = 0;
          totalBegPrincipal = 0;
          totalInterestEarn=0;
          totalEndPrincipal=0;
       // Respond to the command buttons
       public void buttonClicked (JButton buttonObj){
          if (buttonObj == calcButton){
             processInputs();
             displayNumbers (totalYearsIn, totalBegPrincipal, totalInterestEarn, totalEndPrincipal);
          }else{
             calcButton.setEnabled(true);      //
       // Read the  user inputs, compute the formula, format and display the
       // totals.
       private void processInputs(){
          // Declare the local variables
          double years=0;
          double begPrin=0;
          double iRate=0;
          double yrlyPrincipal=0;
          double currentBalance = 0;
           begPrin = principalField.getNumber();
           System.out.println(begPrin);
           years = yearsField.getNumber();
           System.out.println(years);
           iRate = interestField.getNumber();
    totalBegPrincipal = begPrin+begPrin;
    System.out.println(totalBegPrincipal);
    /* This section is commented out because it causes the program not to compile.
    Without it the program compiles.  I need help fitting it all together!
          // Calculate the formula.
          for (years = 1; years <=yearsField; ++years){
               totalYearsIn = years;
               totalInterestEarn = begPrin(1+iRate/4);
               totalBegPrincipal = totalBegPrin + totalInterestEarned;
               totalEndPrincipal = totalBegPrincipal * years;
                years = years++;
       // Format for text area.
       private void displayNumbers ( double num1, double num2, double num3, double num4){
          String numberLine = Format.justify ('r', num1, 15, 2) +
                              Format.justify ('r', num2, 15, 2) +
                              Format.justify ('r', num3, 15, 2) +
                              Format.justify ('r', num4,  15,2);
                                        output.append (numberLine + "\n");
       // Display dashes just in case
       private void displayDashes(){
         String dashLine =
                            Format.justify ('r', "----------", 15) +
                            Format.justify ('r', "----------", 15);
          output.append (dashLine + "\n");
    //main
       public static void main (String[] args){
          mutualfund theGUI = new mutualfund();
          theGUI.setSize (550, 425);
          theGUI.setVisible (true);
    }

    What I was trying to do was read the value from the gui field, and then assign that value to a local variable, and then use the local variable within the loop. ie
       double begPrin=0;   this is a local variable
          double iRate=0;
          double yrlyPrincipal=0;
          double currentBalance = 0;
           begPrin = principalField.getNumber();   here is where I read the value from the field    [    /code]
    then below here I used the local variable in the formula.  What is the right way?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to format a form with adf

    Hi,
    I want to format an adf form like this :
    http://dl.dropbox.com/u/33421977/adf_form.PNG
    To do this I have used af:panelDashboard and af:panelBox with af:panelFormLayout inside.
    Now I don't want to use panelBox anymore, but I don't know how to achieve this without panelDashboard/panelBox.
    What is th best aproach to do this? Can you send me some links which explain how to format a form with adf?
    Thanks.

    Is just a question of style. In the real application this form is included in another panelBox. So it looks too... I don't know how to say it... too heavy?
    In fact I don't want to see these panelBoxe's borders. Maybe I have just to change the style of these boxes? Do you know if it is possible?
    But more generally, what is the right way to format adf forms? Can I achieve this sort of formatting just using panelFormLayout?

Maybe you are looking for

  • What are setup tables and why do you need to run it

    Hello Gurus, I know the steps for setting up the LO cockpit exactors. My question is what are the parameters that you feed into the Setup table filling screen --- like the doc numbers, start date and end date. Why do we have to run the setup tables?

  • FM posting date issue in extended classic

    We are experiencing issue with SRM deriving incorrect posting period when PO changes are made. We are in extended classic scenario with two FM periods open across fiscal years. PO changes  "No further confirmation" and "No further Invoice" from "No"

  • Studdering... buffer slower than movie

    I have employed two different methods to embed an flv movie in webpage, but both result in studdering because the movie catches up to the buffer.   I can't figure out what is wrong... is the frame of 30fps rate too high?  is my method of embedding th

  • Why won't these files run on my Archlinux?

    I wasn't really sure which category to post this in. Anyway I'm trying to run the files in the bin/ directory of the archive I've uploaded here: http://www.filedropper.com/jaglinuxtools On Archlinux all I get is: bash: ./aln: cannot execute binary fi

  • Report Editing Opens and Closes by itself not allowing to edit.

    Hello Everyone, I notice an issue with my SCCM 2012 R2 when trying to edit a report. When I right click on a report and select EDIT. Two windows pops up and closes in a blink of an eye. Bellow is a screenshot of these two windows that comes up. Conti