Minimum value without counting those with 0 values: help!

Hi Experts,
I need your help.  I want to list only the minimum value for kf A but not counting 0 values.  The minimum value is based on order #.  For example, I want to see the minimum order amount(kf A) for this week, not counting 0.  I can't use conditions because it would just remove that particular row from the result.  For example, if I put a condition that kf A > 0.  Then the result would yield nothing.  This is aggregate data for 1 week period.  I only need a summarize report stating that for week x, I have the lowest order of $$$(not zero), and listing all doc # on the report is not an option.  I also tried, multiply (kf A ==0)*99999, through formula kf, and that didn't work either.
   I haven't tried virtual key figure or adding another kf to cube - those are options that I afraid to tackle right now.
Any help is appreciated,
Thanks.

Hi,
Try to use Exception aggregation to aggregate based on order #.
In the condion you put key figure value > 0.
Regards,
Vivek

Similar Messages

  • Threads minimum vs Threads Count

    Hi,
    What's the difference in teh execute queue between threads minimum and
    threads count? Any comments will help!
    Docs say:
    Thread Count: Specify the number of threads assigned to this queue. If
    you do not need to use more than 15 threads (the default) for your work,
    do not change the value of this attribute.
    Thread Minimum:
    Specify the minimum number of threads that WebLogic Server should
    maintain in this execute queue to prevent unnecessary overflow
    conditions. By default, the Threads Minimum is set to 5
    I don't undersatnd what "maintain in this execute queue" means?
    Obviuosly, there will be 15 threads assigned to the execute queue.
    When the "queue lengthh threshold" is reached, "Thread Increase" will be
    added to number of threads, until a maximum of "Thread Maximum".
    I don't know how "Threads Minimum" plays a role.
    Thanks!
    Q

    Don't run into troubles, and don't misuse threads, the only thing that decides when your thread will execute is the Thread-scheduling system (which is part of the Java system) not you. So, you never must call run() to execute your thread, instead you always must use start(). The call of start() actually makes the scheduling-system to pay attention to your thread, and the calling of start() more than once will not have effect.

  • Finding a minimum value in an array without using loops

    I can find a minimum value in an array using a loop, but I am unsure of how to do it without any type of of loop
    Here is what I have using a loop:
    // This method searches for the minimum value in an array
    public static int min(int a[]){
    int min = a[0];
    for(int i = 1; i < a.length; i++){
    if(a[i] < min){
    min = a;
    return min;
    How do I covert this to do the same thing, using no loops?
    Thank you for replies
    Edited by: kazmania on Feb 7, 2008 12:26 PM

    public class Test112 {
    public int recurse(int[] x, int i, int n)
    if (i==x.length-1) { return (x[i] < n) ? x[i] : n; }
    n = (n < x[++i]) ? n : x;
    return recurse(x, i, n);
    public static void main(String[] args) {
    int[] nums = {3, 1, 56, 2, 99, 34, 5, 78, -400, 2383, 201, -9, -450};
    Test112 t = new Test112();
    int min = t.recurse(nums, 0, nums[0]);
    System.out.println(min);

  • Charge sales order value with a minimum value

    Dear All,
    I have one requirement where I would like to charge my sales order value with a minimum value. For example, a minimum sales order value requirements are set at $1,400.00 (the minimum values can be different based on the different materials) per order, if the value of the order exceeds $1,400.00, therefore no minimum fee is applied or displayed and the customer is charged the actual value of the order; if the value of the order is less than the minimum thus the customer is charged the minimum. We also can set the minimum as quantity.
    Is there any standard functionality through which this can be done.. or any suggestion?
    Your help is highly appreciated.
    Thanks and best regards,
    Jo

    You can maintain the Condition Record with Condition Type as AMIW wrt to Division & Price Group.You can change the Accesses as per your requirements.
    Best Regards,
    Ankur

  • Select Query with minimum values

    Table name: employess_inout
    Column name: employee_code number(data type)
    IN_Time date(data type)
    Out_time date(data type)
    i want to select only in_time coloumn data with min intime as in one date A employee have more then 2 times in_time entry
    example
    employee_code in_time out_time
    1 18-mar-12 08:15:21 18-mar-12 13:02:01
    1 18-mar-12 14:07:46 18-mar-12 18:01:32
    1 19-mar-12 09:15:11 19-mar-12 12:58:54
    1 19-mar-12 14:10:01 19-mar-12 16:21:57
    1 19-mar-12 16:53:37 19-mar-12 18:15:33
    In above example I only want to select in_time column values which is minimum as 18-mar-12(08:15:21) like wise in date 19-mar-12 minimum value is 09:15:11.
    Please write the script.
    thanks in advance

    Dear Frank Kulash
    the Script is
    Select ei.emp_code,p.ename, d.department_name, ds.designation_name,
    to_char(ei.intime, 'dd') "IN_Date",
    to_char (ei.intime,'hh24:mi') "IN_Time" /*here i used "min" but not solved*/
    FROM einout ei, personnel p,departments d, designations ds
    where ei.emp_code = '470'
    and intime between to_date ('01/03/2012 08:10', 'dd/mm/YYYY hh24:mi')
    and to_date ('21/03/2012 10:00','dd/mm/YYYY hh24:mi')
    and ei.emp_code = p.emp_code
    AND p.dept_code = d.dept_code
    and p.desig_code = ds.desig_code
    group by ei.emp_code,p.ename, d.department_name, ei.intime,ds.designation_name --, ei.outtime
    order by ei.intime, ei.emp_code asc;
    Out Put
    EMP_CODE ENAME DEPARTMENT_NAME DESIGNATION_NAME IN_Date IN_Time
    470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 01 09:15
    *470      GHULAM YASSEN             INFORMATION TECHNOLOGY         OFFICER                   02          08:58*
    *470      GHULAM YASSEN             INFORMATION TECHNOLOGY         OFFICER                   02          14:04*
    *470      GHULAM YASSEN             INFORMATION TECHNOLOGY         OFFICER                   02          15:11*
    470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 03 09:06
    470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 05 17:07
    470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 06 09:47
    470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 07 09:36
    *470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 07 19:39* 470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 08 12:16
    470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 09 09:26
    *470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 09 14:08*
    I want to take out put
    like that
    EMP_CODE ENAME DEPARTMENT_NAME DESIGNATION_NAME IN_Date IN_Time
    470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 01 09:15
    470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 02 08:58
    470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 03 09:06
    470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 05 17:07
    470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 06 09:47
    470 GHULAM YASSEN INFORMATION TECHNOLOGY OFFICER 07 09:36
    I only need min time (value) once of A date.
    [Bold rows are no need in output]
    please tell how it will be possible

  • Logarithmic plot breaks with change in minimum value

    If I try to alter the Y-axis scale on a logarithmic line plot---specifically, if I change the minimum value in the inspector---the axis suddenly becomes dramatically wrong.
    Try for example: create a column with values 20, 30, and 100. Select and choose a line graph from Charts. In the inspector, choose logarithmic in the Y-axis drop-down.
    This should work well so far. Now, set the minimum Y-axis value to 10 instead of 1. If I do this, the graph points do not move, while the values on the Y-axis dramatically change; all the data points are now erroneously above the 100 line.
    I don't get any bad behavior if I change the maximum value; only the minimum seems to break the graph. Does anyone else get the same misbehavior?

    Hello
    As you didn't responded, the day after I reported the oddity
    Yvan KOENIG (from FRANCE samedi 15 mars 2008 18:26:37)

  • Query to return ALL rows even those with zero counts

    Hi,
    The following query will return only those rows that have a non zero count value:
    select c.id, a.name, count(*) as XYZ from CON c, CUST a
    where c.help !='1' and (c.id = a.id) group by c.id, a.name order by c.id;
    The results are:
    1 ME 3
    3 YOU 4
    What i want is to return all rows in CUST and the count, XYZ, that correspond to each row in CUST that matches the whare condition above, even if the count is zero.
    ie
    1 ME 3
    2 WE 0
    3 YOU 4
    Can this be done?

    You may want to get the counts then do the outer join. If you simply count with an outer join you will get 1 for 'WE' because there is a row in the cust table with 'WE'. This may work for you;
    with
      cust as (
       select 1 id, 'ME' name from dual union all
       select 2 id, 'YOU' name from dual union all
       select 3 id, 'WE' name from dual),
      con as (
       select 1 id, '2' help from dual union all
       select 1 id, '2' help from dual union all
       select 1 id, '2' help from dual union all
       select 2 id, '2' help from dual union all
       select 2 id, '2' help from dual union all
       select 2 id, '2' help from dual union all
       select 2 id, '2' help from dual)
    -- end of test data 
    select a.id, a.name, nvl(c.cnt,0) xyz
    from cust a, 
       (select id, help, count(*) cnt
       from con
       where help !='1'
       group by id, help) c
    where a.id = c.id(+)

  • How to get all minimum values for a table of unique records?

    I need to get the list of minimum value records for a table which has the below structure and data
    create table emp (name varchar2(50),org varchar2(50),desig varchar2(50),salary number(10),year number(10));
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',3000,2005);
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',4000,2007);
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',7000,2007);
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',7000,2008);
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',7000,2010);
    commit;
    SELECT e.name,e.org,e.desig,min(e.year) FROM emp e,(
    SELECT e1.name,e1.org,e1.desig,e1.salary FROM emp e1
    GROUP BY (e1.name,e1.org,e1.desig,e1.salary)
    HAVING COUNT(*) >1) min_query
    WHERE min_query.name = e.name AND min_query.org = e.org AND min_query.desig =e.desig
    AND min_query.salary = e.salary
    group by (e.name,e.org,e.desig);With the above query i can get the least value year where the emp has maximum salary. It will return only one record. But i want to all the records which are minimum compare to the max year value
    Required output
    emp1     org1     mgr     7000     2008
    emp1     org1     mgr     7000     2007Please help me with this..

    Frank,
    Can I write the query like this in case of duplicates?
    Definitely there would have been a better way than the query I've written.
    WITH      got_analytics     AS
         SELECT     name, org, desig, salary, year
         ,     MAX (SALARY)  OVER ( PARTITION BY  NAME, ORG, DESIG)          AS MAX_SALARY
         ,     ROW_NUMBER () OVER ( PARTITION BY  NAME, ORG, DESIG, SALARY
                                    ORDER BY        year  DESC
                           )                              AS YEAR_NUM
           FROM    (SELECT 'emp1' AS NAME, 'org1' AS ORG, 'mgr' AS DESIG, 3000 AS SALARY, 2005 AS YEAR FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',4000,2007 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',4000,2008 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2007 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2007 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2008 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2010 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2010 FROM DUAL)
    SELECT     name, org, desig, salary, year
    FROM     got_analytics
    WHERE     salary          = max_salary
    AND     YEAR_NUM     > 1
    Result:
    emp1     org1     mgr     7000     2010
    emp1     org1     mgr     7000     2008
    emp1     org1     mgr     7000     2007
    emp1     org1     mgr     7000     2007
    WITH      got_analytics     AS
         SELECT     name, org, desig, salary, year
         ,     MAX (SALARY)  OVER ( PARTITION BY  NAME, ORG, DESIG)          AS MAX_SALARY
         ,     ROW_NUMBER () OVER ( PARTITION BY  NAME, ORG, DESIG, SALARY
                                    ORDER BY        year  DESC
                           )                              AS YEAR_NUM
      ,     ROW_NUMBER () OVER ( PARTITION BY  NAME, ORG, DESIG, SALARY, Year
                                    ORDER BY        YEAR  DESC
                           )                              AS year_num2
         FROM    (SELECT 'emp1' AS NAME, 'org1' AS ORG, 'mgr' AS DESIG, 3000 AS SALARY, 2005 AS YEAR FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',4000,2007 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',4000,2008 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2007 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2007 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2008 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2010 FROM DUAL UNION ALL
    SELECT 'emp1','org1','mgr',7000,2010 FROM DUAL)
    SELECT     name, org, desig, salary, year
    FROM     got_analytics
    WHERE     salary          = max_salary
    AND     YEAR_NUM     > 1
    AND YEAR_NUM2 < 2
    Result:
    emp1     org1     mgr     7000     2008
    emp1     org1     mgr     7000     2007

  • Minimum value of UNIX/Linux Heartbeat Monitor in scom 2012

    Hi,
    In my environment, we have SCOM 2012 server, when I change values of UNIX/Linux
    Heartbeat Monitor: Interval , Missed
    Heartbeats and Missed Heartbeats from 300 , 630 ,2 to 120, 150, 1 in event viewer shows Error
    11112:
    The Microsoft Operations Manager Consolidate Module failed to initialize because the specified compare count is less than the minimum
    Compare count value : 1
    Minimum value allowed : 2
    One or more workflows were affected by this.
    What is the best minimum value?
    Thanks

    You've ended up in the wrong forum. mostly service manager here, Ops manager is
    over there https://social.technet.microsoft.com/Forums/en-US/home?category=systemcenteroperationsmanager. 
    That being said, the error you reference is somewhat abstracted from the values you adjusted. the error you posted is the system comparison operator complaining that it only has one thing to compare, typically you need two things to do a comparison.
    Here is a person running into a similar problem with the lync MP, where it was trying to compare the site assignment of two systems, but the environment only has one system.
    http://thoughtsonopsmgr.blogspot.com/2014/09/lync-server-2010-mp-bug-alert.html. is it possible this is an outgrowth of something similar in your unix environment? Do you have any more details about the specific health XML that's failing?

  • Minimum value validation

    this seems like such a novice question I'm embarrassed to post it.
    But I've been unable to resolve it or find the answer by searching.
    I have a form with number fields and want to specify a minimum value
    WITHOUT an upper limit. The validate tab allows me to set a range,
    such as 50 - 1000, but I just want it to be over 50.
    I've tried placing 50+ or >50 in the "TO" box, but it does not accept this.
    I suspect I need a custom validation script but I'm not familiar with doing this.
    I'm using acrobat 8. I appreciate any advice, thank you.

    Thank you.
    I knew it would be so simple that I would feel like a fool.
    I had tried this, but leaving the "TO" box blank caused acrobat to insert a 0 which implied to me it would not work, so I never tested it. Following your post, I have now tested it and can confirm it works perfectly.
    Thank you very much.

  • How to populate minimum value

    Hi
    I have an extractor with 2 primary keys, Indkey and Indcode.
    I need to get the minimum value of Indcode and populate the relevant Indkey.
    ex, Indkey   Indcode
         IND001    20
         IND002    30
         IND003     40
    I only need to get the record IND001 20, populated and not the other two. I am populating these values to a DSO in BW.
    How can I acheive this? Please give the algorithm or sample code.
    Thanks
    Sirisha

    sort table by key1 key2 and read table index1

  • Minimum Value Sucharge not calculated

    Hi Gurus,
    I created condition record ZMIW for material 1234 1000 Euro but in the Salesorder Condion Tab
    SD Minimum Value Sucharge is same with Minumum Order Value
    Mat 1234 1 pc 200 Euro
    Minimum Order Value                            1000 Euro
    Minumum Minimum ValueSurchrg          1000 Euro (it should be 800 Euro)
    I use the Condition types ZMIW and ZMIZ
    In the Pricing Procedure                                                                               
    SubT    Reqt   Calty                  acct
    817       0          ZMIW   Minimum SalesOrdrVal                                      D          2
    818       0          ZMIZ     Minimum ValueSurchrg                                                 2          13                    ERS
    RefCondtTyp is ZMIW fpr CondType ZMIZ
    Could please tell what should I check ?
    BR,
    Emre
    Edited by: Y. Emre Kurnaz on Sep 11, 2009 9:00 AM
    Edited by: Y. Emre Kurnaz on Sep 11, 2009 9:01 AM

    Hi,
    thank you for your reply.
    I maintained the Condtyp ZMIW and ZMIZ
    ZMIW from 800  subtotal D and requirement 2. i typed step number 800 (where Net Value for Item calculated).
    ZMIZ requirement 2 and altcalc type 13
    I maintained Condition record for ZMIW 1000 Euro.
    everything looks right. but minimum order value and surchage are same (both are 1000 Euro.)
    I tried with standard pricing procedure (RVAA01) the result is equal
    I donkt know but  it should not be so complex.
    Thanks in Advance
    Emre

  • Problems with F4 Value Help in NW2004s Portal

    Hello,
    we are having some troubles with the F4 ValueHelp Extension from the Advanced BSP Programming book (and the blogs of course).
    We've implemented the solution on a 4.7 backend and portal 6.0. No problems there, everything was working fine.
    We now moved to erp2005 (WebAS 700) and NW2004s Portal (7.0).
    The popup shows and I can select entries from the list. But when clicking the ok icon a javascript error is thrown stating that 'parent.document.getElementById(...)' is null or no object.
    I think the problem is, that by making a call to 'parent' we are searching in the portal frame and not the BSP. There (in the portal frame) the element is not known so the error is thrown.
    I allready changed from the dialog_ie6.js provided on the BookCD to the one delivered by SAP. Did nothing regarding the error.
    I also tried changing ZCL_BSP_M_INPUT_HELP->BUILD_ACCEPT_SELECTION_SCRIPT. I changed all the "parent.document.get..." "to document.get...". The error message was still the same, 'parent.document.getElementById(...)' is null or no object.
    So now I'm kind of stuck. If I try the example outside the portal everything works as expected. So this clearly seems to be a problem with the portal integration. All involved BSP-Apps are marked as "supports portal integration".
    Any ideas on this topic?
    Thanks and kind regards,
    Alexander Sperling

    I have a working solution to the problem.  It isn't the nicest solution because it will probably require some modifications to the application that hosts the value help, but we will get to that in a second.
    I tried many different ways to come up with a solution that would still work via JavaScript. The portal is now loading the popup javascript in the master frame.  It registers event handlers so that if any application triggers a popup internally it "hi-jacks" the event.  So regardless of what I change in the BSP javascript library, it gets overriden by the portal one. The portal also now even enforeces its theme on the inner page in the popup.  Truly the portal takes complete control over the inner html of the popup.
    To make things worse the popop has not path to reach the source that triggered it.  The source objects are tracked in the javascript, but because the master frame takes over; the popup window only has access and visibility to the master frame and the navigation frame.  In essence in the DOM it is now higher in the stack than the object that actually triggered it. 
    Web Dynpro gets around this because it doesn't use any client side mechanisms to communicate it results back to the source frame. Web Dynpro has the luxury of always being stateful and therefore can make certain assumptions that would never work in BSP.  The hi-jacking is an excellent solution for Web Dynpro.  The portal can then override the functionality of Web Dynpro - providing the new functionality of floating the dialog box over the entire portal - without having to make any changes to the Web Dynpro Framework.  However they never had our little BSP solution in bind obviously.
    It might be possible to completely rewrite the popup_ie.js and popup_ns.js to use all different event, method and variable names.  This separate version could then provide complete separation from the portal script. However this is just a theory. I'm afraid that I wouldn't have the bandwidth to rewrite the entire script right now so I focused on a quicker solution.
    The only approach that I could come up was to follow the Web Dynpro approach and return to the server with the value. To do that I used Portal Eventing.  Portal Eventing allows us to pass a value to the source frame regaurdless of our relative positions in the DOM. 
    In my inner BSP application for the value help (ZES_VALUEHELP), I made the following change in the model method BUILD_ACCEPT_SEL_SCRIPT_V2.  At line 141 I changed the logic.  Instead of using JavaScript to write the selected value back into the source element, we will just trigger a Portal Event:
    ****With an InputField we write the contents directly back into the element
          ELSE.
            CONCATENATE me->js_close1
            `portalFireEvent('com.sap','`
            me->element_id
            `',"`
            key
            `");`
             INTO me->js_close1.
            EXIT.
    The other change is within the Element handler class for inputHelpV2 - ZCL_ES_BSP_ELMNT_INPUT_HELP_V2.  We need to register the listener for the Portal Event. Therefore in DO_AT_BEGINNING we will add the follwing at line 23 (right after we place the Element Id into the URL Parameters Table.
      data: portal_event type ref to cl_portal_event.
      portal_event = cl_portal_event=>factory(
        name = <wa_params>-value
        namespace = 'com.sap' ).
      while m_page_context->element_process( element = portal_event ) = co_element_continue.
      endwhile. "End portalEvent Render
    Overally using the portal eventing actually is an intersting approach.  There is only one drawback, now we have a server side event.  That being the case, our application now needs some event logic to process this event and populate the value. Depending upon if you are using MVC, Data Binding, or Flow Logic this could vary - and would have to handled by each application. The nice thing about the old approach was that it all happened via JavaScript on the Frontend and didn't require the application programmer to do anything - that was obviously its weakness as well.

  • Minimum value in sales order

    Dear All,
    CAN U PLZ TELL WHERE IS THE SETTING TO MAINTAIN MINIMUM ORDER IN A SALES ORDER.
    Regards,
    Pankaj

    Dear Pankaj,
    You can have minimum order quantity by maintaining at Material master -->Sales org data view but, I don't think you have option to control minimum value in sales order in the standrad functionality.
    You can try with some user exit with the help of ABAPer.
    I hope this will help you,
    Regards,
    Murali.

  • Unexpected minimum value for SHEAPTHRES_SHR

    Hi Folks - We keep getting the following message every 30 seconds on our BI QA server.
    2009-08-24-07.26.17.263989-240 E78429A607         LEVEL: Warning
    PID     : 930014               TID  : 15425       PROC : db2sysc 0
    INSTANCE: db2bq1               NODE : 000         DB   : BQ1
    APPHDL  : 0-28423              APPID: *LOCAL.DB2.090808073504
    AUTHID  : DB2BQ1
    EDUID   : 15425                EDUNAME: db2stmm (BQ1) 0
    FUNCTION: DB2 UDB, Self tuning memory manager, stmmComputeMinSHEAPTHRES, probe:836
    MESSAGE : Unexpected minimum value for SHEAPTHRES_SHR - value automatically
              corrected -  122423 -  2448 -  338887 -  9180 -  3 -  0 -  3.000000 -
               1 -  31 -  271110 -  630
    I am pretty sure this will have performance impact on the database as the database manager has to keep changing the SHEAPTHRES_SHR value every 30 seconds back to the correct value. Has any one seen this before? Turning off STMM is not an option. We do not want to hard code SHEAPTHRES_SHR value as the loads on BI are not-predictable in the environment.
    Pl advise.
    Thanks.

    The output of the SQL statement shows:
    MAX_PARTITION_MEM: Maximum allowed "instance_memory" (this will correspond with the current setting of instance_memory in bytes)
    CURRENT_PARTITION_MEM: Current total memory allocation (in bytes)
    PEAK_PARTITION_MEM: HWM total memory allocation (in bytes)
    The bug with the STMM memory calculation was first fixed with version 9.5 FP4 so you might have to upgrade your instances to FP4. In fact, if I am not mistaken, SAP withdrew FP3 due to a hiper apar which can potentially impact SAP systems.
    Also as far as the values in the output of the query and db2pd are concerned, they are not different. The output of the query is expressed in bytes whereas the output of pd is expressed in KB.
    $$ db2pd -dbptnmem
    Memory Limit:         36000000 KB (which is 36864000000 bytes)
    Current usage:        31746944 KB (which is 32508870656 bytes)
    HWM usage:            35704320 KB (which is 36561223680 bytes)
    Regards,
    Sameer

Maybe you are looking for