Grand total of calculated column and case function in the same calcultd col

Hi Gurus,
In 9.0.4, the Grand total of the calculated column is not working as per the CASE function. It is taking the ELSE formula for all records. Is there a way to correct it.
Thanks,
Pooja

Hi Pooja,
In the totals ,which u mentioned try using cell sum function instead of sum function.
Manikandan
GKB Consulting Inc.,

Similar Messages

  • Including both the Jquery script to calculate the total of calculated column and freeze header row

    Hi
    I managed to get this code from here,
    http://techtrainingnotes.blogspot.in/2013/03/freezing-title-row-of-sharepoint-2010.html done on the page 
    I also managed to get this code from here, http://www.sharepointed.com/2012/11/28/jquery-total-calculated-column-in-sharpoint-2010/ done on another page.
    However, I need this to be done on the same page. When I do this, I only get the freeze header thingy to be up and not the calculated column. Could something be blocking. 

    Hi,
    You take the code below for a try in your environment after modified it a bit to suit the structure of your page:
    <script type="text/javascript" src="../../SiteAssets/js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    // update the list after the page has loaded
    _spBodyOnLoadFunctionNames.push("TTNListScroll");
    function TTNListScroll()
    // Scrolling list code from TechTrainingNotes.blogspot.com
    // Edit the next line with your list's summary name
    var SummaryName = "List28_frozenheader ";
    var TTNmyTable;
    var TTNListDiv = document.createElement('div');
    var TTNHeadingDiv = document.createElement('div');
    var tables = document.getElementsByTagName("table");
    for (var i=0;i<tables.length;i++)
    if(tables[i].summary == SummaryName)
    TTNmyTable = tables[i];
    break;
    if(TTNmyTable == undefined)
    // // Table not found!
    // you may want to comment out the next line after testing
    alert("table '" + SummaryName + "' not found");
    return;
    // make a copy of the table for the heading area
    TTNHeadingDiv.appendChild(TTNmyTable.cloneNode(true));
    TTNHeadingDiv.id="TTNheading";
    TTNListDiv.appendChild(TTNmyTable.cloneNode(true));
    TTNListDiv.id="TTNlist";
    TTNListDiv.width="100%";
    // udpate the page
    var TTNnode = TTNmyTable.parentNode;
    TTNnode.replaceChild(TTNHeadingDiv, TTNmyTable);
    TTNnode.appendChild(TTNListDiv);
    // hide the heading row of the main list
    TTNListDiv.childNodes[0].rows[0].style.visibility='hidden';
    // make the DIV for the heading the same width as the main list
    TTNHeadingDiv.childNodes[0].style.width = TTNListDiv.childNodes[0].offsetWidth;
    getSum(3);
    //pass the column number to this function
    function getSum(col)
    var m = "$"; //change to "" for non-money format
    var arrayList = $("table.ms-listviewtable:first> tbody> tr:gt(0)").find(">td:eq("+col+")");
    var x = 0;
    var p1 = "";
    var p2 = "";
    $.each(arrayList, function(){
    //console.log('$(this).text(): '+$(this).text());
    x += Number($(this).text().replace(/\$|,|\)/g, "").replace(/\(/g,"-"));
    //console.log('x: '+x);
    //format for negative numbers
    if (x < 0)
    p1 = "(";
    p2 = ")";
    x = Math.abs(x);
    $('#diidSortcal').attr('visibility','visible');
    $('#diidSortcal').text($('#diidSortcal').text()+'(sum: '+x+')');
    function addCommas(nStr)
    //formats number
    nStr += '';
    x = nStr.split('.');
    x1 = x[0];
    x2 = x.length > 1 ? '.' + x[1] : '';
    var rgx = /(\d+)(\d{3})/;
    while (rgx.test(x1))
    x1 = x1.replace(rgx, '$1' + ',' + '$2');
    return x1 + x2;
    </script>
    <style type="text/css">
    #TTNheading
    height:28px;
    #TTNlist
    height:200px;
    overflow-y:scroll !important;
    overflow-x:auto
    </style>
    Then you might get something like this:
    Feel free to reply if there are still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Optimize certain columns and fixed others of the same ALV

    Hi All,
    I was wondering whether it is possible to optimize the width of certain columns based on their content and fixed( hard coding the width ) the others, all fields found in the same ALV.
    Thanks,
    Shabir

    Here is what i am using to manage the lenght of the columns.
      TRY.
        gets the columns object
          lref_columns = iref_alv->get_columns( ).
        loops trough the columns to hide the unnecessary ones
          lt_columns = lref_columns->get( ).
          LOOP AT lt_columns INTO ls_column.
            lv_colname = ls_column-columnname.
            CASE lv_colname.
              WHEN 'MANDT'.
                ls_column-r_column->set_technical( if_salv_c_bool_sap=>true ).
              WHEN 'MATNR'.   "Material Number
                ls_column-r_column->set_long_text( 'Material Number'(017) ).
                ls_column-r_column->set_medium_text( 'Material Number'(017) ).
                ls_column-r_column->set_short_text( 'Mat.Number'(036) ).
                ls_column-r_column->SET_OUTPUT_LENGTH( '11' ).
              WHEN 'MTART'.   "Material Type
                ls_column-r_column->set_long_text( 'Material Type'(020) ).
                ls_column-r_column->set_medium_text( 'Material Type'(020) ).
                ls_column-r_column->set_short_text( 'Mat. Type'(037) ).
                ls_column-r_column->SET_OUTPUT_LENGTH( '13' ).
              WHEN 'MATKL'.   "Material Group
                ls_column-r_column->set_long_text( 'Material Group'(040) ).
                ls_column-r_column->set_medium_text( 'Material Group'(040) ).
                ls_column-r_column->set_short_text( 'Mat. Group'(023) ).
                ls_column-r_column->set_output_length( '10' ).
              WHEN OTHERS.
            ENDCASE.
          ENDLOOP.

  • USING TOMTOM AND IPOD FUNCTION AT THE SAME TIME

    Hi
    I plan to het tomtom application bur before I'd like to know if
    I will be able to use my iphone connected to my car player alpine for music fucntions at the same time as tomtom application
    thanks a lo for your opinion on that

    On my iPhone, I can play music using the iPod app and also use Tom Tom. The music pauses for voice directions.
    I don't have an Alpine, so I can't test that for you.

  • Grand total on some column

    Hi,
    My question is: Can I exclude grand total on some measure column in pivot view?
    For example I have 3 columns.On columns Account1 and Accounts, aggregation is SUM, and on column Max(something), aggregation is MAX.
    I have next situation.
    Account1 Account 2 Max(something)
    100 200 23
    200 250 13
    150 300 42
    450 750 42 - GRAND TOTAL
    But I want grand total only on columns Account1 and Accounts. For column Max(something) I don't want total at all.
    Thank you for your replies.

    Hi,
    Thanks for your reply,
    According to the link Below
    http://gerardnico.com/wiki/dat/obiee/answer_xml,
    We can able to change color for Grand total through XML, but the example is in 10g, there is nothing call saw:totalValues in 11g Currently, may be it is replaced with saw:displayGrandTotal, I tried that option also but it is not working.
    Is there anything which we can do through xml, to achieve the above requirement?
    Thanks
    Anirban

  • I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?

    I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?

    Hi Prabhuram and falez,
    This issue appears where there are any inconsistencies in your catalog (generally for video files). This issue may be due to offline files, missing files, video scenes. The recommendation here would be to fix these inconsistencies and try again. If that doesn't solve the issue, please follow steps mentioned in email by me.
    ~Surendra

  • Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?

    Is it possible to create an invoive that keeps a running total in one column and in another column keep total of monies spent from a starting amount of funding?

    Hi Sara,
    Many thanks for your reply.  We just brought Adobe Acrobat XI Pro complete
    with Adobe Forms Central, My manager asked whether I could use the forms
    part to create a summary tracking sheet for all of our contracts.
    Having looked at it I could see how to create a table that in the first
    column deleted costs from a starting fund, and in the last keeps a running
    total of all monies spent.
    I agree, Excel does seem to be much better suited to the task.  I was try
    trying to comply with her request
    Regards,

  • In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    Sorry, I tried to say your answer solved my question, but I guess I told it that my response to you solved it. Now that I liked it, the solved option doesn't appear.

  • Same here, 4s working perfectly, downloaded update 8.0.1 Now no wifi or bluetooth or hotspot. Control on/off icons are muted in colour and don't respond. Tried resetting network connections then total restore, didn't work so still have the same probl

    Same here, 4s working perfectly, downloaded update 8.0.1 Now no wifi or bluetooth or hotspot. Control on/off icons are muted in colour and don't respond. Tried resetting network connections then total restore, didn't work so still have the same problems as before.

    Satellite L505D-S5983
    I would try another restore of the hard disk to its original out-of-the-box contents using Toshiba recovery media. Maybe something went wrong in the process. Make sure everything works before applying any updates and adding any hardware or software.
    Then add things carefully, rebooting Windows and testing the USB and audio at each step.
    Please note this.
    The only info windows gives me for the sound card is that it from Microsoft... with a driver version of 6.1.7601.17514....which naturally doesn't really help me since I have no idea what card or mobo I have . Is there any way for me to find out what I need other than opening up my laptop?
    Every one of them lists my mobo simply as a Toshiba motherboard, with no audio card information. Which I'm assuming that is because it has an internal sound processor. My problem is that none of the properties, or ANYTHING I try, will give me information on what I need to fix this...
    All of the latest drivers for your model are easily found here. This one is for the sound.
       Realtek Audio Driver for Windows 7 (32/64)
    -Jerry

  • Hi.is it possible to add 2 columns and put it in the third calumn thru sqll

    Hi.is it possible to add 2 columns and put it in the third calumn thru sqll
    Hi i have 3 columns
    callstart,duration and callrelease
    In the extract i get values only for callstart and duration.
    Is possible thru sqlldr to output the sum of callstart and duration into callrelease.

    May This Can Help You..
    SQL> select * from table_a;
            ID SCHEDULED  MARK             PRID
             5 07-NOV-10  T05                 7
             6 18-SEP-10  T06                 8
             4 31-JAN-11  T02                 2
             1 18-JAN-11  T01                 2
             2 18-JAN-11  T02                10
             3 18-JAN-11  T03                 1
    6 rows selected.
    SQL> alter table table_a add mix varchar(50);
    Table altered.
    SQL> select * from table_a;
            ID SCHEDULED  MARK       PRID MIX
             5 07-NOV-10  T05           7
             6 18-SEP-10  T06           8
             4 31-JAN-11  T02           2
             1 18-JAN-11  T01           2
             2 18-JAN-11  T02          10
             3 18-JAN-11  T03           1
    6 rows selected.
    SQL> update table_a
      2  set mix=mark||to_char(id);
    6 rows updated.
    SQL> commit;
    Commit complete.
    SQL> select * from table_a;
            ID SCHEDULED  MARK       PRID MIX
             5 07-NOV-10  T05           7 T055
             6 18-SEP-10  T06           8 T066
             4 31-JAN-11  T02           2 T024
             1 18-JAN-11  T01           2 T011
             2 18-JAN-11  T02          10 T022
             3 18-JAN-11  T03           1 T033
    6 rows selected.
    SQL> Regards
    Umesh

  • Does the iphone 5 and iphone 5s use the same case

    Does the iphone 5 and iphone 5s use the same case

    Twice now you've given this useless answer.  What's the point in even replying?
    Case dimensions look to be identical, but some cases will hinder the fingerprint scanner.  My Griffin Survivor will fit my brothers 5s easily, but as the home button is entirely covered, it's useless to him.

  • The screen no longer displays a playlist column and when I hit the plus sign the screen no longer has a right side column to let me make a new playlist. Now what?

    The screen which comes up no longer displays a playlist column and when I hit the plus sign and choose new playlist the screen doesn't display the narrow right side column for a new playlist. Does this have something to do with the new iTunes version I installed?

    iOS: Unable to update or restore

  • Does the ipod touch 5th gen 16 gb and 32 gb use the same cases?

    does anybody know if the ipod touch 5th gen 16 gb and 32 gb use the same cases?

    Yes, they have the same dimensions.

  • Applications installed in my iTouch does not launch. the music and internet functions but the installed applications does not. tried switching it on and off, still problem persists

    Applications installed in my iTouch does not launch. the music and internet functions but the installed applications does not. tried switching it on and off, still problem persists. help...

    Your only chance besides getting it serviced would be setting it up as new device:
    http://support.apple.com/kb/HT4137

  • Will deleting a column at logical schema delete the same at physical level by DDL Sync?

    Will deleting a column at logical schema delete the same at physical level by DDL Sync?

    Hi David,
    First of all thanks for your quick response and for your help logging the enhancement request,
    I am testing more or less your suggestion but I  am not sure if I understood exactly what you mean,
    1)I imported from data dictionary in a new model and into the options menu on the schema select screen I un-ckecked partitions and triggers,
    I guessed that the import should not get from the data dictionary the information about the partitions but the result is that the tables partitioned (by list in this case) are partitioned by range without fields into the physical model on SDDM,
    2)I select one of the tables modify a NO partitioned option and propagate the option for the rest of the tables
    3) I imported again from data dictionary but this time I included the partitions into the option menu on select schema screen,
    into tabular view on compare models screen I can select all the tables with different partitioned option, also I can change for "list partitions" and select only the partitions that I want to import.
    So I have a solution for my problem, thanks a lot for your suggestion
    The second step I'm not sure is needed or maybe I can avoid the step with some configuration setting in any of the preferences screen,
    if not, I think the options to not include partitions into select schema screen are not so clear, at least for me,
    please, could you confirm me if a way to avoid the second step exists or if I misunderstood this option?
    thanks in advance

Maybe you are looking for