Percentage based on Status using per group

Hi Gurus,
Can you help me with this? You have any approach of getting the percentage based on status using per group?
Currently I have this code below but it doesn’t have result but no error. I am trying to get the % In Complete.
<?xdofx:(sum(current-group()/NUMINCOMPLETE)/(sum(NUMSUBMITTED) + sum(NUMCOMPLETED) + sum(NUMINPROGRESS) + sum(NUMINCOMPLETE)))*100?>
Thanks Much,
JP
Edited by: BIPnewbie on Feb 6, 2012 3:05 AM

Use this:
<?xdoxslt:div(sum(current-group()/NUMINCOMPLETE), ((sum(NUMSUBMITTED) + sum(NUMCOMPLETED) + sum(NUMINPROGRESS) + sum(NUMINCOMPLETE)))*100?>
Thanks,
Bipuser

Similar Messages

  • Groups in LMS based on protocol used by RME

    My customer would like to have posibly dynamic groups that hold device reachable by TELNET, SSH, and device the support both protocols.
    The TELNET group should be monitored to see if the devices can be upgrade to use SSH
    The group holding devices supporting both protocols should be monitored to see TELNET getting disabled on them.
    RME knows how the configurations were collected but can this be used to group the devices?
    Cheers,
    Michel

    No, config information cannot be used to create dynamic groups.  The best you could do is create an RME group to match on the "K9" string in the image description.  This will indicate the device is running a crypto image, and could potentially have SSH enabled.
    Device.Image.Sys_Description contains "K9"

  • Calculation of Depreciation based on Remianing Useful Life

    Hi
    I have a scenario in which depreciation percentage should be derived based on remaining useful life and it should remain same through out the remaining useful life.
    For eg,
    Take over date = 30.11.2010
    Acquisition Date= 01.04.2009
    Acquisition Amount = INR 200000
    Depreciation Till 30.11.2010 = 70000 INR
    Net Book Value as of 30.11.2010 = INR 130000
    Total Useful Life = 4 Years or 48 months
    Expired Useful Life = 1 year 9 months or 21 months
    Remaining useful life = 27 months
    Required Depreciation Per Month = 130000/27=4815
    Derived Percentage = 4815/130000*100=3.71%
    I have created a Base Method for calculation for Depreciation with Depreciation Method as "% from Remaining Life calculated from Depreciation Conversion Date". In Multilevel methods, I have assigned the Base Method as 24, Net Book Value
    and maintained the check box for Remaining useful life.
    However, the system is not calculating the  rate as expected.
    Regards
    Sanil Bhandari

    Hi Sanil
    Have you done any settings in OAYF - recalculate dep for previous years (IMG> AA > Asset Data Transfer > Parameters for Data Transfer > Options)
    For current year, it always does produce some difference due to rounding off, which should not be a big amount
    Ajay M

  • Problem using my Group level function in a chart

    Post Author: LcdCyn
    CA Forum: Charts and Graphs
    I have created a function (StatePerRecord) that is displayed under the Details section to evaluate each records' state:
    Here is my code:
    If Not IsNull () Then    (    select         case "fail":            if (Not (IsNull ())) Then               "Passed"           else               "Failed"        case "pass":              "Passed"        default:             "Passed"     )
    else      "NA"
    I also have group section based on Record ID that groups the state record. In the header of the group footer I need to define summary function (StateSummary) such that
    highest state from the state records should be the output here (excluding "NA" state). Here are the priorities:
      Highest - Failed
      Lowest - Passed
    I want to use the StateSummary in a graph to show the Summarized State per Record ID.
    I used Running Totals in my StateSummary function but I cannot see the field in the Chart expert.
    P.S. I use Crystal Reports 10 Professional

    Object (when acting as a map) uses toString() as a poor man's hashcode implementation, so you can get more-or-less the behavior you want by implementing the toString() method in your CIDate class and then storing the instances in an Object (rather than a Dictionary).
    E.g., say your CIDate looks like this:
              public class CIDate {
                public var num:Number
                public function CIDate(num:Number) { this.num = num }
                public function toString():String { return num.toString(); }
    You can use toString() as a comparison operator by keeping things in an Object instead of a Dictionary:
                var testDic:Object = {};
                var key1:ClDate = new ClDate(10000);
                var key2:ClDate = new ClDate(20000);
                var key3:ClDate = new ClDate(30000);
                var key4:ClDate = new ClDate(40000);
                testDic[key1] = 1;
                testDic[key2] = 2;
                testDic[key3] = 3;
                testDic[key4] = 4;
                var key:ClDate = new ClDate(20000);
                var retNum:Number = testDic[key];
    Then retNum should be '2', as expected. This is sort of a hack, but it might work for what you're doing.

  • Single step workflow with multiple approvers (without using a group)

    Hi,
    is it possible to have a single step workflow with multiple approvers without using a group? This is for a contract document.
    i want to add a number of users based on particular logic. The approvers are random and do not belong to any particular group.
    DO let me know if it is possible or if any of you have done that.
    thanks in advance.
    regards,
    rubio

    Hi Rubio,
    I believe the behavior would be, if individual users are added as approvers then the system would require each approver to approve the document. However, if you use the user group, you could set the role so that it would be either ALL or ANY.
    Regards,
    Vikram

  • Overhead calculation not happening after using orgin group.

    overhead calculation not happening after using orgin group.
    There was a runtime error earlier related to u201Cdefine credit u201C IMG node under costing sheet component and we have applied SAP note 769946 and that error was gone out of the way
    We want to apply/add Overhead to SFG/FG materials.
    We are using PP order with PCC(product cost collector) as the cost object , i.e costing by period.(system ECC 6)
    But our problem is with material standard cost estimate process.
    We have assigned overhead keys to the percentage rates in costing sheet for material standard costing and assigned the origin groups to the credits of costing sheet. But after running the cost estimate overhead is not taking into account for standard cost calculation.
    In the define credit entry table key field is valid to date strangly and actually system should allow one than one entry with same valid to date and same sec.Cost element(type-41) for different cost centers.
    But if we without using overhead key and origin group, the entire cost in that supporting cost center will come to all materials (SFG/FG) and we can not distinguish between different product materials(SFG /FG).
    We have checked all things as mentined below.
    Firstly that the correct costing sheet is assigned to the valuation
    variant.
    That the costing sheet is entered for the appropriate material type:
    Finished and semi finished or material components.
    All of the above can be checked and verified via transaction OKKN.
    In addition make sure that the base value maintained is present in the
    costing, for example the base may include an Origin group, is that
    origin group part of the materials being costed?
    Similarly if the base is found and values exist how is the overhead
    rate of the costing sheet set up, is it valid etc.
    And finally do a similar check for the credit.
    we doubt this as a programm error...
    So, request all experts to have ur feedback..

    Dear,
    Check your origin group & material unit of mesaurement is same.
    some time in costing sheet origin group is maintain in different unit & for materail it's maitain in other unit of mesaurement.
    You can see unit of measure for material in Additional data - unit of measure.
    Check BOM component material unit also.
    Check same  unit of measure is maintain in KZS2
    I hope above will useful.
    GOPAN

  • Filtering My Open Task in SAP CRM based on Status, Transaction & Partner Function

    Hello
    Whenever i create a Task in SAP CRM, it displays that transaction in the My Open Task of all Business Partners involved in that Transaction.
    I want to restrict the My Open Tasks based on Transaction Type, Status and Partner Function.
    1) The system should work as it is for all other Tasks but for my Custom Transaction Type the logic should be based on status of the Transaction
    2) When My Open Task component is prepared the system should consider the Status and Partner Function as well i.e. if the status is Approval of Manager, the system should show the Open Task only to the Manager and not other parties.
    3) if the status of the Transaction is Open, the system should only display this Transaction / Task only to Employee Responsible and not to Manager and other people involved in their My Open Tasks.
    I have gone through the following post in SCN:
    https://scn.sap.com/thread/2056959
    I have implemented the method DO_PREPARE_OUTPUT as per the post but it does not do anything. When i redefine the method GET_QUERY_RESULT and remove everything,it does not prepare any list.
    If possible please specify which method needs to be redefined in the component/view CRMCMP_GS_WC/TodaysTasks & if possible please share the code that needs to be maintained in that method.
    Thanks

    Hi,
    Method DO_INIT_CONTEXT should be redefined
    This should be redifined to get the collections with your required filter criteria.
    * get the collection of entities for the tasks
       lr_col      = get_query_result( gc_status-open ).
    If this does not help, Delete the collections which are not required after above selection but before this code.
       me->typed_context->resultnew->collection_wrapper->set_collection( lr_col ).
    Thanks
    Ajay Singh

  • SRM PO failed: Indicator for GR-based invoice verification used not allowed

    Hi Friends,
        I have an issue with a specific PO failed to transfer from SRM to ECC. We are in ECS scenario, SRM 5.0 Service level 7.0. We are in process of SP upgrade but this issue occured in Production system which is still in old SP level(SP 7.0).
    when I check the App Monitor, I am see the following errors:  but the status shows Auto_Completed
    1. PO: Indicator for GR-based invoice verification used not allowed
    2. PO: Instance XXXXXXXXXX of object type PurchaseOrder could not be changed
    3.  PurchOrder XXXXXXXXXX: Purchase order still contains faulty items
    4.  PO XXXXXXXX: Indicator for GR-based invoice verification used not allowed
    I can see the PO copied over to ECC. but status in SRM PO shows 'Error in Process'.
      BBP_PD for object PO shows:  Created, complete, ordered, In Transfer to Execute, Change was Transmitted  as Inactive status.    Transfer Failed shows Active, Document completed, created.
    I checked BP Maintain  for the vendor and PO and its no different than other POs and Vendors except Vendor had 'Goods Receipt based Invoice Verification' indicator checked in SRM.
    I tried to simulate the same Material, Vendor with GR-IV indicator both on and off, it works fine. Ofcourse this is in Quality box with SP 15 level.
    So, I am not sure if SP level upgrade might help it or not? If there are any other means to test, please advise.
    thanks
    Rao

    I was wondering how I could liquidate the PO by either creating a new PO or ??.
    What you could do to revive the PO in question is that after the upgrade, and after a round of background jobs run for CLEAN_REQREQ_UP and BBP_GET_STATUS_2, ask the buyer to make a dummy change to the PO (for example, change the description of the PO) and order again. This would trigger the transfer to the backend again. And hopefully this time, no error would occur.

  • Result Analysis - Profit Percentage based on Revenue

    Deare Gurus,
    While executing Result Analysis, we see profit percentage on the right side as percentage onthe basis of costs. We would like to view such detail as a percentage of revenue
    eg: standard
    Revenue - 100
    Costs - 80
    Profit - 20
    Profit percentage = 20/80 = 25%
    We want it to be 20/100 = 20%.
    Please help!!!!

    Hi Babu,
    I think your example is not totally clear. From what I understand, you need to calculate a result in percentage based on the result of two other columns. What you can do is to use the first result (from the two columns) as a CKF. And then, to this CKF, use the result calcultation options of the query desinger for percentage.
    Hope this helps.
    Regards,
    Diego

  • Calculate percentage based on checkbox results in Numbers iOS

    Using Numbers iOS, I've created a gradebook to keep track of my students' progress.
    I have used the Checkbox format for my results, and I would like to create a formula that will calculate a percentage based off of the checked results.
    What formula could I use to convert the TRUE and FALSE results from my checkbox cells into 1s and 0s, add up the score, and then convert the total score into a percentage?
    I've attached a picture to help explain what it is I'm trying to do here. I'd like to keep the checkboxes cells as checkboxes and only have the results converted in the "Grade" Column.
    Thanks for your help!

    Hi joey,
    Here is an approach. The screenshot is from OSX but the formula should work well for you.
    The formula in F1 =COUNTIF(A1:E1,TRUE())÷5
    My reporting cell is formatted as %.
    quinn

  • How to find groups in domain based on input file of groups

    Hi,
    I want to find if groups exist in the domain based on a list of groups in a text file as follows.  My Get-AdGroup doesn't work, so Im looking for suggestions.
    $MyGroups = Get-Content -path c:\MyGroups.txt
    Foreach ($Group in $MyGroups)
                Get-Adgroup -filter 'Name -like "$Group"' -SearchBase "DC=MyDomain,DC=Com" -SearchScope SubTree
    Thanks in advance.
    Thanks for your help! SdeDot

    One additional suggestion - you need wildcards too, if you really want to use -like:
    Get-ADGroup -Filter "Name -like '*$group*'"
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Using Customized group name fields in Live Office

    Hello everybody,
    I've created a Crystal Reports based on a BEx Query and including a costcenter hierarchy. Now I want to add this report in Excel sheet via Live Office. I did this according to the official HowTos provided by Ingo Hilgefort. Now I've following issue. When I choose the data for the selected fields in Live Office, I could manage to insert the Live Office object into my report but the display of the cost center hierarchy nodes doesn't comply with the display in Crystal Reports. There I've defined a group with a customized group name field (costcenter.medium description) Live Office seems to use only the costcenter node ID.
    Crystal Report:
    Marketing und Vertrieb----
    63     63     63     63     0     0
    Vertrieb----
    54     54     54     54     0     0
    Vertrieb a----
    1     1     1     1     0     0
    Vertrieb a----
    3     3     3     3     0     0
    Vertrieb a----
    4     4     4     4     0     0
    Vertrieb a----
    2     2     2     2     0     0
    Vertrieb a----
    2     2     2     2     0     0
    Vertrieb a----
    3     3     3     3     0     0
    Vertrieb a----
    2     2     2     2     0     0
    Marketing----
    34     34     34     34     0     0
    Marketing a----
    3     3     3     3     0     0
    Live Office:
    1000H1.1000H1000.1000H1300----
    63      63     63     63     0     0
    1000H1.1000H1000.1000H1300.1000H1310----
    54      54     54     54     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3100-----1      1     1     1     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3105-----3      3     3     3     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3110-----4      4     4     4     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3120-----2      2     2     2     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3125-----2      2     2     2     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3130-----3      3     3     3     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3135-----2      2     2     2     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3140-----34      34     34     34     0     0
    1000H1.1000H1000.1000H1300.1000H1310.1000/3150-----3      3     3     3     0     0
    How can I use customized group name fields in Live Office?
    Thank you for helping me on my issue.
    Regards,
    Florian

    live office uses web services to authenticate (dswsbobje) which depends on a java app server for kerberos to be enabled to login with AD. Is Infoview working with AD? This would be required. I'm not sure about your other issues.
    Regards,
    Tim

  • Proper use of GROUP BY

    I wrote the view below to query orders that have shipped quantity from selected warehouse subinventories. I need to compute the total of unique orders and sum for a given date along with extended price.
    I have tried many SELECTs from SCO_REQSGROSS_V including
    select TRXN_DATE
    , count(*)
    , SUM(EXT_PRC)
    from SCO_REQSGROSS_V
    where trxn_date = to_date('30-AUG-2010')
    group by TRXN_DATE, order_num
    I need a count of all the unique order numbers and there ext_prc for each date in a given date range. I keep getting back the line counts. There is something wrong with my approach using the GROUP BY clause. Do I need to use a partition clause and how would this written?
    create or replace view SCO_REQSGROSS_V (
    TRXN_DATE
    , order_num
    , EXT_PRC)
    AS
    select TRUNC(transaction_date)
    , segment1
    , ext_price
    from
    -- lines
    SELECT DISTINCT prh.segment1
    , prl.line_num
    , ool.ordered_item item_number
    , mmt.trx_source_line_id
    , mmt.transaction_reference
    , ooh.order_number
    , prl.quantity
    , ROUND(ool.shipped_quantity * prl.unit_price,2) ext_price
    , mmt.transaction_date
    , mmt.subinventory_code
    FROM apps.po_requisition_headers_all prh
    , apps.po_requisition_lines_all prl
    , apps.oe_order_headers_all ooh
    , apps.oe_order_lines_all ool
    , apps.mtl_material_transactions mmt
    WHERE prh.requisition_header_id = prl.requisition_header_id
    AND ool.header_id = ooh.header_id
    AND prh.requisition_header_id = prl.requisition_header_id
    AND ooh.source_document_id = prh.requisition_header_id
    AND ool.source_document_line_id = prl.requisition_line_id ----(+)
    AND ool.line_id = mmt.trx_source_line_id
    AND mmt.transaction_type_id = 53 -- Internal Order Pick
    AND prl.source_type_code = 'INVENTORY'
    AND prh.authorization_status = 'APPROVED'
    AND prl.item_id = ool.inventory_item_id
    AND ool.shipped_quantity IS NOT NULL
    AND ool.subinventory = mmt.subinventory_code
    AND mmt.subinventory_code IN ('APPLIANCE', 'ELECTRICAL', 'ELEVATOR', 'FURNITURE', 'HARDWARE', 'HEAT'
    , 'JANITORIAL', 'JANIT 1', 'OFFICE', 'PAINT', 'PAPER RM', 'PLUMBING', 'SKIL', 'SURPLUS', 'TOOL', 'UNIFORM')
    )

    I ran this version of your code:
    select distinct trxn_date
    count(order_num) over (partition by trunc(trxn_date)) cnt_orders,
    sum(ext_prc) over (partition by trunc(trxn_date)) total_per_txn_day -- for total_prc per day
    from SCO_REQSGROSS_V
    where trunc(trxn_date) = to_date('30-AUG-2010');
    it returned one row and total_per_txn_day was correct at 51044.21. However cnt_orders was 303. This is nominally correct but not really what I am after because what I need is a count of unique order numbers.
    The logic
    SELECT * FROM
    FROM SCO_REQSGROSS_V
    where trunc(trxn_date) = to_date('30-AUG-2010')
    order by order_num;
    returns some duplicate order numbers. I want to count the unique order numbers but still include the ext_prc for all of the orders even the duplicates.
    Here is the first several rows of output from my query above. Desired cnt_orders is 3 and the total_per_txn_day is 1528.98:
    Date..........Order#.....Ext_Prc
    30-AUG-10     399884     90
    30-AUG-10     399893     108
    30-AUG-10     403664     114.48
    30-AUG-10     403664     68.7
    30-AUG-10     403664     100.02
    30-AUG-10     403664     114.48
    30-AUG-10     403664     139.04
    30-AUG-10     403664     43.04
    30-AUG-10     403664     49.8
    30-AUG-10     403664     120
    30-AUG-10     403664     55
    30-AUG-10     403664     198.41
    30-AUG-10     403664     129.6
    30-AUG-10     403664     198.41
    Thank you.

  • Use of group conditions in subtotal KZWIW

    Hi,
    I have a specific trouble in the use of group condition in sales order and billing.
    Condition Z001 is a group condition and should also update field kzwi2 as base information for condition Z002
    Condition Z002 is not a group condition and is  calculated based on informations stored in kzwi2. 
    When creating a document, the field kzwi2 is not updated directly (because Z001 is a group conditions) and the price should be redeterminated manually in order to allow the document to be considered as complete.
    Is there any settings that can avoir the manual recalculation of the price?
    Many thanks in advance,
    Nathalie Winand

    Hi Nathalie:
    See Note 1022966 - FAQ for the 'Subto' column (KZWIW) in the pricing procedure
    Perhaps it will help you
    Regards
    Eduardo

  • Using a group list in email and automatically sending out an email

    I have set up a group list in address book.  Each contact has 2-3 emails.  I am using Mail.  Currently when I have to send an email out to the group I have to select the group in address book, then choose "select all".  Select all only chooses 1 email per contact.  I then have to manually choose the 2nd and 3rd emails for each contact.  Is there any way I can use the group that I have created without having to go through all of that in order to send an email to my distirbution list?
    I blind cc'd my self on the original email I sent to the group and was using that one to "forward" but the problem I encountered was some people added, changed or fixed a correction in their email the forward did not reflect the change in the email.  I fixed the email in address book but it was not reflected in the original email--which I knew would happen.  Hopefully there is a better way to accomplish this!
    I also have to send out the same weekly reminder to this group--is there any way I cen set email to do this automatically?
    Thanks!

    Wow! This is what I've been looking for. I can't believe more people on this forum aren't complaining about not being able to use a Song List.
    Have you used this app?
    Is it stable?
    Can it be used with Logic LE, Garage Band etc.
    Thank you so much for this info.

Maybe you are looking for

  • How to set up facetime with iPad and MacPro that have the same Apple ID?

    I have a iPad and a MacPro both with the same Apple ID but they are different locations. I am using the iPad in NY and my husband is using the MacPro in a different location. I cannot call him on the MacPro with facetime. When I call the message says

  • Upgrading OS to Mountain Lion

    I have Mac OS X version 10.5.8 and would like to upgrade to lion and then to mountain lion in July.  How do I inow if I have the system requirements and what is the difference between upgrade and migration

  • Underlined Space Characters and Justifying to the Right

    Basically putting together an invoice which have a few fillable form sections that need to be justified to the right. Using the underscore key runs the risk of looking broken unless I want to play with the kerning. I considered using the line tool, b

  • Sound levels are not accurate

    Ok, so I added my video to the dvd and then in the main menu i added a music track but the music trac s blaring and then when the video plays the sound from that is much quieter. How do i bring down the levels for the music track i have just added to

  • Error Message in Saving during 'Packaging'

    I am trying to package an In Design file (about 250MB) that contains a few hundred images and Illustrator files. I have no issues when doing the pre-flight, ie no problem with links, fonts, etc. But after 4-5 minutes of trying package there is a simp