Add Seconds to DateTime value

My data source has some columns I want to add together.
StartDate, which looks like 12/26/2014 4:13:40 PM
and
QueueTime, which is a whole number integer like 45088 (number of seconds)
I want to add these together (the correct result would be 12/27/2014 4:45 AM).
Can you let me know how to add these?  I didn't see any formulas to use for it in the Power Query forum index, but I also tried this with failure:
=[StartDate] + ( [QueueTime]/86400 )
This returned an error.
Shawn Keene

Thanks a ton! Didn't know you could do that with the duration type.
Shawn Keene

Similar Messages

  • Add-dayTimeDuration-to-dateTime not working just before format-dateTime

    Hi,
    I am using format-DateTime function just after add-dayTimeDuration-to-dateTime function in XSLT mapping.
    But the response coming doesnot providing the result of add-dayTimeDuration-to-dateTime function.
    When I use both the functions individually then both works fine.
    Please let me know any solution for this.
    Thanks

    Hi Arpit,
    Can you try converting the output of add-dayTimeDuration-to-dateTime to string, before passing it to format-DateTime.
    Also can you post your piece of xslt that you are trying to work out with an example.
    Please do mention what exactly you are trying to do.
    I have tried this and its working fine.
    <xsl:value-of select="xp20:format-dateTime(string(xp20:add-dayTimeDuration-to-dateTime(xp20:current-dateTime(),'PT15S')),'[D01]/[M01]/[Y0001]')"/>
    Please let me know if this helps.
    Thanks,
    Deepak.

  • Add-dayTimeDuration-to-dateTime

    Hi,
    Could you please tell me why the second assignment is not working? I have no errors but the variable var2 is empty.
    <variable name="var1" type="xsd:dateTime"/>
    <variable name="var2" type="xsd:dateTime"/>
    <copy>
    <from expression="xp20:current-dateTime()"/>
    <to variable="var1"/>
    </copy>
    <copy>
    <from expression="xp20:add-dayTimeDuration-to-dateTime(bpws:getVariableData('var1'),'P10S')"/>
    <to variable="var2"/>
    </copy>
    Thanks
    Olivier

    A Oracle Metalink Note is writte on this isse, note nr: 356899.1
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=356899.1
    My code:
    <copy>
    <from expression="xp20:add-dayTimeDuration-to-dateTime(xp20:current-dateTime(),&quot;PT1H&quot;)"/>
    <to variable="var_datetime"/>
    </copy>

  • MinList function is not working in Date or datetime values in DRM

    Hi,
    We have a custom property End Date with data type as Date. We want to calculate the minimum end date across all the children of a particular node.
    While using the below function it is giving blank value as output.
    MinList(ReplaceStr(ListNodePropValues(ListChildren(SortOrder),[comma],Custom.NO_ALL_ALL_ENDDATE),[comma],#,true),#,date)
    If we remove the MinList part and only evaluate ReplaceStr(ListNodePropValues(ListChildren(SortOrder),[comma],Custom.NO_ALL_ALL_ENDDATE),[comma],#,true), we are getting an output like 12/31/2019#12/31/2018.
    Why DRM is not able to extract the min value? Does DRM not support this kind of use of this function?
    We have even tried with a date time property, but the result is same.
    If by using the above mentioned method it is not possible to get the min date value, what alternative approach can be taken for achieving this?
    Any help on this is much appreciated.
    Thanks
    Sudipta

    I found this useful, check if it helps,
    Using MinList and MaxList with Date Or DateTime Values In DRM (Doc ID 1967005.1)
    Hyperion Data Relationship Management - Version 11.1.2.3.000 and later
    Information in this document applies to any platform.
    GOAL
    Example: How can we calculate the minimum end date across all the children of a particular node?
    You have a custom property End Date with data type as Date. You have tried using MinList in conjunction with ListNodePropValues thus:
    MinList(ReplaceStr(ListNodePropValues(ListChildren(SortOrder),[comma],Custom.EndDate),[comma],#,true),#,date)
    This gives a blank value as output.
    SOLUTION
    The most robust way of doing this using formulas is to format the date property as a string in ISO 8601 format. In yyyy-mm-dd format, alphabetic order is also date order. Add a helper String property like this:
    FormattedDate(Custom.EndDate),yyyy-mm-ddThh:mm:ss) -- omit the time from the 'T' on if desired. Note that the format string is case sensitive.
    Then the MinList function
      MinList(ReplaceStr(ListNodePropValues(ListChildren(SortOrder),[comma],Custom.Helper),[comma],#,true),#,string)
    will work.
    Note that the functions MinList and MaxList return a blank value if the list contains any members that are not of the specified data type. Using ReplaceStr will implicitly convert the dates into strings, causing MinList and MaxList to fail if you specify DateTime.

  • Is there a way to add to the existing values in a container when a LabVIEW prototype (cluster) changes?

    Is there a way to add to the existing values in a container when a LabVIEW prototype (cluster) changes?
    I have a cluster with 90 values..  ninety!  yes that many.
    Change one bloody value and the prototype changes in the TestStand step...  Reload the prototype and guess what happens??!!??
    All the bloody values get reset to defaults!  AAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGHHHHHHHHHHHH!
    If it was in one place, I could survive the ordeal.  But I have to change bloody prototypes in many places!!!!
    more AAAAAAAAAAARRRRRRRRRRRGGGGGGGGGGGHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!
    I can't even copy the bloody values!!!!!!!  AAAAAAAAAAAARRRRRRRRRRRRRRGGGGGGGGGGGHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!
    Are there any tricks that I am not aware of, or have forgotten over the years, or...  ...   something??!!??!???!!
    If there are none, I will have to post an improvement to TestStand..  I should mention I am using an older version (4.1).

    Hmmmmmmmmmmmmmmmm,
    I am not not very famous with LV and its cluster types.
    So no idea if this works (it works for DataTypes updates very well and a LV cluster is Data Type so.... maybe)
    Make a copy of the step that has to be modified to an new sequencefile. 
    Make modifications the in the copy.
    Now you should have the same DataType Name but other contents in the container. Save it.
    Normally there should be a message box that tells you that version has been incremented. - Accept it.
    Set in StationOptions-File "Allow Automatic ...." to Never.
    Open original sequencefile. Now the there must be a type conflict. Accept/Apply to all  "Use Current Loaded.."
    You have updated the type.....
    Hope this worked,
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • How do I Add second monitor to ALL in One ENVY23 that has a HDMI port

    How do I Add second monitor to my ALL in One ENVY23 that has a HDMI port the computer has Win 8  Model #: 23se-d494
    Product #: F3D93AA#ABA
    Serial #: [edited Serial Number by Moderator]
    Software Build #: 14AM1HRA601#SABA#DABA
    Service ID #: 20140521
    PCBRAND #: HP

    Here are the specs for your HP ENVY TouchSmart 23se-d494 All-in-One Desktop Computer. Based the specs, the HDMI port on the side of your computer is an INPUT only. This model doesn't have a video output of any kind.
    1 - Controls           2 - HDMI In port (model dependent)
    You will need to purchase and use a USB-to-video adapter such as the EVGA UV Plus+ UV39 (or any of the many other adapters on the market) to connect an external display to your computer. I personally use and recommend the EVGA UV Plus+ UV39.
    If you have any further questions, please don't hesitate to ask.
    Please click the White KUDOS "Thumbs Up" to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • How to Add a New Filter Value in BEx WAD to Display All Result

    Hi experts,
    I want to add a new filter value in BEx WAD to display all data records. The scenario is as follows:
    The status field can have two values: Active ("A) and Inactive ("I").
    But the requirement is to have a third value to display all the data records (Active + Inactive). E.g. the value can be "G". The purpose is to increase the understandability for report users.
    Does anyone have an idea?
    Regards,
    Joon

    Hi Vineet,
    thanks for your reply. The problem is that there are only 2 values available for this Characteristic: "A" or "I".
    The requirement is to have a third value "G" (instead of the default "All Value") due to historical reason, because all future report users have been working with R/3 reports for quite some time and they are accustomed to using "G" for displaying all values.
    Is there any possibility to realize this?
    Thanks,
    Joon

  • How to adde New Language field value in CRM Business Partner Language Field

    Dear all,
    How can we add a new field value to the Business Partner Language field in CRM and ECC systems.
    Your suggestions will be highly appreciated
    Thanks
    Sravanthi

    Hi Shravanthi,
    You would need to add the new language to table T002. Once this is done, it will appear in the drop down menus.
    Regards,
    Rishu.

  • Payment program F110 - how to add second print program in customizing

    Hello all,
    i would like to add second (another print program after standard sapscript print program customized in table T042Z) print program in transaction F110. This second smartform print program should be customizable  and triggered automatically within payment run.
    Thanks, zd.

    Hi,
    You can assign two forms in FBZP.
    Payment methods per company code
    Double click on payment method
    In Form Data
    You can assign Next Form 
    Both the forms should get printed when you run F110.
    Thanks,
    Ravi

  • Powerpivot pivottable - I can't add or drag a "value field" from the pivottable field list into the "values" section.

    I built a pivottable using Powerpivot.
    Initially, I can add or drag any data field I want to columns, Rows or the Values area inside the field list (those 4 squares). However, as times goes by...suddenly... I just no longer can add or drag a "value field" from the pivottable field list into the
    "values" section. 
    Does anybody know how to fix this problem ?

    Hi Bin Long,
    I tried what you suggested.
    I believe that there is a glitch in the Powerpivot field list (where you find the 4 squares for columns, rows, values, filter)
    When I initially create a pivottable with powerpivot, everything works fine when I am adding field list items to the the columns, rows, values sections, filters.
    However.....IF I close the powerpivot field list or if I save and close the excel file...then I cannot add more items to the "values" section.
    I can comment about one thing that seems different in my powerpivot field list. When I can no longer add items to the "values" section, I realized that in the TOP section of the field list I see in bold letters a summary of the items that are SUM ∑ in the "values"
    section.
    Does anybody know how to fix this ?
    Thanks.

  • Datetime value does not match the specified format

    Hi All,
    I am writing this function for a template
    case when "Employment Events (Current)"."Most Recent Hire Date" is NULL then NULL else CAST(TIMESTAMPDIFF(SQL_TSI_YEAR,cast(cast("Employment Events (Current)"."Most Recent Hire Date" as char)as timestamp),Cast(Cast(@{EndDate}{CAST('2011-01-01' AS DATE)} AS CHAR) AS TIMESTAMP)) AS CHAR)||' year(s) ' end
    but when it runs, it throws me this error
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 46046] Datetime value 2011-01-01 does not match the specified format. (HY000)
    What am I doing wrong? "Employment Events (Current)"."Most Recent Hire Date" is set to max - aggregation in the rpd.

    I found the solution as well.
    The ODBC driver on the Windows server was old (Version 6). I upgraded that to SQL Server Native Client 11.0 and everything works fine.

  • Can't display MS SQL datetime value in SQL Developer 1.5.1

    Hi All,
    I try to select the datetime value from MS SQL Server and the SQL Developer display strange value like this:
    oracle.sql.TIMESTAMP@f37160
    The problem does not exists in the previous version. And any body can help to solve it?
    Thanks.

    ISSUE CLARIFICATION
    ====================
    Attempting to view records in a table from a MS SQL Server 2005 schema. All fields are ok, except
    the datetime fields.
    Getting Oracle.sql.date@E4F4012
    This worked (actually still works) with SQL Developer 1.2.1. In fact, I see both on my screen and
    1.2.1 views the fields fine, 1.5.4 does not.
    ISSUE VERIFICATION
    ===================
    Verified the issue by the screen shots
    DATA COLLECTED
    ===============
    SCREEN SHOTS
    SR6930954.994_SQLDeveloper.ppt
    CAUSE DETERMINATION
    ====================
    Missing option in SQL Server 2005 default datatype mapping rules.
    CAUSE JUSTIFICATION
    ====================
    Note 458294.1
    Bug 6360558 / Bug 6378114
    PROPOSED SOLUTION(S)
    ======================
    use the workaround provided in Note: 458294.1
    PROPOSED SOLUTION JUSTIFICATION(S)
    ====================================
    Note 458294.1
    Bug 6360558 / Bug 6378114
    SOLUTION / ACTION PLAN
    =======================
    You can use the following workaround if you want SQL Server 2005 DATETIME datatype map to Oracle DATE:
    - On the Captured Model, select 'Set Data Mapping'
    - Click on Apply in the 'Set Data Map' Window, this will create a record in the Repository
    - Open a connection with the Repository database
    - Click on Tables
    - Click on table MIGR_DATATYPE_TRANSFORM_RULE
    - Click on the "Data" Tab
    - Sort on column "SOURCE_DATA_TYPE_NAME"
    - Look for "DATETIME"
    - Change the value of column "TARGET_DATA_TYPE_NAME" from TIMESTAMP to DATE
    - Change the value of column "TARGET_SCALE" from 6 to (null)
    - Commit the change.
    Remark: This workaround is only suitable if the repository contains only 1 captured model, otherwise we need to identify the proper MAP_ID.
    KNOWLEDGE CONTENT
    =================
    Platform / Port Specific? = NO
    Knowledge content not created because the following note already addresses this issue: Note.458294.1
    This problem has been identified as a bug. And it has been fixed in Version 2.0.0 (Future Release)
    For available workaround refer to the above tags and NOTE: 458294.1
    Regards,
    Srikanth
    Oracle Support Services.
    Currently Support is not having any information of the release date for sql developer V2.0.0
    Regards,
    Srikanth

  • Add columns to extended value selector

    Hi All,
    I have created an Extended value selector that has 2 columns(KEY column and VALUE column). How do I add columns to Extended Value Selector.
    Thanks,
    Tom

    HI Tom,
    ->EVS just picks value from enumeration type which you must have created and displays those value.
    ->ONLY key and Value are the two columns possible. You cannot add any new columns to that.
    ->F4 help  helps only to get values for a particular field which are already present somewhere ex may be some bapi or database.
    ->OVS is new version and you can look for that also if it suits you.
    Thanx.

  • "Data truncation: Incorrect datetime value" Error Message

    Hello,
    I'm running Coldfusion 8 with a MySQL database. The s10Date
    column is of type "datetime".
    What would cause the following error to occur when I'm
    entering data into the database?
    Data truncation: Incorrect datetime value: '{ts '2008-09-03
    17:16:01'}' for column 's10Date' at row 1
    The error occurred in
    C:\ColdFusion8\wwwroot\Websites\questnbs.info\components\DataMgr\DataMgr.cfc:
    line 1602
    Called from
    C:\ColdFusion8\wwwroot\Websites\questnbs.info\components\DataMgr\DataMgr.cfc:
    line 1170
    Called from
    C:\ColdFusion8\wwwroot\Websites\questnbs.info\components\DataMgr\DataMgr.cfc:
    line 1633
    Called from
    C:\ColdFusion8\wwwroot\Websites\questnbs.info\parsed\quest_c_registrations.processregistr ationform.cfm:
    line 37
    Called from
    C:\ColdFusion8\wwwroot\Websites\questnbs.info\parsed\quest_c_registrations.processregistr ationform.cfm:
    line 5
    Called from
    C:\ColdFusion8\wwwroot\Websites\questnbs.info\parsed\quest_c_registrations.processregistr ationform.cfm:
    line 1
    Called from
    C:\ColdFusion8\wwwroot\Websites\questnbs.info\fusebox5\Application.cfc:
    line 228
    Called from
    C:\ColdFusion8\wwwroot\Websites\questnbs.info\fusebox5\Application.cfc:
    line 218
    Called from
    C:\ColdFusion8\wwwroot\Websites\questnbs.info\fusebox5\fusebox5.cfm:
    line 57
    Called from
    C:\ColdFusion8\wwwroot\Websites\questnbs.info\index.cfm: line 12
    1600 : <cfquery name="qQuery"
    datasource="#variables.datasource#" username="#variables.username#"
    password="#variables.password#"><cfloop index="i" from="1"
    to="#ArrayLen(aSQL)#" step="1"><cfif IsSimpleValue(aSQL
    )><cfset temp =
    aSQL>#Trim(PreserveSingleQuotes(temp))#<cfelseif
    IsStruct(aSQL
    )><cfset aSQL = queryparam(argumentCollection=aSQL
    )><cfswitch
    expression="#aSQL.cfsqltype#"><cfcase
    value="CF_SQL_BIT"><cfif aSQL
    .value>1<cfelse>0</cfif></cfcase><cfcase
    value="CF_SQL_DATE">#CreateODBCDateTime(aSQL.value)#</cfcase><cfdefaultcase><cfif
    ListFindNoCase(variables.dectypes,aSQL
    .cfsqltype)>#Val(aSQL.value)#<cfelse><cfqueryparam
    value="#aSQL
    .value#" cfsqltype="#aSQL.cfsqltype#" maxlength="#aSQL
    .maxlength#" scale="#aSQL.scale#" null="#aSQL
    .null#" list="#aSQL.list#" separator="#aSQL
    .separator#"></cfif></cfdefaultcase></cfswitch></cfif>
    </cfloop></cfquery>
    1601 : <cfelse>
    1602 : <cfquery name="qQuery"
    datasource="#variables.datasource#"><cfloop index="i"
    from="1" to="#ArrayLen(aSQL)#" step="1"><cfif
    IsSimpleValue(aSQL)><cfset temp = aSQL
    >#Trim(PreserveSingleQuotes(temp))#<cfelseif
    IsStruct(aSQL)><cfset aSQL
    = queryparam(argumentCollection=aSQL)><cfswitch
    expression="#aSQL
    .cfsqltype#"><cfcase value="CF_SQL_BIT"><cfif
    aSQL.value>1<cfelse>0</cfif></cfcase><cfcase
    value="CF_SQL_DATE">#CreateODBCDateTime(aSQL
    .value)#</cfcase><cfdefaultcase><cfif
    ListFindNoCase(variables.dectypes,aSQL.cfsqltype)>#Val(aSQL
    .value)#<cfelse><cfqueryparam value="#aSQL.value#"
    cfsqltype="#aSQL
    .cfsqltype#" maxlength="#aSQL.maxlength#" scale="#aSQL
    .scale#" null="#aSQL.null#" list="#aSQL
    .list#"
    separator="#aSQL.separator#"></cfif></cfdefaultcase></cfswitch></cfif>
    </cfloop></cfquery>
    1603 : </cfif>
    1604 :
    Thank you in advance for your assistance.
    Simon

    Just a note, I had the same problem and resolved it by making
    sure my cfsqltype in cfqueryparam is cf_sql_timestamp instead of
    cf_sql_datetime (which is not a valid value).
    Also, just a note that when working with a datetime value in
    cfqueryparam, using cf_sql_date for cfsqltype will truncate the
    time to 00:00:00.

  • How do you add a list of values feature in jdeveloper please ?

    Hello,
    I need to add a list of values on a field so that users can query depending on values found in " list of values " ?
    Thanks.

    I have tried to add an lov using the following code but it doesn't work
    <af:inputListOfValues id="PrtCode"
                                                                 popupTitle="Search and Select: #{bindings.PrtCode.hints.label}"
                                                                 value="#{bindings.PrtCode.inputValue}"
                                                                 label="#{bindings.PrtCode.hints.label}"
                                                                 model="#{bindings.PrtCode.listOfValuesModel}"
                                                                 required="#{bindings.PrtCode.hints.mandatory}"
                                                                 columns="#{bindings.PrtCode.hints.displayWidth}"
                                                                 shortDesc="#{bindings.PrtCode.hints.tooltip}">
                                              <f:validator binding="#{bindings.PrtCode.validator}"/>
                                           </af:inputListOfValues>

Maybe you are looking for

  • How do I get old emails from Time Machine into a new Mail?

    I have (I hope) email data in Time machine as of April 8  which I can't figure out how to get into my newly reinstalled version of Mail.  I took over my brother-in-law's iMac on April 8, and closed his User ID, saving it in a .dmg file.  Now that he

  • I have just upgraded to Lion and have lost front row. How do you get it back. This is a critical app for me

    Having updated to Lion I have lost front row. Apple have taken out a critical app. What is the use of a computer with out the abilitl to play a dvd. How do I get it back

  • Regarding the Database

    Hi,   I would like to know if there is any provision to restore the database to the situation as before doing the testing. ie, the entries enterred to the database shall be deleted through the script itself. Is it possible?

  • Single Po

    Hi, I am having number of PRs not in sequence for single vendor,and i want to combine all prs in single Po item.

  • Weird parameter regional format

    Hello, see the history of this post: http://social.technet.microsoft.com/Forums/en-US/94d76130-e328-4fa7-be45-e2b59e827c23/regional-setting-for-report-service-parameter?forum=sqlreportingservices is this a known issue? basically what happens (copy &