Variation of NthLargest - how to extract from a different field

Relative beginner with Crystal and 1st post here - please excuse if answer obvious:
I have 2 tables, one with static data describing contractors, the other with a table of rate history. So multiple rows per user, each with a  start date and the corresponding rate.
I can extract the whole history easily enough but if I want to just show the most recent rate I have a problem:
For the most recent start date I can create a field and use the formula NthLargest (1, {rates.startdate} )
But for the corresponding rate, what do I do?
Mike

Group your data by contractor and sort start date descending.
Place all your detail records in group footer and suppress details and group header
Ian

Similar Messages

  • How to extract the a date field from a text value?

    Hi,
                                      SAMLE TEXT       Date: 06-FEB-14 02:47:07
    I have sample column in flat file like mentioned above, i need to capture only the date from this column. Can anyone please help me on how to extract this date from the column?

    Dear Mohammed Shariff,
    My suggestion is check it in google you can find no.of formulas related to excel.
    Ur's
    Mohan

  • How to EXTRACT from one PHOTO to another

    How do I extract from one photo and place in another using PSE 19
    Message title was edited by: Brett N

    You probably mean PSE10 ---Typo?
    Use one of the selection tools, e.g. selection brush, lasso tool, to select the object on picture A.
    Go to Edit>copy to put it on the clipboard
    Open picture B
    Go to Edit>paste. A will be on its own layer
    Access the move tool to position A and to resize with the corner handles of the bounding box

  • NPD Metrics - how to extract from the database in a usable format

    Metrics for NPD activities and projects are stored in the database one row for each metric in each activity or project instance. If there are multiple metrics per activity instance, for example, extraction of those metrics yeilds only a list of metrics and values. I'd like to see it in more of a table style output. Can you provide some guidance on how to extract this from the DB using sql? Thx

    Here is the SQL that should help understand the structure. There are a few ways to pull this data in more of a column based approach. This should help you get started.
    select modml.baseName as MetricName, bases.name as Basis, ph.name as Phase,
    fy.name as FiscalYear, gl.Value as Value, UOM.ID as UOM, currml.Name as Currency
    from plmFieldExchangeGlobals gl
    inner join plmFieldExchangeDefinitions fed on fed.pkid = gl.FieldExchangeDefinitionPKID
    inner join plmFieldExchangeDefModels mod on mod.pkid = fed.fkFieldExchangeDefinitionModel
    inner join plmFieldExchDefinitionModelML modml on modml.fkFieldExchangeDefinitionModel = mod.pkid and modml.langID = 0
    inner join plmFieldExchangeBases bases on fed.fkFieldExchangeBasis = bases.pkid and bases.langID = 0
    inner join plmFieldExchangePhases ph on fed.fkFieldExchangePhase = ph.pkid and ph.langID = 0
    inner join plmFieldExchangeFiscalYears fy on fed.fkFieldExchangeFiscalYear = fy.pkid and fy.langID = 0
    left outer join UOM on UOM.pkid = mod.fkCommonUOM
    left outer join commonCurrenciesML currml on currml.fkCurrency = mod.fkCommonCurrency and currml.langID = 0
    where ProjectPKID = '320219992047-072a-4698-a553-de5ec124ff9c';
    Segal

  • How to Extract From Pool Tables

    Hi All,
    Can Somebody help with the Detailed Description how to extract the Data from Pool Tables from ECC to SAP BW
    Thanks
    Sam

    Option 1
    Create Infoset SQ02  on those tables and RSO2 - create generic ds
    Option 2 :Create functional Module and create generic ds using FM
    Replicate DS to BW and Build objects and map them in transformations and create dtp and IP
    Start extraction! .. please search for detailed steps in forum

  • Xpath in BPEL: How to extract from message type to string

    Hi all,
    I am currently trying to extract all content from a special message type to a string. The special message is really just simple XML.
    However, I wish to convert the special domain specific message to a string to send to another partnerlink.
    I figured that it would be a simple matter of using an assign / copy operation using the special message and the ora:getContentAsString function.
    This does not work :-(
    I get the following error in the domain log:
    ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:getContentAsString(bpws:getVariableData('businessEventBody'))", the reason is FOTY0001: type error.
    Please verify the xpath query.
    Does anyone have any ideas on how to solve this?
    Regards,
    Aagaard

    <p>
    Hi,
    </p>
    <p>
    Let me explain the scenerio:
    </p>
    <p>
    I XSD I have is:
    </p>
    <p>
    &lt;xs:schema xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"
    targetNamespace="**************"
    &lt;xs:element name="OrdDesc"&gt;
    &lt;xs:complexType&gt;
    &lt;xs:sequence&gt;
    &lt;xs:element name="ord" type="number10" /&gt;
    &lt;xs:element name="ord_name" type="varchar2150" /&gt;
    &lt;xs:element name=ord_add1" type="varchar2240" minOccurs="0" /&gt;<br /><br /> &lt;xs:element name="ord_add2" type="varchar2240" minOccurs="0" /&gt;<br /><br /> &lt;xs:element name="ord_city" type="varchar2120" minOccurs="0" /&gt;<br /><br /> &lt;xs:element name="county" type="varchar2250" minOccurs="0" /&gt;<br /><br /> &lt;/xs:sequence&gt;<br /><br /> &lt;/xs:complexType&gt;<br /><br /> &lt;/xs:element&gt;<br /><br />&lt;/xs:schema&gt;<br /></p><br /><p><br /><br /><br />The runtime XML I would get:<br /></p><br /><p><br /><br /><br />&lt;?xml version="1.0" encoding="UTF-8" ?&gt;<br /><br />&lt;Messages&gt;<br /><br /> &lt;Message&gt;<br /><br /> &lt;family&gt;New&lt;/family&gt;<br /><br /> &lt;type&gt;OrderCreate&lt;/type&gt;<br /><br /> &lt;id&gt;22&lt;/id&gt;<br /><br /> &lt;messageID/&gt;<br /><br /> &lt;routingInfo/&gt;<br /><br /> &lt;messageData&gt;&lt;![CDATA[&lt;!DOCTYPE *************"&gt;<br /><br /> &lt;OrdDesc&gt;<br /><br />  &lt;ord&gt;22&lt;/wh&gt;<br /><br />  &lt;ord_name&gt;Ord1&lt;/wh_name&gt;<br /><br />  &lt;ord_add1&gt;Park Avenue&lt;/wh_add1&gt;<br /><br />  &lt;ord_add2/&gt;<br /><br />  &lt;ord_city&gt;XYZ&lt;/wh_city&gt;<br /><br />  &lt;county/&gt;<br /><br /> &lt;/OrdDesc&gt;]]&gt;&lt;/messageData&gt;<br /><br /> &lt;/Message&gt;<br /><br /> &lt;Message&gt;<br /><br /> &lt;family&gt;New&lt;/family&gt;<br /><br /> &lt;type&gt;OrderMod&lt;/type&gt;<br /><br /> &lt;id&gt;22&lt;/id&gt;<br /><br /> &lt;messageID/&gt;<br /><br /> &lt;routingInfo/&gt;<br /><br /> &lt;messageData&gt;&lt;![CDATA[&lt;!DOCTYPE *************"&gt;<br /><br /> &lt;OrdDesc&gt;<br /><br />  &lt;ord&gt;22&lt;/wh&gt;<br /><br />  &lt;ord_name&gt;Ord1&lt;/wh_name&gt;<br /><br />  &lt;ord_add1&gt;Park Avenue&lt;/wh_add1&gt;<br /><br />  &lt;ord_add2/&gt;<br /><br />  &lt;ord_city&gt;XYZ&lt;/wh_city&gt;<br /><br />  &lt;county/&gt;<br /><br /> &lt;/OrdDesc&gt;]]&gt;&lt;/messageData&gt;<br /><br /> &lt;/Message&gt;<br /><br />&lt;/Messages&gt;<br /></p><br /><p><br /><br /><br />Now, the Msg type(&lt;type&gt;OrderCreate&lt;/type&gt;) I am referring to is not the part of XSD, it gets generated at the time message is created. That's why I don't see that tag in the payload. Payload shows the elements of XSD. <br /></p><br /><p><br /><br /><br /><br /><br />Please help.<br /></p>

  • How to extract from dll

    I have created a dll file and i have stored an image file in it. I want to extract it i mean i want to use it in my program now what should i do to extract that image file from dll.

    I have created a dll file and i have stored an image file in it. Why?
    I want to extract it i mean i want to use
    it in my program now what should i do to extract that
    image file from dll.How would you normally extract an imagine from a dll. If you don't know, I suggest you not put it in the dll.

  • How to extract from a string ?

    Hello , I have this string and I need to extract 4 parts (in bold) from the string , my string is :
    '(invoice) dear client : tom cruise you Buy *408* from MENA.CA @ *6.93* 01/10/09 watheeqa'
    What is the best technique to do that?
    Thanks

    Hi,
    oais wrote:
    Hello , I have this string and I need to extract 4 parts (in bold) from the string , my string is :
    '(invoice) dear client : tom cruise you Buy *408* from MENA.CA @ *6.93* 01/10/09 watheeqa'
    What is the best technique to do that?
    ThanksThat depends on how you know the 4 parts are what you showed, and not
    '<b>(invoice) dear client: tom</b> cruise you Buy 408 from MENA.CA @ 6.93 01/10/09 watheeqa'
    or
    '<b>(invoice)</b> dear client: <b>tom cruise</b> you Buy 408 from MENA.CA <b>@</b> 6.93 01/10/09 <b>watheeqa</b>?'
    or
    '(invoice) dear client: <b>tom cruise</b> you Buy 408 from MENA.CA @ 6.93 <b>01/10/09 watheeqa</b>'
    Will there always be exactly four parts you need to pick?

  • How to extract from XMLType

    hi
    I have XMLType field in DB. I must select data from this field but I am getting an error.
              OracleCallableStatement st = (OracleCallableStatement)conn.prepareCall (xmlQuery);
                    ResultSet res = st.executeQuery();       
                XMLType  xmltype =null;
                OracleResultSet rs = (OracleResultSet) st.executeQuery(xmlQuery);
                while(rs.next()){
                                            xmltype =(XMLType) rs.getObject("candidate_details");
                            xmltype.extract("/name/text()","/employee").getStringVal();
                           I am getting the following exception:
    java.sql.SQLException
         at oracle.xdb.XMLType.extract(XMLType.java:1427)
         at samplexmltype.XMLTypeForm.btnRead_actionPerformed(XMLTypeForm.java:494)
         at samplexmltype.XMLTypeForm.mav$btnRead_actionPerformed(XMLTypeForm.java)

    If retval contains the whole response including envelope, then obviously it doesn't start at "TICKETCreateRespMsg". You have to use the full path, or a descendant axis, but the former is preferred.
    Be aware of namespaces too, that's a common gotcha with XML.
    SQL> set serveroutput on
    SQL>
    SQL> DECLARE
      2 
      3    retval xmltype := xmltype('<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      4  <env:Header/>
      5  <env:Body>
      6  <TICKETCreateRespMsg xmlns="http://www.testurl.com/webservices/">
      7  <body xmlns="">
      8  <CreateTicket>
      9  <TICKET_NO>A-32758628</TICKET_NO>
    10  <SUMMARY>Test1</SUMMARY>
    11  <ERROR_MSG>Test2</ERROR_MSG>
    12  </CreateTicket>
    13  </body>
    14  </TICKETCreateRespMsg>
    15  </env:Body>
    16  </env:Envelope>');
    17 
    18    v_ticket_no varchar2(30);
    19    v_summary   varchar2(30);
    20    v_error_msg varchar2(30);
    21 
    22    v_ns_map    varchar2(200) := 'xmlns:env="http://schemas.xmlsoap.org/soap/envelope/", xmlns:ns1="http://www.testurl.com/webservices/"';
    23    v_xpath     varchar2(200) := '/env:Envelope/env:Body/ns1:TICKETCreateRespMsg/body/CreateTicket';
    24 
    25 
    26  BEGIN
    27 
    28   SELECT extractValue(retval, v_xpath || '/TICKET_NO', v_ns_map)
    29        , extractValue(retval, v_xpath || '/SUMMARY', v_ns_map)
    30        , extractValue(retval, v_xpath || '/ERROR_MSG', v_ns_map)
    31   INTO v_ticket_no, v_summary, v_error_msg
    32   FROM dual;
    33 
    34   dbms_output.put_line('TICKET_NO = '||v_ticket_no);
    35   dbms_output.put_line('SUMMARY = '||v_summary);
    36   dbms_output.put_line('ERROR_MSG = '||v_error_msg);
    37 
    38  END;
    39  /
    TICKET_NO = A-32758628
    SUMMARY = Test1
    ERROR_MSG = Test2
    PL/SQL procedure successfully completedEdited by: odie_63 on 17 avr. 2012 13:07

  • How to extract from the exception the reason for the failure

    I have a method that executes an sql update and fails.
    The description of the failure is:
    com.ibm.websphere.ce.cm.DuplicateKeyException: One or more values in the INSERT statement, UPDATE statement, or foreign key update caused by a DELETE statement are not valid because the primary key, unique constraint or unique index identified by "1" constrains table "XXX" from having duplicate rows for those columns.
    I didn't find a way of extracting the type of the exception (if there's one).
    I want to be able to assess the exception and to return a specific error message with
    the specific error explained.
    thanks
    Itamar

    One can alway catch the exceptions (java.sql.SQLException) and call its getErrorCode() method,
    but getMessage or getLocalizedMessage are fine also.
    In your case you have primary fields or indexes that require uniqueness of some fields across records.
    For instance if you have a composed primary key id+language and forget to INSERT the language.
    Off course you find the spot in the code by:
    try {
    } catch (....Exception e) {
        e.printStackTrace();
    }Another preventive way is to use PreparedStatements.

  • How to extract from string

    I know I have done this in CVI before..
    I just can't remember how I did it.. 
    (braindead today???!!!???)
    Here goes:
    Take a string:
    "Mary had a little lamb"
    FindPattern "little"
    resulting string:  ""Mary had a lamb"
    What I have works up to finding the pattern and it's location.
    -sigh-
    I know I'll kick myself because from what I recall, it's a very simple solution... I just can't think of it..
    And I vaguely remember the function name that I used...
    R
    Solved!
    Go to Solution.

    Thanks,
    I should have mentionned that the token in this case is a backspace '\b' character.
    The idea is to remove all backspace characters and the character preceding it.
    R
    Here's a sample of the data:
    [Counting] erozurozefozerczeroberozurozefozerczerobNumber of test Errors: 0

  • How to extract from YonYuu(u7528u53CB) U8 to BW

    Hi Chinese friends,
    I am now engaged in global DWH (BW) project in which data are gathered from branches in the world. One of the branches uses YonYuu(用友) as their system.
    what is the best way to extract data from YonYuu?
    it uses general DB like oracle, mssql so that I guess it is possible to extract directly from the DB. but I am not sure if it is practically very difficult becuase the modeling of yonyuu(ERP-U8) is too difficult.
    The data sources to be extracted is GL (hopefully like EC-PCA in SAP), order/back order, stock, purchase..
    I guess it is very general case to extract data from YonYuu ERP-U8 in China. So I hope if you share your experience in this case.
    Kind regards,
    Makoon

    If it uses general DBs like Oracle and MSS, then you should be able to connect via DB Connect.  If the data model is relational and you need to gather information from many tables, it may make sense to do some modeling on the source database.  For example, you can join tables via views and create the datasource from the view instead of the tables directly.  In any case, most of the time you have to wrap table in a view due to table/field name restrictions when using DB Connect.
    Regards,
    Mark

  • How to extract data for these fields from R/3 ?

    Hi frnds,
    My requirement is to extract the following fields which
    are related to MM: Condition type, condition
    value, Bill of lading, Qty in external delivery note,
    Different invoicing party, Invoicing document from R/3 to
    BI. But i found that they are not in any purchasing
    datasources or inventory datasources ( Except different
    invoicing party but the values are not picking up through
    standard extractors ).
    Anyone please tell me are there any standard datasources for extracting these fields ?
    If not, if i want to enhance datasources for these fields
    which datasource do i need to enhance i.e
    2lis_02_itm,2lis_02_scl,2lis_02_s012 or 2lis_03_bf,
    2lis_03_um ?
    Full points will be assigned.
    Regards,
    Bhadri M.

    Hi.......
    I think you have filled the set up table..........and you have replicate the datasource also.......and after replicating you have activated in the BI side........
    Then it should extract the data............
    Are you in BI 7.0...........
    You try one thing...............
    Replicate the datasource again............and then activate the transfer rules using program : RS_TRANSTRU_ACTIVATE_ALL...........
    Also check the selection tab of your Infopackage........may be you are giving some selection.........also check if it is coming till PSA..........if it is coming till PSA.....then check your transformation and DTP.......
    It may help you...........
    Regards,
    Debjani..........
    Edited by: Debjani  Mukherjee on Sep 21, 2008 11:18 AM

  • 2LIS_05_Q0TASK, or how to extract from a new table

    Hi All,
    I would like to enhance the Quality Management (in Lo Cockpit) extractors with own data. I have standard table appends and an own table which represent a sublevel of the task table QMSM. The appends are ok, I can enhance the standard extractors. But how can I use my new table in the BI?
    The key of the new table is this:
    MANDT
    QMNUM
    MANUM
    OUTCM  (char10)
    CODE    (char10)
    Please help.

    Hello Laszlo,
    If I would have understood your question,
    Once you are done with the datasource enhancement you have to replicate the same into BW side and you have to map the new fields to Comm Stru and finally your data target (InfoCube / ODS)
    Thanks
    Chandran

  • Extraction from SAP, hidden fields problem

    Hi Expeerts,
    I have the following problem / question:
    From an SAP Datasource (2lis_11_vaitm) we have some fileds, those are HIDED, and we need them. This is a central SAP, and a lot of BW systems connect to this SAP.
    The problem is, that we need a field from that datasource (and other BWs do not need), that has 'HIDDEN' option. The SAP side is afraid of having problem, when they just uncheck that option. (TELF1; KONDA fields we need).
    Does anyone know, what is the affects on other BW systems, when we unhide this fields? Of course we load with delta from this source.
    If a field is hidden in SBIW-Maintain Datasources, am I right, that the delta does not collect those fields, or it is collected, just not sent to BW systems?
    Any good idea, how can we get that fields in other way, because it seems, that the datasource cannot be modifyed, because of the other countries' BWs, connected to teh centra SAP.
    I hope i were clear, but if not, please ask me.
    Thanks for Your help.
    Laszlo
    Edited by: László Györkös on Jan 30, 2009 11:07 AM

    Hi,
    If a field is hidden in SBIW-Maintain Datasources, am I right, that the delta does not collect those fields, or it is collected, just not sent to BW systems?
    --> As hidden fields are already available in extract strucute, unhiding will not create any problem. As far as i know hidden means it will transfer data from extract structure to further.
    --> You can try pulling this particular data using generic datasource. OR
    --> Enhance datasource by adding required fields and use. OR
    --> Unhide files and use.
    Note: Bit careful while transpporting datasource to production as time stamp changes.
    Srini

Maybe you are looking for

  • Format Payments (Evergreen, Form Feed) unable to view XML output

    1. Changed the output type on this report to XML. 2. The report completes successfully and I can see the report in the $APPLCSF/out directory. 3. When I click the 'View Output' button in Oracle applications it says "Unable to find the published outpu

  • Framework Profile

    Hi Experts,           I have copied BuPaMoreContactView.htm view of CRM_IC BSP application into Z_CRM_IC appln. In Framework Profile setting, i have maintained the replacement Z_CRM_IC for CRM_IC. Also created one IC Webclient profile for the by copy

  • Reporting on the difference between to dates

    Hello, I was wondering if anyone has created a report that is able to provide the number of days left untill a date is reached in Opportunity report. This is what i got so far but it isnt working: TimestampDiff (SQL_TSI_DAY, Today(),Opportunity."Clos

  • Capturing trace of exception

    Suppose following stored procedure: PROCEDURE TEST_PRC IS BEGIN RAISE VALUE_ERROR; END; If I call this procedure in Sql*Plus, I get: BEGIN test_prc; END; ERROR in line 1: .ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SCH_PERSONEN.TEST_PRC

  • Initialisation Block as anonymous package

    Hi all, Does anyone have any experience in creating an initialisation block that executes a PL/SQL block and returns a cursor of data rather than a SQL command. So, something like a "declare......end;" rathern than "select col from table where....;"?