Sort Values of Day

Hi All,
i have Day column where i get day names as Mon Day to Sun Day, but when they are not in sort Order from Monday to Sunday... i am getting as in gigag saturday thursday monaday... in this order. how can i get sort these columns in Subject area so that even though i create n no.of reports i can get sot day names in all reports.
Can some one help me...
Thanks
Manu!!

Manu wrote:
Hi All,
i have Day column where i get day names as Mon Day to Sun Day, but when they are not in sort Order from Monday to Sunday... i am getting as in gigag saturday thursday monaday... in this order. how can i get sort these columns in Subject area so that even though i create n no.of reports i can get sot day names in all reports.
Can some one help me...
Thanks
Manu!!Manu, I understand that English may not be your first language for you (and for many others as well), but that just means it is more important to make sure you proof what you write. Unfortunately, because this is a free forum, if people have a hard time understanding your question, they may just skip it. You spell "Monday" two different ways (Mon Day and monaday), you spelled "sort" correctly in the Subject line and in two different places, but then spelled it "sot" at the end of the sentence. Finally, I'm not sure your understanding of when to capitalize a word, but at the very least, capitalize the first word of a new sentence. It helps to when you have completed your thought and are starting a new one. This is not a criticism, just a way to help you get a better response from others. :) (I think one of the words you meant to write was "zigzag" not "gigag," but I may be wrong.)
As far as your question/issue:
Sorting all depends on the type of column you have. Since you have a CHAR column, sorting will be alphabetical, not the logical way you would do it by when the day actually occurs in the week. To sort the way you want, you basically have to "convert" the column to way that putting the "sorting" on would do it the way you expect.
If you have a column that has values "Monday, Tuesday, Wednesday...," then get another instance of this column, click on the fx button, and create a BINS out of this.
When the value is Monday, call it 01, if it is Tuesday, call it 02, etc.
Now sort this column. Put it at the beginning of your Table and hide it. If you have a pivot table, put it at the beginning of the Rows section, sort it and hide it.
This is how you can do it.

