Calculate when With 15% of Target

How would I calculate when my actual value is within 15% of
my target?
e.g lets say my my actual is 65 and 15% of my target is 75
then this is within the mark. but if my actual is 90 and 15% of
target is 75, this will fall out of the 15% Target.
I am only interested in the
Actual values that is with 15% of the Target. Any values out
side the 15% Target value range is not considered.
Thanks

eziokolo wrote:
> I don't know if the where clause will be helpfull here,
because I need to retrieve this in a select statement with other
columns of the database table.
That is where the 'somefields' comes in. A slightly reworded
example.
SELECT aField,bField,cField,etcField
FROM aTable
WHERE valueField BETWEEN targetValue*0.85 AND
targetValue*1.15
OR
SELECT aField,bField,cField,etcField
FROM aTable INNER JOIN bTable ON (aTable.key =
bTable.foreignKey)
WHERE valueField BETWEEN targetValue*0.85 AND
targetValue*1.15
Some of this will depend on where the targetValue is coming
from, is it
other data in the database or is it from some source external
to the query?

Similar Messages

  • Issue in OWB mapping - when changing source and target database

    Hi,
    I need help for resolution of the issue I am facing when moving mapping from development environment to QA.
    Here is situation,
    We develop ETL using one source, one staging and one target database.
    In development we use one control_center for Source to staging and another control center staging to target.
    All works fine in development.
    Now I have created new runtime repository and imported all OWB projects (with full dependencies, exact replica of development). Now I need to change source and staging and target as different database.
    I have created new database location connections and defined/attached DB connectors with stage and target location.
    Now issues are
    1.     Two Staging mapping are not able to bound with source table (giving different error
    a.     One mapping show error for source synonym translation no longer valid when deploying this mapping , but validation comes without any issue)
    b.     Other mapping show error for source table/object not bound to repository
    2.     All the target mapping show validation successful, but when deploying says “table or view does not exist”. But tables are exists on source stage and target. (also permission are set correctly for target user to read from staging tables).
    Not sure how to proceed from here.
    I have recreated new repository and re-imported all project/mappings and defined all connection but still same issue.
    Thanks in advance,
    Vipin

    1. Two Staging mapping are not able to bound with source table (giving different error
    a. One mapping show error for source synonym translation no longer valid when deploying this mapping , but validation comes without any issue)
    b. Other mapping show error for source table/object not bound to repository
    The above error were resolved when re-synchronized the table (for few I have to reimport the table) and mapping.
    2. All the target mapping show validation successful, but when deploying says “table or view does not exist”. But tables are exists on source stage and target. (also permission are set correctly for target user to read from staging tables).
    The above error still pending. My target mapping are not able to deployed/compiled.
    For the above I have defined one Staging location to one target target location and target location have connector to staging (not sure if I have to define connector name same as staging location, as I have created DB connector with different name but reference database is same as staging location).
    Mapping are assoicated with desired data locatoin and meta data.
    control center is also have that data location.
    Mapping are configured for the desired location.

  • Help needed in OIM 11g with respect to Target Recon

    Hi Experts,
    I have OIM 11.1.1.5.0 installed with AD Connector configured. We have 3 AD instances, so we have cloned the full AD Connector to "A_AD_RO User", "B_AD_RO User" and "C_AD_RO User" resourced with separate-separate Process defn, scheduled task, lookups and IT resource
    When I am doing target recon based on "emailID" as key from respective ID, the reconciliation events gets generated and I can see the event in Recon Manager with "No Match Found", even though the user with valid email id is present in the OIM.
    Once I do re-evaluate of reconciled user, the user target gets linked with the correct user.
    Problem: Everytime, I need to go to Recon Manager, and manually click on "Reevaluate Event", then only the target AD is getting linked to user.
    How to set it automatically?
    Has anyone faced this kind of issue?
    Any suggestion which I can apply to skip "Reevaluate Event" manually to link user with target.
    Regards,
    J
    Edited by: J_IDM on Mar 19, 2012 6:35 AM

    A few things to check.
    On the resource object, reconciliation tab. Check the recon action rules. The Entity Match is the one that matches a user to the target data if the user does not have an instance on their profile.
    Check your reconciliation rules. Make sure that you have a rule for each resource, and that it is in an active state. Also make sure the rule is a valid matching rule.
    For each resource workflow, there are configuration lookups. You must be VERY careful when cloning a resource to go through every lookup that is duplicated and make sure the values are all for the new resources.
    It sounds like you used the same adapters for every instance. This will cause a problem because there are hard coded form values in the adapter, so you will need to change those to have an input so you can specify the value for each instance. Otherwise, every provisioning task will look for the objectguid from the original workflow.
    There are lots of updates you must perform to make sure they work correctly during a clone.
    Once you have done all these, try and run your recons again, and make sure you wait till the recon completes so it processes the events in the correct bulk amounts.
    -Kevin

  • [svn:fx-4.0.0] 13615: fix airframework/build. xml so the en_US _rb does not become corrupt when the other. locales target is run.

    Revision: 13615
    Revision: 13615
    Author:   [email protected]
    Date:     2010-01-18 20:59:14 -0800 (Mon, 18 Jan 2010)
    Log Message:
    fix airframework/build.xml so the en_US _rb does not become corrupt when the other.locales target is run.
    -removed the redundant en_US call in the other.locales target
    -added a clean for locales that will only remove the locale being built before rebuild - not all of the locales
    -add updated dita that does not contain spark references
    QE notes: 
    Doc notes:
    Bugs: no but Pete and I discussed briefly
    Reviewer:
    Tests run: doc and other.locales
    Is noteworthy for integration:
    Modified Paths:
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/build.xml
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/de_DE/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/fr_FR/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/ru_RU/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/zh_CN/docs/packages.dita

    What kind of projects are they (Struts/JSF/Hibernate)? Does the working project differ in any way with other two apps?
    What exactly is not working? Are they recognized by workshop as Struts/JSF/Hibernate app?
    Please send the .log to [email protected]

  • Drag and Drop Interaction with 50+ Drop Targets

    Hello,
    I'm fairly new to Captivate 7 but very familiar with Flash. I'm tasked with a project that I would like to do with the drag and drop interaction widget from Captivate 7. Basically, we need our learners to identify the locations of our resorts on a map. Select the name of the resort, drag and drop it in the city/state or country where located. My question is can Captivate handle this task? To me, it seems as a large task for Captivate to handle, and so I was thinking of coding it in Flash.
    Here is what I need:
    1.- List of all the properties at bottom with the drop target being a map of the US or world and have the location for each property as the drop target.
    2.- When the resort/property is selected, the name will change to the three letter code. Example: New York City, when clicked = NYC and the map itself to reflect the 3 letter code once dropped on the map if correct.
    3. If incorrect, the listed item will revert to the long name and return to the list.
    4. If this can be graded, it would be best.
    I can break the project into different regions but if I wanted to keep all 300+ properties in one module, will it be an issue? At the very least, I would need to do a minimum of about 50 per module.
    Thanks all! I've found this forum to be extremely helpful and the members seem to be eager to help.

    var matchingTargetName:String =(event.target.name).substring(0, 1);
    Change the name of the target to A and B and the mc A1, A2, A3, A4... and B1, B2,B3...

  • Automatic calculate when opening a file returns #REF error

    We have a workbook which uses a custom function defined in an addin.  
    we need to send this workbook to our colleagues which is without the addin
    Previously in office 2003 and 2007, this is not a problem.  values will be shown in the custom function
    however, in excel 2010, as excel 2010 will always calculate when it is connecting to a xls workbook, our colleagues does not have the addin, and thus a #REF error occurs.  
    Therefore, any solution about opening it (with the source addin open) and saving would NOT work in this case
    Is there a way to modify excel 2010 such that it behaves just like 2003 or 2007

    Re:  function not working
    1.  Add the add-in function code to a standard module in the workbook.
      -OR-
    2.  Copy and paste values into the workbook cells containing the function.
    Jim Cone
    Portland, Oregon USA
    free Excel Date Picker add-in at...
    (no registration, no ads, no trackers, no cookies)
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • What to do about Backup failed with error: The target volume is read-only

    This is a weird story. My wife has a PowerBook G4/1.33 GHz that she uses in clamshell mode with a 20" Cinema Display. One day under OS X 10.5.6, her Time Machine backups (to a networked 500 GB Time Capsule) failed with the error: Backup failed with error: The target volume is read-only. So I upgraded her to 10.5.7 and erased the sparseimage file, starting a new Time Machine backup. And it just happened again. Any idea how this sort of problem arises? My wife was doing something at her computer when the Time Machine error occurred.
    Please don't advise us to upgrade to 10.5.8, because her PowerBook freezes not infrequently with any OS later than 10.5.6, and I was just about to downgrade her from 10.5.7 to 10.5.6.

    Pondini wrote:
    odysseus wrote:
    This is a weird story. My wife has a PowerBook G4/1.33 GHz that she uses in clamshell mode with a 20" Cinema Display. One day under OS X 10.5.6, her Time Machine backups (to a networked 500 GB Time Capsule) failed with the error: Backup failed with error: The target volume is read-only. So I upgraded her to 10.5.7 and erased the sparseimage file, starting a new Time Machine backup. And it just happened again.
    Try repairing the sparse bundle, per #A5 of the Time Machine - Troubleshooting *User Tip,* also at the top of this forum.
    I've tried this before, but it can't be repaired, because it can't be mounted.
    Any idea how this sort of problem arises? My wife was doing something at her computer when the Time Machine error occurred.
    One possibility is, the HD in the Time Capsule is beginning to fail (all HDs fail, sooner or later).
    I'm backing up to my own sparseimage bundle just fine.
    Please don't advise us to upgrade to 10.5.8, because her PowerBook freezes not infrequently with any OS later than 10.5.6, and I was just about to downgrade her from 10.5.7 to 10.5.6.
    Those two things may be related. Whatever's going wrong may very well be what's corrupting the backups.
    I'd recommend finding out what's wrong with the Powerbook. It's impossible to tell, of course, but that may be the root of the problem.
    There's a problem with PowerBooks and Cinema Displays. I've posted a lot about this. Even after a motherboard replacement, my PowerBook G4/1.67 GHz had freezes, and eventually Apple gave me a MacBook Pro, but I think there's a failure involving hardware/software design.
    If you haven't yet, I'd start by dong a +*Verify Disk+* on it's internal HD (also per #A5);
    That checks out fine.
    if there are no errors, or they're fixed and the problem continues, run the +Apple Hardware Test+ from the disc that came with the Mac. (One of the discs should have that, and instructions for running it, printed in tiny type on the label).
    If still no help, I'd be inclined to do an +Archive & Install, preserving users & settings,+ of Leopard, then download & install the appropriate "combo" update. That's a combination (thus the clever name) of all the updates to Leopard since it was first released, so installing it should fix anything that's gone wrong since then, such as with one of the normal "point" updates. Info and download available at: http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate (change the last "8" to the desired number). Be sure to do a +Repair Permissions+ via Disk Utility (in your Applications/Utilities folder) afterwards.

  • When it is update target cost in product costing ?

    What is standard cost  ? when it is update target cost cost  in product costing ?

    hi
    target cost normally update when you calculate variance. Target cost is the plan cost on actual quantities confirmed
    u can check the following threads
    Target Cost Update in Production Order
    Target cost update on Production Order
    Target Cost in Production Orders
    You will get to know more about target costs
    krishna

  • I have compiled a program for a target after I added a new vi from NI_AALPro.lvlib. The addition worked fine on my development computer but gave me errors when run on the target.

    I have compiled a program for a target after I added a new vi from NI_AALPro.lvlib. The addition worked fine on my development computer but gave me errors when run on the target.
    The box displayed:
    Missing subVI NI_AALBase.lvlib:1D Linear Evaluation.vi in VI NI_PtbyPt.lvlib:Linear Fit PtbyPt.vi
    Missing subVI NI_AALPro.lvlib:MSE.vi in VI NIPtbtPt.lvlib:Linear Fit PtbyPt.vi
    What do I need to do to bring the correct library into the transportable code?

    Hello,
    I was unable to reproduce the behavior that you saw.  I was able to deploy my application with the Linear Fit PtByPt without issues.
    Could you attach the smallest piece of code that reproduces this behavior so that I can test it as well?
    Justin Parker
    National Instruments
    Product Support Engineer

  • HT1661 How can I restart my mac book pro 11 inches when it's on target disc mode

    How can I restart my mac book pro 11 inches when it's on target disc mode

    Even if you could open Disk Utility you can't reformat a disk while you are booted from it. You will have to use the install CD. Ring the Apple Online Store at the number given at bottom left of this page and give them the serial number of your Mac. You should be able to get the Snow Leopard install disks for a nominal fee.

  • How do I keep the source document open when linking to a target document using the destination option in Adobe X?

    How do I keep the source document open when linking to a target document using the destination option in Adobe X? Have several links to create in the source document and want to keep the source document and target document open at the same time.

    Go to Edit - Preferences - Documents and un-tick "Open cross-document links
    in the same window".

  • I was almost finished installing a trial of Acrobat XI when with 2 seconds left, an error occurred

    I was almost finished installing Acrobat XI trial when with 2 seconds left, an error occured and now nothing is happening. What do I do next and how?

    Hi Bettyanne,
    Please let me know the OS you are using and the exact error message that apeared.
    If the files have already been downloaded then try running the setup.exe file to see if the installation initiates.
    You might want to retry the download and check again.

  • [svn] 4488: Attempt to fix the heap-space issue with the doc target.

    Revision: 4488
    Author: [email protected]
    Date: 2009-01-12 12:10:58 -0800 (Mon, 12 Jan 2009)
    Log Message:
    Attempt to fix the heap-space issue with the doc target.
    Also removing some unused code.
    QE Notes: None
    Doc Notes: None
    tests: checkintests
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/airframework/build.xml
    flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
    flex/sdk/trunk/frameworks/projects/flex/build.xml
    flex/sdk/trunk/frameworks/projects/flex4/build.xml
    flex/sdk/trunk/frameworks/projects/framework/build.xml
    flex/sdk/trunk/frameworks/projects/haloclassic/build.xml
    flex/sdk/trunk/frameworks/projects/rpc/build.xml
    flex/sdk/trunk/frameworks/projects/utilities/build.xml
    flex/sdk/trunk/frameworks/projects/wireframe/build.xml
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocAPI.java
    Removed Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/PumpStreamHandler.java

    1. Tell more about it, e.g.: OS, a sun jdk or a ibm jdk? 32-bit or 64-bit?
    for ibm jdk, look for *.hpd file within the dir.
    for sun jdk, add startup option -XX:+HeapDumpOnOutOfMemError
    Then analyze them with heap analyzer.
    2.MaxPermSize=1024m so big space for class files, really necessary?

  • Does CTS+ work with SLD transport targets for ID transports?

    Hi,
    does CTS+ work with SLD transport targets for ID transports?
    did any of you ever used it ?
    thank you,
    Regards,
    Michal

    Hi Michal
    I would be interested to find out about this..
    Hopefully this new project will use 7.1 and Basis are doing all the SLD and the CTS+ config..
    I have every faith in them!!!!  :-O
    There is a document about transporting repository and directory objects, but every version I have found is corrupt - or I cannot open in Adobe...
    You may have more luck!
    Change and Transport System
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bbbd55-5004-2a10-f181-8bb096923cb6
    "This How-to Guide explains step–by-step how to set up the enhanced Change and Transport System (CTS) for use in conjunction with usage type Process Integration (PI) of SAP NetWeaver (formerly known as SAP NetWeaver Exchange Infrastructure or SAP NetWeaver XI). CTS introduces a new transport handling mechanism that offers tighter integration for the transport of ABAP, Java, and Integration Builder objects (Integration Repository and Integration Directory) using the Change and Transport System (BC-CTS) functionality."
    Maybe in six weeks I can actually answer this for you!  I'm sure you'll have the answer by then!

  • Calculate numbers with digits

    Hi all,
    Can someone tell me how to calculate numbers with digits.
    Let me explain first. The price comes in a xml format like: <price>2,90</price> (comma instead of dot)
    var price:String = XML(dgProducts.selectedItem).child("price").toString();
    total += Number(price); --> this won't work, if I use 2.90 there is no problem.
    So, how can I fix this?
    Hans

    Try using NumberBase's formatDecimal property to first convert it to "." separated and then using parseNumberString method of it to extract Number.
    then do calculation and finally you can convert to comma separated again.
    Formatted Object always returns a string .
    check this ref link.
    http://livedocs.adobe.com/flex/3/langref/mx/formatters/NumberBase.html
    mark post accordingly if it helps.
    Cheers,
    Prad.

Maybe you are looking for