Calculate/overwrite level 1 data

<p>the following calculation generates the accurate value butdisplays in the wrong cell.</p><p> </p><p>"% Non-Quota entries pre-filed" = ("# ofPre-Filed Non-Quota Entries"->Month01 / "TotalNon-Quota Entries Filed"->Month01) * 100;</p><p> </p><p>in order for it to populate the correct cell i tried doingthis:</p><p> </p><p>"% Non-Quota entries pre-filed"<b>->Month01</b> =("# of Pre-Filed Non-Quota Entries"->Month01 /"Total Non-Quota Entries Filed"->Month01) * 100; </p><p>/* this doesn't work because    "% Non-Quotaentries pre-filed"<b>->Month01</b>     is an invalid member name.</p><p> </p><p>Month01  is a level 1 member with Week1, Week2, Week3,Week4, rolling up to it. How do I calculate and overwrite</p><p>"% Non-Quota entries pre-filed"<b>->Month01?</b></p><p> </p><p>I also tried including all dimension members by doing this:</p><p>"% Non-Quota entriespre-filed"->Actual->Year2006->GTO<b>->Month01</b>= ...etc</p><p>/* which are all level 0 members except for Month01. */</p><p> </p><p>please advise. thanks in advance.</p><p> </p>

Brent:<BR><BR>Since all the measures you want to use and populate come from the same time period, yoiu can use a FIX statement to accomplish what you want.<BR><BR>/* First FIX on the members of the non-Time dims you want to be populated */<BR><BR>FIX(@LEVMBRS(<i>TimeDimName</i>, 1), Actual, Year2006, GTO)<BR><BR>/* modify the FIX above to change the scope of your calculation */<BR><BR>/* Now do the math. The formula will spin through the Level One members<BR>of the Time dimension one by one, using the same time member for each account<BR>in the formula */<BR><BR>"% Non-Quota entries pre-filed" = "# of Pre-Filed Non-Quota Entries" /<BR>"Total Non-Quota Entries Filed" * 100;<BR><BR>ENDFIX<BR><BR>Beware the fact that rolling up the Time dimension will overwrite the monthly percentage with the sum of its children (weeks), so this formula needs to be executed after that.<BR><BR>Hope this helps.

