How do I calculate days from two different dates in XI/PI?

Hi all,
How do I calculate days from two different dates in XI/PI?
my requirement is to pass the number of days to target field from two dates.
Current date : 14/04/2010
Standard date: 01/01/1957 is the standard = day 0
Is it possible in graphical mapping with out udf?
Plz help me on this I have donu2019t have much knowledge on JAVA.
Thanks

Hi Yadav,
Probably this is not the correct forum for XI / PI .
You can post the same to...
Process Integration (PI) & SOA Middleware
Hope this helps.
Regards
Raj

Similar Messages

  • How do I calculate days from two different dates?

    Hi all,
    How do I calculate days from two different dates?
    my requirement is to pass the number of days to target field from two dates.
    Current date :  14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out  udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How to calculate AGE from two different date fields

    hi
    I need to calculate AGE from two different date fields.
    Can some help me how to do, when i try to do substraction formula it is showing error.
    Thank You
    Manu

    Manu wrote:
    Hi
    Both fields are in date format only, i need to calculate no . of days between two different dates
    Thanks
    ManuThe reason for the question about the format of the column is because the simplest solution only works on DATE columns. Others have mentioned this here, but if you want the difference between two date fields, you can use this formula:
    TIMESTAMPDIFF(SQL_TSI_DAY, date_column1, date_column2)
    The above being said, you still didn't tell me what you did, or what error message you received. So again, if the above formula didn't work, what did you do? Where did you put the formula? What was the exact syntax you used? What was the error message you got?
    Please don't make us work more than we need to. Answer all the questions in your next post. Thanks.

  • How can I transfer songs from two different itunes?

    I want to transfer songs from my brother's itunes library to my shuffle, but when I plug it in his computer, a message saying that his library is not linked to my library (or something to that extent) and whether I would like to replace the songs. If I click yes, all my existing songs are replaced with HIS songs. If I click on NO, the Shuffle icon does not appear at all and I cannot transfer any of his songs to my shuffle. How can I transfer songs from two different computers into my shuffle without replacing any of my existing music?
    Shuffle   Windows XP  
      Windows XP  

    You'll have to setup your iPod to manual instead of automatic update (I'm not sure, though, if it works with the Shuffle as well).
    Alexander.

  • HT4061 How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases?

    How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases? I want my music to match on both ipad and computer.

    Purchases are forever tied to the AppleID they were bought with. There is currently no way to consolidate AppleIDs. Sorry.

  • How can I use music from two different iTunes accounts?

    how can I use music from two different iTunes accounts?

    If you mean iTunes Store accounts, there's really nothing for you to do. Just add the tracks to the iTunes library and play them. Music purchased prior to late-2009 will been to be authorized, though. Pull down Store > Authorize... and type the credentials of the Apple ID used to buy the tracks.
    If you mean something else, please describe in more detail.

  • Plotting x and y axis from two different data

    Hi everyone,
    I've just started using LabView on my new job. My new task is to create a VI to display a plot an XY graph from two data. How do I actually assign the two different data (X and Y axis resepctively)and plot them out on a same graph??
    Please help me out... my job is on the line!

    Other may post an example for you.
    I will tell how to find this and many other answers.
    Do a "Find Examples" from either the LV open screen or from the Help drop down.
    LV ships with examples that demonstrate almost every basic operation.
    One of the big benifits of these examples is that they work! If they do not, NI is interested in finding which ones do not.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can I select events from two different channels?

    Hi everybody, I have another question! :)
    When processing events in config.xml, using a CQL sentence, Eclipse compiler doesn't allow me to select more than one event.
    I paste here my app.context.xml and my config.xml:
    app.context.xml:
    <wlevs:event-type-repository>
    <wlevs:event-type type-name="HorseEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.HorseEvent</wlevs:class>
    </wlevs:event-type>
    <wlevs:event-type type-name="GunmanEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.GunmanEvent</wlevs:class>
    </wlevs:event-type>
    </wlevs:event-type-repository>
    <!-- Adapter can be created from a local class, without having to go through a adapter factory -->
    <wlevs:adapter id="sevenhorsesAdapter" class="com.bea.wlevs.adapter.example.sevenhorses.SevenHorsesAdapter" >
    <wlevs:instance-property name="messageHorse" value="I am the horse number: "/>
    <wlevs:instance-property name="messageGunman" value="I am the gunman number: "/>
    </wlevs:adapter>
    <wlevs:channel id="horseInputChannel" event-type="HorseEvent" >
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <wlevs:channel id="gunmanInputChannel" event-type="GunmanEvent" >
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <!-- The default processor for OCEP 11.0.0.0 is CQL -->
    <wlevs:processor id="sevenhorsesProcessor" />
    <wlevs:channel id="horseOutputChannel" event-type="HorseEvent" advertise="true">
    <wlevs:listener>
    <bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
    </wlevs:listener>
    <wlevs:source ref="sevenhorsesProcessor"/>
    </wlevs:channel>
    <wlevs:channel id="gunmanOutputChannel" event-type="GunmanEvent" advertise="true">
    <wlevs:listener>
    <bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
    </wlevs:listener>
    <wlevs:source ref="sevenhorsesProcessor"/>
    </wlevs:channel>
    And here you are the two config.xml, I have tried two different ones and none of them runs.
    The first one is:
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>sevenhorsesProcessor</name>
    <rules>
    <query id="horsesRule">
    <![CDATA[ select * from horseInputChannel
            ]]>
    </query>
    <query id="gunmansRule">
    <![CDATA[ select * from gunmanInputChannel
            ]]>
    </query>
    </rules>
    </processor>
    </n1:config>
    As you can see, I use here TWO CQL sentences from the two channels that are defined in app.context.xml.
    The other one is:
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>sevenhorsesProcessor</name>
    <rules>
    <query id="horsesRule">
    <![CDATA[ select * from horseInputChannel, gunmanInputChannel
            ]]>
    </query>
    </rules>
    </processor>
    </n1:config>
    I use here only ONE CQL sentence in which I try to get events from the two channels that are defined.
    None of them works.
    Can anybody help me?
    Thank you!

    Hi! Here you are the files you required:
    SevenHorses.context.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd">
    <wlevs:event-type-repository>
    <wlevs:event-type type-name="HorseEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.HorseEvent</wlevs:class>
    <wlevs:properties>
    <wlevs:property name="messageHorse" type="java.lang.String"></wlevs:property>
    </wlevs:properties>
    </wlevs:event-type>
    <wlevs:event-type type-name="GunmanEvent">
    <wlevs:class>com.bea.wlevs.event.example.sevenhorses.GunmanEvent</wlevs:class>
    <wlevs:properties>
    <wlevs:property name="messageGunman" type="java.lang.String"></wlevs:property>
    </wlevs:properties>
    </wlevs:event-type>
    </wlevs:event-type-repository>
    <!-- Adapter can be created from a local class, without having to go through a adapter factory -->
    <wlevs:adapter id="sevenhorsesAdapter" class="com.bea.wlevs.adapter.example.sevenhorses.SevenHorsesAdapter" >
    <wlevs:instance-property name="messageHorse" value="I am the horse number: "/>
    <wlevs:instance-property name="messageGunman" value="I am the gunman number: "/>
    </wlevs:adapter>
    <wlevs:channel id="horsesInputChannel" event-type="HorseEvent">
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <wlevs:channel id="horsesInputChannel2" event-type="HorseEvent">
    <wlevs:listener ref="sevenhorsesProcessor"/>
    <wlevs:source ref="sevenhorsesAdapter"/>
    </wlevs:channel>
    <!-- The default processor for OCEP 11.0.0.0 is CQL -->
    <wlevs:processor id="sevenhorsesProcessor" />
    <wlevs:channel id="horseOutputChannel" event-type="HorseEvent" advertise="true">
    <wlevs:listener>
    <bean class="com.bea.wlevs.example.sevenhorses.SevenHorsesBean"/>
    </wlevs:listener>
    <wlevs:source ref="sevenhorsesProcessor"/>
    </wlevs:channel>
    </beans>
    config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>sevenhorsesProcessor</name>
    <rules>
    <query id="horsesRule">
    <![CDATA[ select message from horsesInputChannel2 where message like "(gunman)"
            ]]>
    </query>
    </rules>
    </processor>
    </n1:config>
    Thanks!

  • Comapre 2 same channels from two different dat filea

    Hi ,
    I want to compare the wave forms of two same channels names (in my sample data which is in attachment, the same channel names are S1KNSLLE00H3DSZP) from different dat  file(S2100044 and S2100041) .
    Load the 2 dat files from navigator.
    Come to report and open two 2d axis systems to see the wave forms of two different channels ( Like in attachment result.jpg)
    I need an autosequence to do the same for all the channels for 2 dat files automatically.
    Attachments:
    cmp.zip ‏1967 KB
    result.JPG ‏158 KB

    Hi RSH,
    I appreciate you posting 2 data files and the jpg, but I'm afraid I still have lots of questions before I can advise you.  You sent 2 *.dat files which each had 1 channel in them named "Data", which is different from your email text and the jpg you posted.  Will your data sets typically have many channels in them?  Your posted *.dat files had no time channel and the "Data" channel was not a waveform channel, yet the 2 different "Data" channels were different lengths.  Do you want to plot your channels vs. the array index all the time (as is shown in your jpg)?
    Do you want to have N sheets in REPORT, one for each channel?  Why don't you want to have both "S1KNSLLE00H3DSZP" channels as curves with different colors on the same graph-- wouldn't that make it easier to compare them?
    When you drag over the data channel onto a REPORT graph, you will get a reference like "[1]/Data" or "[2]/Data", which is exactly what you want to compare the "Data" channel from 2 arbitrary data files (note that the file name does not show up in the channel references).  So it seems to me that the REPORT layout you sent a jpg of already satisfies what you're asking us to create for you.  Why do you need a script at all?
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to get a rowcount from two different schema in two different databases?

    Hello,
    I want to count of rows in each table in a schema say test, of DEV1 database to another schema say test of DEV2 database. both have same schema data in both the databases. my output should look something like this.
    Tablename
    database name DEV!, schema name test , tablename: count
    database name DEV2, schema name test , tablename: count
    can someone help me please.
    Thanks a lot

    Give this a try in dba1 - assuming there is a db link in dba1 to dba2:
    select 'DBA1', count(*) from table
    union all
    select 'DBA2', count(*) from table@dba2
    Note that if these are large tables, you may want to gather stats on the two tables (IMPORTANT) and then do
    select 'DBA1', num_rows from all_tables where table_name = 'TABLE'
    union all
    select 'DBA2', num_rows from all_tables@dba2 where table_name = 'TABLE'
    If you don't gather stats - the num_rows column in all_tables will reflect the number of rows that were present when stats were last gathered and will not reflect any inserts/deletes that have taken place since.
    The "union all" clause differs from "union" in that "union all" shows every matching result from both halves of the union - whereas union will only show each unique result once.
    Hope this helps!

  • How do I get imessages from two different numbers

    I am able to get my son's imessages from other iphones show up on my iphone.  
    How can I add my daughter's number that is on my account as well?

    Settings --> Message --> Send / Receive at

  • How do you display data from two different data-sets on one list

    I have a data-set that is displaying properly; I would like to add another data-set to the other portion of the form. 
     The first part of the data set has Product information (Product-Name, Product_number, etc),
     The second portion of the data-set has information like (Product-campaign, Product-Sales, etc)
    The two data-sets  are mutually exclusive

    Hi xitum,
    As
    Patrick  Hurst mentioned, if the several tables didn't have any relationship with each other and you want to put all the information together to display in one report, you need to add several tablix/list in the same report and each tablix/list to display
    the data from each table.
    If the several table have a same relationship field you can use the
    lookup function to get the other maped fields display in the same tablix/list.(this function supportted on the SSRS 2008 r2 and later version).
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • To calculate variance from two different columns

    Hi
    I have a table like this
    create table temp1
    (f_name varchar2(100),
    f_month_Year Varchar2(10),
    f_amount integer
    Records in this table will be like this:
    f_name          f_month_Year f_amount
    Ajay 092007      500
    Bhavani 092007      700
    Bhavani 102007      200
    Ajay 102007      100
    I would like to get the Output like following:
              092007(Previous Month) 102007(Current Month) Variance
    Ajay 500                100           400
    Bhavani 700                200           500
    the variance should be precalculated in the query itself.
    Please help me on this.
    Regards
    Sankar

    LAG
    <br>
    <br>
    Example:
    <br>
    <br>
    SQL> select * from t;
    NAME                 DT                          AMT
    Ajay                 092007                      500
    Bhavani              092007                      700
    Bhavani              102007                      200
    Ajay                 102007                      100
    SQL> select name,curr,pre,pre-curr var
      2  from
      3    (select name,
      4         lag(amt) over(partition by name order by to_date(dt,'mmyyyy')) pre,
      5        amt curr,dt
      6     from t
      7    )
      8  where dt = to_char(sysdate,'fmmmyyyy');
    NAME                       CURR        PRE        VAR
    Ajay                        100        500        400
    Bhavani                     200        700        500                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How do I Combine libraries from two different Macs?

    I have an extensive iPhoto library on old G4. I also have a small library on MacBook Pro with iPhone pics and such. I'm trying to move away from the G4 and only use the MacBook. I've not been able to figure out a way to simply combine the old library into the new library.
    I've copied the iPhoto Library folder over to MacBook. Any easy way to do this? I don't want to give up all the organization from old library.
    TIA

    Phil
    Welcome to the Apple user discussion forums
    iPhoto library Manager is an easy to manage (including merging) multiple libries - http://www.fatcatsoftware.com/iplm/
    LN

  • How to combine sql queries of two different data models of a single RDF

    Hi All,
    Greetings.
    I am on a task to get  the sql query of a seeded report(Accounting Rules Report) with RDF named RAXARL.rdf
    The RDF consists of 3 data models which consist of a sql query each and they are running fine individually.But I want all those three to be combined in a single SQL Query so that I can use it running  a report in apex.
    Can anyone help me do this? I am able to find a solution for this.
    Thanks in advance,
    Bhaskar.

    Hi Bhaskar,
    To get the SQL behind the report, run it with the Enable Trace option enabled (disable it after you get it).
    Octavio

Maybe you are looking for

  • How do I activate my purchased Adobe Acrobat XI Pro for Win?

    How do I activate my purchased Adobe Acrobat XI Pro for Win now that it is downloaded and installed?  Was having internet issues when prompted and now can't find?

  • Chronic BSOD with Lenovo ThinkPad 430s - WHAT do I do? Thank you.

    Dear Community, I have had chronic crashes to BSOD since I got my Lenovo ThinkPad 430s with Professional Windows 7, and latest BIOS. Current on Windows updates. I understand there is an Intel problem. Therre is no  predicting the BSOD, and no prevent

  • Looking for PCMCIA network card

    I installed Solaris 8 on my laptop(Compaq Presario 1275), and am looking for PCMCIA network card to configure networks. Does anyone have Solaris 8 installed on laptops and configured networks? If yes, what kind of PCMCIA network card do you have for

  • Stuck applying SPstacks in ERP2005...

    Hi Guys, I've installed ERP2005 ABAP + Java successfully. I then Applied the kernel and Java SP stacks using JSPM (success there too). Now, after updating SPAM and importing the SP's BASIS 07 to 10 (all at once, even though there was not extra requir

  • Adobe Edge 3 animations issues with webview on Android v4.1.1 and v4.2.1

    I am developing an Android App using webview (using phonegap/cordova v2.8.1 ) . I used Adobe Edge 3 and generated few animations using SVG images and couple of html pages Query #1:    Scaling of image is continously increasing with every orientation