Similar Messages

  • How to display the sort value in the selection screen in the report title

    Dear All,
    How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
    Good day,
    Thanks and regards
    Arun S

    Hi Arun,
    Try this.
    1, Set one dynamic parameter,
    2, Drag and drop that parameter into  your report title.
    3, Pass the value(sort value) dynamically from your application,
    4, Cheers..
    Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then  set the data source from CR designer. and darg and drop that data column into the report.
    Hope this will work,
    Regards,
    Salah
    Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM

  • Get the values from Day 1 of the Month

    Hi Friends,
    I have a requirement in which I have to Get the values from Day 1 of the Month.
    Ex : If I enter 19 - 07 - 2007.......the report should display Values from 01 - 07 - 2007.
    How to Code ?
    Please provide the Code.
    Thank you.

    Hello ,
              Check this code,
    DATA: test_datum1      LIKE sy-datum,
               test_datum2      LIKE sy-datum.
    WHEN 'TEST1'.
              IF i_step = 2.
          LOOP AT i_t_var_range INTO loc_var_range
            WHERE vnam = 'TEST2'.
            test_datum1      = loc_var_range-low.
        CONCATENATE test_datum1(6) '01' INTO  test_datum2.
        CLEAR l_s_range.
        l_s_range-low   = test_datum2.
        l_s_range-high  = test_datum1.
        l_s_range-sign = 'I'.
        l_s_range-opt  = 'BT'.
        APPEND l_s_range TO e_t_range.
    hope it helps,
    assign points if useful

  • How do I get a time value in days, hours and minutes returned to a cell from a calculation of distance divided by speed?

    How do I get a time value in days, hours and minutes returned to a cell from a calculation of distance divided by speed?

    Simon,
    you can use the duration function:
    B4=DURATION(0,0,B1/B2)
    you can further, format the cell as a duration like this using the cell inspector:

  • How to set the value of Day in JSpinner of format DD:HH:mm

    Hi All,
    I am trying to implement a spinner of format day:HH:mm but the problem is that I didn't any function by which I can set some dynamic value in Day (for initial display).
    I can set some value in hour and minute by using
    Date fDate = new Date();
    fDate.setHours(hh_int); // hh_int is some dynamic value
    fDate.setMinutes(mm_int); // mm_int is some dynamic value
    but I didn't get any function like setDay(int_value);
    Please let me know how can I do it.

    Take a look at java.util.Calendar.

  • How can i write a code to get sume of value from days.

    Hi,
    how can i write a code to get the sum of value of days(example 1 to 30).
    This is in BPS ...
    i created multi planning area and creted planning function with {keyfigure name,planning area,days}.
    now i want to read all the actual values  from basic planing area(basic cube) and calculate the sum of the value.if you have idea can you share the code.
    ENTRIES = VARC ( 'zvardays' ).     ex(zvardays like 28 days or 29 days or 30 days or 31 days)
    COUNT = ENTRIES.
    *Get the all the days value from actual
    FOREACH PAREA = 'basic planning area'.
      COUNT = 1.
    DO
         SUM = SUM + {amount, count}      (amount is a keyfirgure value)
    ENDDO.
    COUNT = COUNT+1.
       SUMACT =  SUM.
    ENDFOR.
    can you correct the above code ....to read the values and sum of the those value.
    Thanks...

    Hi ..
    That is ok..
    Can you provide sample code for my requirement..
    and also how can i pass the error message (can you help me syntax )
    and if my acutal-total  is not equal to plan-total  then
    i have to pass the error message and then  i have to restrict save the data  how i can i restrict(user can not save the data until the values should be equal) .
    Can you help me it is very urgent..
    thanks.//
    Edited by: Eyda rose on Jun 4, 2008 9:29 PM

  • PLD sorting values

    Hello
    I have a question
    End of the mmonth we make an invoice combining all delivery notes
    On the PLD I have storted Delivery Note number on the repetitive area (sort value) but in the same group I want the date and document reference remark to appear
    I have sometimes the date and the ref text but sometimes not so the solution I have is not correct
    I have made a link fields as a formula for date and base ref
    Field 1 = Doc Base number of the row INV1
    Field 2 = Sorted value
    Formula : Field1==Field2
    The date and base ref are linked to Formula above...
    Maybe there should be another way to have everytime date and base ref to be shown in the group 1 area

    Hello gordon
    No I have not tried but to me create UDF fields which have the same information as regular field makes no sense
    What would be the advantage ?
    What UDF you mean date and doc reference right ?

  • Sorting values added to an array

    Hi,
    I've written some code to sort value in an array as I add them, but I can't get it to work properly. So far I have:
    public boolean add(int next)
            int last, temp, previous;
            if (size < 1) // checks whether any values have been added to determine correct value for previous.
                previous = size;
            else
                previous = size - 1;
            if (size < arraySize) //determines whether array is full or not
                last = numberList[previous];
                if (next > last)
                    numberList[size] = next;
                    size++;
                else if (next < last)
                    temp = last;
                    numberList[previous] = next;
                    numberList[size] = temp;
                    size++;
                numberAdded = true;
                return numberAdded;
            }Which does add the numbers, but they aren't arranged into the proper order. When I look over it I can't see anything that stands out as being wrong, so I was wondering whether anybody could see anything?
    Thanks for your help,

    endasil wrote:
    nickd_101 wrote:
    I don't want a loop in this case, as i want to put the values into the correct position (with respect to the previous one) as they're added into the array. Basically, my idea is that the previous value is checked against the new value and then they are swapped if the previous value is larger than the new or kept as is if not.So you're saying that if you added
    1, 2, 4, 5, 3
    you'd want the resultant order to be
    1, 2, 4, 3, 5?
    Because by your logic that's what would happen. The most that can ever happen by your logic is that a new entry would be at most 1 away from the end of the array.
    P.S. use an SortedSet, given that your code doesn't allow duplicate values anyway.
    Edited by: endasil on Nov 19, 2007 2:15 PMThanks for the response. What I meant is that I would eventually want it in ascending order 1,2,3,4,5. What I thought I was doing was sorting the comparing the new value with the preceding everytime a number was added so that it would always go in consecutive order. So, for example say the numbers were added to the array one by one in the order 3,5,4,1,2; 3 would be compared to 5 and there would be no change in the position. As i've typed this out i've just realised the massive logical error i've made! Could you point me in the right direction to get this to work as i'm new to this. I've managed to get a pre-defined array sorting as normal, but for this i need to sort everytime I add a new value?
    Thanks again

  • PLD and sort value

    Dear Expert
    Happy new year to you
    One customer makes end of the month invoice with all delivery made in the month
    We use sort value and the value is Base Doc reference in INV1 and we group by, the delivery note number is selected
    At each group we can see as header the Delievrey note number
    But we also want to see on the same header the date of delivery (actdeldate) and customer ref (BaseAtCard)for each group of delivery
    How is it possible with PLD what function to use.???
    We use SAP BO 2007 SP01 PL11

    Hi,
    PLD is a very simple tool. You probably need Crystal Report to achieve your goal.
    Thanks,
    Gordon

  • Dash in sort value is skewing sort

    Hi All,
    I've noticed that having dashes in an alphanumeric sort field causes the data not to be sorted correctly:
    A-
    AA
    A-B
    AC
    A-C
    A simple Crystal formula highlights the issue:
        StrCmp ("A-B","AAA")   returns 1, i.e. "A-B" is greater than "AAA", but
        StrCmp ("A-A","AAA")   returns -1, i.e. "A-A" is less than "AAA".
    I know I can work around this by manipulating the data but with hundreds of reports containing multiple groups and sort values this is not practical. Is there some setting or collating sequence I need to set? Why is it doing this?
    I'm running CR XI R1 SP3 on Windows Vista. I also get the same result in CR 8.5.
    Thanks in advance,
    Michael.

    "Your are so right, but this is not unique to crystal. Excel sorts this values exactly the same"
    I think we're now getting to the bottom of the issue. I assume Crystal has based it's sort logic on Excel (N.B. Access does not sort this way). Why they would want to do this I don't know but maybe SAP can confirm. IMHO it would be much better to sort using the normal ASCII values, or at least have an option to do this.
    Some further research on sorting in Excel:
    Default sort orders In an ascending sort, Microsoft Office Excel uses the following order. In a descending sort, this sort order is reversed.
    Value Comment
    Numbers Numbers are sorted from the smallest negative number to the largest positive number.
    Dates Dates are sorted from the earliest date to the latest date.
    Text Alphanumeric text is sorted left to right, character by character. For example, if a cell contains the text "A100," Excel places the cell after a cell that contains the entry "A1" and before a cell that contains the entry "A11."
    Text and text that includes numbers stored as text are sorted in the following order:
    0 1 2 3 4 5 6 7 8 9 (space) ! " # $ % & ( ) * , . / : ; ? @ \ ^ _ ` { | } ~ + < = > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
    Apostrophes (') and hyphens are ignored, with one exception: If two text strings are the same except for a hyphen, the text with the hyphen is sorted last.
    Note If you have changed the default sort order to be case-sensitive through the Sort Options dialog box, then the order for alphabetic characters is the following: a A b B c C d D e E f F g G h H i I j J k K l L m M n N o O p P q Q r R s S t T u U v V w W x X y Y z Z
    Logical In logical values, FALSE is placed before TRUE.
    Error All error values, such as #NUM! and #REF!, are equal.
    Blank cells In both an ascending and descending sort, blank cells are always placed last.
    Note A blank cell is an empty cell and is different than a cell with one or more space characters.
    http://support.microsoft.com/kb/212144
    http://support.microsoft.com/kb/322067
    Edited by: micmac on Jun 30, 2010 12:35 PM

  • Converting date value one day less while transfering from client to server

    Hi,
    I have very typical problem. My application is in java, we are using oralce 9ias. The problem when the server is running in german locale and client is running in english. We the date value is passed from client to server it is converting to one day less.
    i.e.
    If i want to search with records jan 02,2005,
    on server side if we print the value it is getting as jan 01,2005.
    Can anybody help me in solving the above problem.
    Its bit very urgent.
    Thanks in advance
    regards
    Kalyan

    // to get  current time in Germany
        Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("Germany"));
        int hour12 = cal.get(Calendar.HOUR);
        int minutes = cal.get(Calendar.MINUTE);    
        int seconds = cal.get(Calendar.SECOND); 
        boolean am = cal.get(Calendar.AM_PM) == Calendar.AM;
        //I think all you need to do is to set the timezone to the current, so that when the
    //server at some other timezone gets this date it knows that this date belongs to
    //different timezone and gets converted automatically according to the server
    //timezone settings.
        // Set the current local timezone
        cal.setTimeZone(TimeZone.getDefault());
        int hour24 = cal.get(Calendar.HOUR);
      Hope this answers your question. Good luck.
    -Sreekanth varidhireddy

  • Pie Chart Legend - colors and sorting value

    <p>Hi,</p><p>I have a pie chart with around 20 &#39;segments&#39; representing names of people - so it looks like several of them have the same color.</p><p>So my first question is do the standard 12 colors repeat after 12 segments have been &#39;defined&#39; - can this be extended with custom colors?.  I know you can set colors for specific values but as the list is dynamic, I can&#39;t do that. </p><p>I also have a legend defined which shows the person&#39;s name and then the value - either a percentage or a count etc.    From top to bottom, the legend lists the entries alphabetically by the person&#39;s name - however, it&#39;s not always easy to tell which name is associated with which &#39;segment&#39; and using labels is not an option as they are too long and there are too many of them to be readable<br /></p><p>So what I would like to do is have the legend displayed in numerical size order - e.g. person with largest % is at the top, smallest % is at the bottom etc.</p><p>I&#39;ve been looking at the Chart Expert, CR Help and the forums but have not seen an answer to either question - I&#39;m hoping someone can tell me if it&#39;s possible or not (and if so, how do I do it!).</p><p>Thanks <br /></p>

    Hi,
    If you go to the Chart Expert, on the data tab, you can choose the Top N option. From within there you can get your legend sorted based on the highest or lowest percentage. You can also group information so that you only see the top 5 or lowest 10 or whatever you want.
    Also when I create a pie graph based on 20 plus pieces of data it isn't resusing the colors, but they are somewhat similar. I usually do a group of the top 10 or so, then have an others category for situations like this.Â
    Rody

  • How to get the MTBR value in days instead of in hours

    Dear Sir,
    Please help me to get the MTBR value (T-Code MCJB)  in the units of days instead of in the units of hours which is coming as default unit at present.
    Looking for an early reply please.
    THANKS AND REGARDS,
    RN SABAT.

    hi for this you need to change the formula in the std sap
    as per sap's formula
    suppose start date is 01.01
    breakdown date is 10.01
    downtime = 10 hrs
    next break down date is 20.01
    downtime is 5 hrs
    mtbr =19 days X24 hrs-10/2
    the above is how sap calculates
    if 24 hrs is removed from the formula all the data will be in days
    i hope iam right .
    Edited by: Mohammed Iqbal on Apr 27, 2011 6:26 PM

  • Read and sort values present in .ini file

    Hi all,
    I have a .ini file in which a set of modules with there order of execution is mentioned.I want to get all these values sorted as an array so that I can proceed with the execution of each in the order mentioned.The module list in the .ini file looks like this:
    Here, digits represent the order of execution of module.
    I should get output as an array with following values:
    1 MNO
    2 DEF
    3 STU
    4 PQR
    5 GHI
    6 VWZ
    7 ABC
    8 JKL
    I know about config data and read key vis but since the module list is huge I dont know how to write an efficient code for this.All suggestions are welcome.
    Thanks.
    Solved!
    Go to Solution.

    The snippet below should be very close to what you want.

  • Get Date Difference between 2 date values as days

    Hi,
    How to get the difference between 2 dates in number of days format. Say if i need the difference between 2012-08-23 and 2012-08-20 as 3
    Please help..

    Hi,
    You can do it in XSLT since the dates are in ISO 8601 format...
    http://www.w3.org/TR/NOTE-datetime
    Here is a sample XSLT...
    <xsl:stylesheet  version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:template match="/">
    <xsl:variable name="date1" select="xs:dateTime(/root/date1)"/>
    <xsl:variable name="date2" select="xs:dateTime(/root/date2)"/>
    <xsl:value-of select="fn:days-from-duration($date2 - $date1)"/>
    </xsl:template>
    </xsl:stylesheet>The above XSLT will result *4* for the following input...
    <root>
    <date1>2012-01-11T00:00:00.000-05:00</date1>
    <date2>2012-01-15T00:00:00.000-05:00</date2>
    </root>You can test this example here...
    http://xslttest.appspot.com/
    Hope this helps...
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

Maybe you are looking for

  • Can a ComboBox be used for Text Input ?

    Hi In Ms Access the combo box can be used for text input for creating new lines in the Database instead of just being limited to the lines already there in the drop down list. Is this possible with the combo box available in Flex 4. If it is I haven'

  • Whats the difference between a combo update and using software update?

    I keep my Macbook up to date by checking regularly via software update, so far with no mishaps, but I have seen people on these forums mentioning that a it is better to download the combo updates direct from Apples website. Is this true, if so why, a

  • Using imovie recording to dvd

    hi,i have recorded 1h video clip.transfer to imovie ,when i done few corection i want to transfer to dvd but it comes to 10gb.please can you tell me how i can squeeze 1h clip from 10gb to 4.7gb . Thank you

  • LISTENING FOR BACKSPACE WITH A KEY LISTENER

    I have a key listener and I want to know how I find out if backspace has been pressed. Thanks

  • Exchanging licence.bea file from one  machine to other.

    Hi, If we exchange licence.bea file in Home Directory of weblogic 8.1 in one machine to the Home Directory of Other machine. Will there be any changes that we observe ? Please if any one tried or know in detail about licence.bea file ,send the Sugges