Similar Messages

  • Informix / SQL Query to calculate Service Level Met %

    Hi,
    We have a client running UCCX 7.0 and we are upgrading it to 8.5.
    They have a custom .net application that display different stats on IP Phone. I have converted all of them except i am having problem calculating Service Level Met %
    Existing SQL query converts boolean into Float but Informix gives error that boolean can't be converted to float or integer.
    here is part of existing query (SQl Server) to calculate service level met %
    ROUND((SUM(CAST(ssl.metServiceLevel AS FLOAT))/COUNT(CAST(ssl.metServiceLevel AS FLOAT))) * 100,2) AS serviceLevelMet
    I will greatly appreciate if anyone can help converting this query into Informix query format.
    Thank you

    Hi Sonain
    Try this, it won't display a service level until you have received at least one call on the CSQ.
    SELECT csqsum.CSQName,loggedInAgents,talkingAgents,availableAgents,workingAgents,reservedAgents,servicelevel
    FROM  RtCSQsSummary csqSum left outer join
         (SELECT csqname, ROUND(sum(100 * (MetSL)/ (case when (MetSL + NotSL  = 0) then 1 else (MetSL + NotSL) end)) ) as servicelevel
            FROM(
                SELECT
                     trim( csqname) csqname
                    ,sum( case cqd.metServiceLevel when 't' then  1 else 0 end)  MetSL
                    ,sum( case cqd.metServiceLevel when 't' then 0 else 1 end) NotSL
                FROM ContactServiceQueue csq
                    inner join contactqueuedetail cqd  on cqd.targetID = csq.recordID
                    inner join contactroutingdetail crd on crd.sessionID = cqd.sessionID
                    inner join contactcalldetail ccd on crd.sessionID = ccd.sessionID
                WHERE Date(current) - Date(crd.StartDateTime ) = 0
                GROUP BY csqname
            )z
       GROUP BY z.csqname
        )y
    ON y.CSQName = csqsum.CSQName
    Please rate helpfull posts.
    Graham

  • Item level data in sap script

    Hello Friends,
    I have a report which prints Normal Tax invoice & Returns Tax, I modified this report just by adding one extra "delivery channel". The report call one more program which dose the printing job based on the delivery no.
    The issue, I can able to see the header data in th the print preview of the tax invoice, and not able to see item level data.
    Please help me how to resolve this issue.
    Regards,
    Shreekant

    Hi,
    You need to pass the line item data to the smartform/script. Please check in debug mode whether the data is passed correctly.
    Best regards,
    Prashant

  • Relationship between header and row level data.

    Hi all
    I need to know how to relate a field in the header level and the row level...
    On my row level i want the route id to be related to the route name field at the header level...instead of showing this route id  it must show only the header so...based on the row level data the header must change...
    I tried insertin the field but when i do a relate to on either fields its showing me only fields on that catagory ( Header only or Row Level only)
    Thanks

    The Header is evaluated and printed first and then only Repetitive area is computed and printed. You cannot try to arrive header based on the Repetitive area.
    Please explain in detail which screen etc.. so that we can suggest some work arounds

  • How to calculate the 'real data of arrival' in PO item

    Hi,
    Confirmation control keys with control type u201CDAu201D are MRP relevant
    1.     = New field time of transportation in calendar days
    2.     = Confirmation control type u201CABu201D (order confirmation)
    3.     = Confirmation control type u201CLAu201D (shipping notification)
    4.     = Confirmation control type u201CDAu201D (Date of arrival)
    When data 1-3 has been changed = 4 will be calculated again.
    Program requirements to calculate the u201Creal data of arrivalu201D:
    1.     When 1 >0 days then create 4 directly after placement of 2 (2 can be placed manually or automatically)
    2.     4 must be calculated: AB delivery date 2 + calendar date amount 1 = arrival date 4 (MRP gets a confirmed delivery      date by vendor plus transportation time)
    3.     When changes in 1 then change 4 (add calendar days to arrival date DA)
    4.      When changes in 2 then change 4 = u201Cnewu201D delivery date 2 plus calendar days 1 = new arrival date 4
    5.     When 3 u201CLAu201D is entered (manually/automatically) then calculate: shipping date LA 3 plus calendar days 1 = new arrival date in 4
    6.     When 1 has been changed then calculate 4 new (Check is 2 existing then use 2, check is 2 + 3 existing then use 3)
    7.     When 2 or 3 has been changed quantity then also update quantity in 4
    8.     When 2 has been canceled then cancel 4, too
    9.     When 3 has an inbound delivery document no. in place then copy the same no. in the inbound delivery field 4 and in the new column in MRP (MD04, see MRP view below)
    i have a lot of confuseging in this lines of code,even where u write i don't know in BADI . we are implement in BADI only.
    if possiable give me code for this requriment. . this line of code in which method we write,please guide me.............

    SDN is not your code factory, please research yourself before posting, maybe ask whoever handed you this requirement?
    Thread locked.
    Thomas

  • Difference between sales order schedule line and item level data

    Hi All,
    Could you please let me know what is the difference between sales order schedule line and item level data?
    Thanks,
    Ramya

    Hi Ramya,
    Sales order schedule line contains del date, order qty, rounded qty, confirmed qty, delivery qty, schedule line category, purchase requisition etc.,  ie It contains the full details of sales order data with respect to the scheduled line of delivery.  The total quantity of a sales order item can be subdivided into schedule lines that contain the various subsets with the corresponding delivering dates.
    Sales order Item level data contains details of the item in the sales order like material code, net price, net value, UoM, PO details, reason for rejection if any, material group,billing date, plant etc., ie this
    contains the full details of item irrespective of scheduled line.
    Regards,
    R. Senthil Mareeswaran.

  • Need a function to calculate employee attendance data for a given period

    need a function to calculate employee attendance data for a given period
    as
    Working days,
    CL ,
    SL,
    PL,
    LWP
    regards,
    Gaurav Sood.

    Issue resolved

  • Dont allow to change item level data in sales order.

    Hi all,
    I have a requirement in which, users should not be allowed to change  item level data or not allowed to add any new items in sales order on a certain condition. But they should be allowed to change the header level data.
    How can i achieve this.
    Can anyone help me?

    Hi,
    Check below exit.
    MV45AFZZ and in form USEREXIT_MOVE_FIELD_TO_VBAP.
    Here check for ur validation, If passes then CHECK variable SVBAP-TABIX. If it is 0 then item is created. If it is GT 0 then item is changed. Other way could be...
    select data from VBAP for each sales document and item in xvbpa internal table.
    If for any item u don't have data in VBAP table that means u r adding that item. So issue error message.
    *       FORM USEREXIT_MOVE_FIELD_TO_VBAP                              *
    *       This userexit can be used to move some fields into the sales  *
    *       dokument item workaerea VBAP                                  *
    *       SVBAP-TABIX = 0:  Create item                                 *
    *       SVBAP-TABIX > 0:  Change item                                 *
    *       This form is called at the end of form VBAP_FUELLEN.          *
    Thanks,
    Vinod.

  • Customer-based BP role, Company Code level data

    System ECC 5.0.
    May be somebody can help me in a problem with Company code level data for BP.
    I'm trying to create new BP in custom Z role (created by me), on company code data screen I cannot set "Company Code Is Valid for Customer" indicator on company code selection dialog box.
    I use custom Z role with assigned custom Z rolecategory (with active BP-customer syncronizaton), It seems that there is a missing setting in SPRO for rolecategory that activate possibility to enter company code data.....

    After some investigation.... the problem was not in customising, but in some requirements from code: BP role should have the same name as s BP rolecategory. After renaming it goes.

  • Payment terms should calculate Payment due date based on working days

    Hi Experts,
    As we know that standard SAP calculates Payment due date= base line date + number of days maintained in payment terms. In this payment days are considered as calendar days and not the working days.
    Example: If base line date is Thursday, payment terms says 3 days then payment due date is calculated as Sunday ( which is not a working day as per the factory calendar I use). The requirement is that payment date should be calculated as following Tuesday considering Satuarday and Sunday are not working days as per the calendar.
    Can you please suggest how can we achieve this?
    Thanks,
    Ravi

    You can not acheive from config pooint of view but you can use BADI and get the solution
    use BAdI MRM_PAYMENT_TERMS to set terms of payment
    You can use this Business Add-In to change the following fields for the 
    terms of payment in the invoice document header:                        
    o  ZFBDT: Base date for due date calculation                            
    o  ZBD1T: Discount days 1                                               
    o  ZBD1P: Discount percentage 1                                         
    o  ZBD2T: Discount days 2                                               
    o  ZBD2P: Discount percentage 2                                         
    o  ZBD3T: Deadline for net condition                                    
    o  ZLSPR: Key for payment block

  • Calculate due on date in incoming invoice based on p.date of purchase order

    We would like to calculate due on date in incoming invoice based on posting date of purchase order position. We want to be able to see the posting date of the purchase order lines from miro transaccion. Then we would add 85 days to calculate the due on date. I have tried to create an "item list variant" from OLMRLIST transaccion (Customizing - Logistics invoice verification) and add the posting date but it is not possible to access this value.
    Thanks in advance.

    Hi,
    have a look at badi MRM_PAYMENT_TERMS.
    Check as well OSS Note 1156325 - BAdIs in the Logistics Invoice Verification environment
    Best regards.

  • AUTHORIZATION ISSUE: cube level data restriction in BI

    Hi all,
    I have few cubes and ODS which are containing data. The requirement is to restrict the cube level data.
    Eg : we have option to see the cube data in RSA1( ADMIN WORKBENCH).Right click on cube manage data.
    the requirement is to restrict to see the data company code = 111(only)
    Likewise for few users only company code = 222.
    If they try to see other than 111, they should get u201Cno authorization messageu201D.
    Cube data               
    company code         distribution channel         account     amount
    111                         10                                   10002     100
    222                        20                                      10002     200
    333                        30                                       10002     300
    444                        10                                      10002     400
    1111                20                                       10002     500
    1111                30                                      10002     600
    2222               30                                           10002     700
    Thanks in advance.
    Jo

    Hi MaikI,
    Thank for the inputs.
    Actually i want restrict the data based on the ANALYSIS AUTHORIZATION - 0TCAIPROV.
    I want to give s_rs_comp-provider value *, and i want to control the query (data) access through analysis authorization. i want to create zanalysisauth which contains 0TCAIPROV = $variable.
    variable is populated with one/two provider values at runtime .
    based on the runtime variable population user should get access.
    But with this implementation user is able to open all queries.where i am going wrong? how can i do this?
    Regards,
    Joseph

  • Converted Crystal Statement Report not showing line level data properly

    Hi all,
    We have an issue with a Cystral-converted PLD Customer Statement layout behaving strangely when printing for a customer with multiple pages.
    When the statements are printed for a customer that has line level data which fills about an A4 page, this print absolutely fine; customer header data, line data etc. However, when we print for a customer that has more lines that can fit onto the one page, Crystal does the following:
    Page 1 - Customer Header info and column headers (OK); Line level info until bottom of page (OK)
    Page 2 - Customer Header info and column headers (MISSING); Line level info (ONLY ONE LINE APPEARS INDIVIDUALLY ON THIS PAGE BUT IS THE NEXT LINE CONTINUING FROM FROM THE PREVIOUS PAGE)
    Page 3 - Customer Header info and column headers (OK); Line level info until bottom of page (OK - CONTINUING FROM THE INDIVIDUAL LINE FROM THE PREVIOUS PAGE)
    Page 4 - Customer Header info and column headers (MISSING); Line level info (ONLY ONE LINE APPEARS INDIVIDUALLY ON THIS PAGE BUT IS THE NEXT LINE CONTINUING FROM FROM THE PREVIOUS PAGE)
    etc...
    So what basically seems to be happening is that every other page, Crystal just sticks in an individual line on it's own without any headers or anything OR other lines.
    Help please! Quite likely a 'Section Expert' issue but we don't know what setting could be causing this.

    Sounds like the report is trying to print multiple pages with blank pages in between, is the normal report ie details fit onto an A4 page printing with a blank back page?
    It will be page number resets and suppression of details on pagenumber = 2
    YOu need to go to section expert and go through each section noting what conditions have been suppressed and if any formula boxes are red then open and see what they do.
    Try turn conditions on and off and commenting out any formula conditiona and see what happens. By a process of elimination you should be able to work it out. However, you may have to stop the introduction of a blank page some how.
    Ian

  • J1IEX Item Level data Duty values Tab Screen

    Hallow Experts,
    In J1IEX - Capture / Post / Cancel Excise invoices transaction > Item Level data > duty values tab screen,
    System displays following information
    Excise duty Base Amount – Basic material Amount on which excise tax amount is calculated. (Pls. correct if I am wrong)
    Then information displays individually for BED, AED, NCCD, SED, ECESS This information is displayed in following four rows.
    Total Duty
    Credit available
    Credit availed
    Credit due
    Inventorized duties
    I want to know the description of above mentioned entries (e.g. – what is Credit available? What is credit availed? And what is credit due?) And at what level, which row entry is displayed, that mean while capturing excise invoice entry will be displayed in which row? After posting excise invoice entry will be displayed in which row?
    And after posting vendor invoice entry will be displayed in which row?
    Also please explain - What is Inventorized duty? And when it is to be displayed?
    Thanks in advance!!!!

    Hallow Experts,
    In J1IEX - Capture / Post / Cancel Excise invoices transaction > Item Level data > duty values tab screen,
    System displays following information
    Excise duty Base Amount – Basic material Amount on which excise tax amount is calculated. (Pls. correct if I am wrong)
    Then information displays individually for BED, AED, NCCD, SED, ECESS This information is displayed in following four rows.
    Total Duty
    Credit available
    Credit availed
    Credit due
    Inventorized duties
    I want to know the description of above mentioned entries (e.g. – what is Credit available? What is credit availed? And what is credit due?) And at what level, which row entry is displayed, that mean while capturing excise invoice entry will be displayed in which row? After posting excise invoice entry will be displayed in which row?
    And after posting vendor invoice entry will be displayed in which row?
    Also please explain - What is Inventorized duty? And when it is to be displayed?
    Thanks in advance!!!!

  • Burst child level data in email body

    Hi all,
    is it possible to burst child level(with respect to the request select level) data in an email body?
    To explain;
    Say I wanted to burst to email all the invoices a vendor had. This burst would send email separately to each vendor with an attachment of their invoices.
    However to achieve that, the select level has to be vendors(no?). So far so good.
    The problem then comes in when I want to the invoice numbers of a given vendor within the email body itself.
    Data structure looks like this
    <XXXX_SPLIT_DATA_TEST>
    <P_START_DATE>2011-06-06 00:00:00.0</P_START_DATE>
    <LIST_G_OTHERS>
    <G_OTHERS>
    <P_START_DATE>06-Jun-2011</P_START_DATE>
    <MY_START_DATE>2011-09-14T00:00:00.000-04:00</MY_START_DATE>
    </G_OTHERS>
    </LIST_G_OTHERS>
    <LIST_G_V>
    <G_V>
    <VENDOR>ACMEVENDOR1 INC</VENDOR>
    <VEN_NUM>50182</VEN_NUM>
    <VEN_SITE_CODE>MISSISSAUGA</VEN_SITE_CODE>
    <SITE_EMAIL>[email protected]</SITE_EMAIL>
    <CF_VENDOR_ID>36985</CF_VENDOR_ID>
    <CF_VENDOR_SITE_ID>44247</CF_VENDOR_SITE_ID>
    <LIST_G_INV>
    <G_INV>
    <INV_NUM>XO178539</INV_NUM>
    <AMT>20</AMT>
    </G_INV>
    <G_INV>
    <INV_NUM>XO178539-1</INV_NUM>
    <AMT>30</AMT>
    </G_INV>
    <G_INV>
    <INV_NUM>XO178539-5</INV_NUM>
    <AMT>100</AMT>
    </G_INV>
    <G_INV>
    <INV_NUM>XO178539-6</INV_NUM>
    <AMT>20</AMT>
    </G_INV>
    </LIST_G_INV>
    </G_V>
    <G_V>
    .....My burst control file looks like this
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/XXXX_SPLIT_DATA_TEST/LIST_G_V/G_V">
    <xapi:delivery>
    <xapi:email server="myserver" port="25" from="[email protected]"  reply-to ="">
    <xapi:message id="${CF_VENDOR_SITE_ID}" to="${SITE_EMAIL}"  attachment="true"
    subject=" New Invoices created for : ${VEN_SITE_CODE}">
    <! - Add invoices  belonging to Vendor- >
    Please find attached list of new invoices
    Regards,
    Acme Corporation
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="TEST_${VEN_NUM}_${VEN_SITE_CODE}.pdf" output-type="pdf" delivery="${CF_VENDOR_SITE_ID}">
    <xapi:template type="rtf" location="xdo://XXXX.TEST_INV_BURST_EMAIL_XXXX.en.US?getSource=true" filter=""></xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>  Any ideas?
    Thanks
    Kofi

    I was actually able to get it working myself, using the following:
    var mail;
    var address = "[email protected]";
    var firstname = firstname.rawValue;
    var lastname = lastname.rawValue;
    var location = location.rawValue;
    var date = date.rawValue
    var email = email.rawValue;
    var phone = phone.rawValue;
    var company = company.rawValue;
    var heardabout = heardabout.rawValue;
    var reasonforcall = reasonforcall.rawValue;
    var referredto = referredto.rawValue;
    var notes = notes.rawValue
    var subject = "New Prospect: "+ firstname + " " + lastname + " in " + location;
    body = "Date: " + date + "\n" + "Last Name: " + lastname + "\n" + "First Name: " + firstname + "\n" + "Phone: " + phone
          + "\n" + "Email: " + email + "\n" + "Company: " + company + "\n" + "Location: " + location + "\n" + "Heard about us from: " + heardabout
           + "\n" + "Reason for call: " + reasonforcall + "\n" + "Referred to: " + referredto + "\n" + "\n" + "Notes: " + "\n" + notes;
    mail = "mailto:" + address + "?subject=" + subject + "&body=" + body ;
    event.target.submitForm({cURL: mail, cMsg: cBody, cSubmitAs: "PDF",cCharset: "utf-8"});

Maybe you are looking for

  • Adobe Photoshop CS6 Extended Activation Issue

    After installing Adobe Photoshop CS6 Extended with the Serial Number, it became Trial version. Telling me to insert Serial Number every so often. Any Solution?

  • Xml validation in File to RFC Sync Scenario with Validation fails message

    Hi All, We are using PI 7.4 (Dual Stack) the Requirement is File to RFC Sync Scenario(File <---> RFC).and need to do XML validation against XSD Schema. if any Validations fails Response message should send back to sender.RequestResponseBean standard

  • AGO and TODATE functions

    I want to use the AGO and TODATE functions to calculate a measure for the selected year and the year before, as well as a year--o date measure, but cannot get it to work. It fails with the following error: A general error has occurred. [nQSError: 220

  • Is my Mac good enough really?

    I think that I have the minimum Mac requirements for FCE HD. Does anyone out there have a mac similar to mine that can attest to FCE HD working properly or you being able to use all of its functions/ options? Thanks for the feedback (in advance), Jos

  • Back up /sync fail

    everytime i back up or sync itunes freezes....and when it does work i get a pop up message saying ''itunes could not back up because the back up could not be saved on this computer''......help?!?!?