Power query datediff. 07-22-2020 05:40 PM. Power query datediff

 
 07-22-2020 05:40 PMPower query datediff ) Important: Retirement of Facebook data connector notice Import and refresh data from Facebook in Excel will stop working in April, 2020

I still need the 'time' aspect of the date to be included in calculation for the following reasons: time difference is Job Booking Datetime - Acceptance Datetime. Extract the seconds from a duration value. That’s it. Start time 2. You will still be able to use the Facebook Power Query connector until then. Days() in Power. For example here we have time of buying and time of selling. 2. This excludes weekends and non-business hours using a Power Query custom function. The key here is that you need to do each calculation recursively based on the previous calculation. It r esults in age 2, but should be 3 on their. From the left side, Click on the table that you need to add a new column. If you're using a label and not a date picker then you have to first convert the label text to a datetime before you can get the difference. Yes to your first question. The syntax of the DATEDIFF function is: DATEDIFF (start_date, end_date, interval) Where start_date and end_date are values of the DateTime data type, and interval is a string that specifies the. DATEDIFF is available in DAX but not in Power Query Editor. CALCULATE(. ここの記事を見ていて自分もカスタム関数で DATEDIFを作ってみたくなった。どうせならバグ(といっていのかどうか未だに不明)にも対応させ. Commonly used datepart units include month or second. Days(Duration. If Datediff Start,End<=14 then. The result = 0. 07-22-2020 05:40 PM. Value), DateTimeValue (DataCardValue34. I want to have a measure or columns on events that would hold the age the person was when the event occured. Community Connections & How-To Videos. Power Virtual Agents. ‘ NETWORKDAYS ’ is used to return the whole number of working days between two dates (inclusive). Dates (StartDate, Number. Hot Network QuestionsIn response to anilc59. Kudos are appreciated too. StartOfMonth and the DateTime. The Power Platform community, they note, is a wellspring of resources and opportunities, fostering continuous learning, skill enhancement, and. UtcNow (working with UTC is recommended to avoid some unexpected results when publishing your report to the service for example) and convert that to a date using DateTime. Exciting news! On Monday July 24th, we launch a new series called Microsoft Power Platform Product Weeks! Over the next six weeks, our Power Platform Community LinkedIn page will be posting daily to share great content on the Power Platform and what to expect at the upcoming Microsoft Power Platform Conference. IsLeapYear. @wuhao0506, Do you use Power BI Desktop August version ?Based on mye test, even we enable unrestricted measures, it is not possible to use DATEDIFF function in calculated columns in DirectQuery mode. Meaning there are 24 datetime values per date. Datediff doesnt let me choose my date1/2 fields to put into the measure. ISBLANK('Internacao Deint' [Data Alta]), TODAY()-'Internacao Deint' [Data Entrada],Explanation of the formula -. Aging = -11. In "Tasks" data base, I click on "Add Column" tab and "Custom Column" icon. 5: Put them all together to get Duration in Years, Months, Days. Community Support. I am trying to calculate the tenure. If this is a measure, you need to give it some type of context. I am very new to Power BI and trying to create a new column Aging and Logic will be. Now, this is done in the Power BI interface. Arguments. (-12, -11, -10 etc) (End of the current month plus a day (equalling the first day of the next month), minus 13 months = equalling 12 months prior to the start of the current month. The field is of Type Date: I'm trying to create a measure to calc the number of days between this date and Today using this formula, but it errors saying it can't find the field. Message 2 of 7Getting time diff between 2 times that cross midnight. Power-BI DATEDIFF from 2 different dimension tables, related to fact table. I did the substraction and devide 30 to find monthly tenure in company based on start and end dates. Super User. It can be similar to DAX bellow. I managed to achieve this by creating parameter in query editor instead creating table using calendarauto function. Make sure you don't miss a thing in the community, whether it's the latest News & Announcements, answers to your questions, or topics you are interested in. Days ( [Change Date]- [Previous Change Date])) Here is the full M code: We will take the two date column i. If ( Dropdown. Anyone? Thx! · A duration is what you get when you subtract two dates (or datetimes):. To compare two dates in Power BI using DAX, you can use the DATEDIFF function, which returns the difference between two dates in days, months, or years. Days Elapsed = CALCULATE (DATEDIFF ( SELECTEDVALUE (Projects [entry_date]), SELECTEDVALUE (Projects. technet. Message 5 of 7. The following DAX query: I need to find the month difference between two dates (checkIn and Checkout dates) in Power Query (M-query). Power Query; Mobile Apps; Developer; DAX Commands and Tips; Custom Visuals Development Discussion; Health and Life Sciences; Power BI Spanish Community;. Get Help with Power Apps; Power Query; DATEDIFF function with Filter; Reply. We want to create a solution that will only gives us the Mondays between 2 dates. Date (DateTime. Hours(Duration. event_id, event_selection. Find the interval between today's date and a column. Ok, enough preaching. I'am trying do calculate number of days between today and a date but I don't succed. The function is fed a column of start and end dates and produces a column of records that contain years, months, and days. The reason is that the unit you use when calculating is 'hours'. Diff = IF (Table1 [Column1]<Table1 [Column2],DATEDIFF (Table1 [Column1],Table1 [Column2],DAY), (-1)*DATEDIFF (Table1 [Column2],Table1. But the problem is that the resulting column is in the Duration data type. Then, go into the Power Query and under New Source, open up a Blank Query. Dim TheDate As Date ' Declare variables. You could use the FORMAT () function like so: Date_Format = FORMAT ('Date' [Date diff measure],"DDD hhh mmm") Hope this answer solves your problem! If you need any additional help please @ me in your reply. Days. Função DATEDIFF no POWER BI | Calcular Diferença entre Datas [Passo a Passo]Curso de POWER BI Gratuito vídeo você aprenderá de du. e order date and ship date to find the difference in months. The following expression: DAX. Using DATEDIFF, we can calculate the difference between the date_placed and current date columns. Here is how I proceed: 1. We are excited to have Simon Matthews and Miti Joshi as our hosts for this AMA. my output is as follow: Now I only want to check the DateDiff between those rows where the UserFieldName = Status. In this video, we explained How to calculate difference between two dates in Power Query of Power BI. To use this function you would need a row context. I am trying to create a custom column in PowerBI which calculates the number of days between Date column and. So, I created a measure as follows: Measure = DATEDIFF ( SELECTEDVALUE ( 'Table 1' [Start_date] ), SELECTEDVALUE ( 'Table 2' [End_date] ), DAY ) This is not working for the huge amount of data, its only loading . Selected. so a date this month would be 0 a date last month would be 1 ect. 2. And the difficulty lies exclusively in DATEDIFF transforming thousands of lines in days, communicating with the Bank in DQ. End time. Steps to Add a Current Date Column. Subscribe to RSS Feed; Mark Topic as New; Mark Topic as Read; Float this Topic for Current User;. But the case specifies the resolution via DAX, as it is in Direct Query. ・「曜日」の表記方法の設定がわかります. Date 1 and Date 2 are both fields from calculation columns and its only suggesting measure values on intellisense? Also, could you please advise on how the measure would be If I was to sum total rows and get a count of rows that had this specified datediff below?You need to do one of two things: - Move that code into the Desktop as it is DAX code, not M code. Power BI Calculated Column based on max date and a filter. IF(. 3) Second argument is the maximum date value of all the dates that are less than the current row's date and that belongs to the same device as the current row. Step2: Add a custom column that two datetime column are directly subtracted. Once it is invoked, it will bring you to this template. e:if its less than 24hours only its showing correctly if its more than one ay its considering only hours but not dates. 04-06-2020 04:33 AM. but when I go to the Desktop, the values are sometimes wrong. When using multiple calls to GetDate(), whether in a single. Not sure about your syntax here, I believe your formula should be: NoDays = DATEDIFF ( [Actual Response Date], [Target Response Date], DAY) Actual Response Date and Target Response Date should be a Date/Time format and NoDays should be Whole Number. How should my query be altered to achieve such result? -- I need this done via the query itself not a VBA function. It isn't exact but may work for you. 3. dateDifference may well serve your purposes, as long as the format it provides works for you. almost works. Days See full list on overbeeps. Week 1 of the year is the week with the first Thursday of the year. Usage Power Query M Duration. Example:. I have troubled in the building flow when trying to apply filter on the Get Items from sharepoint list. From the merge, extract the [Change Date]. DateDiff (StartDate,Now (),Days) To get hours its the same calculation in Hours - the days * 24. AddDays(StartDate,2) els. From([EndDate]-[StartDate]))) Did I answer your question? Mark my post as a solution! Proud to be a PBI Community Champion. First, select the column Date, hold ctrl and select the column Date. Hi hopefully a quick query for a Guru. AddColumn (#"Expanded Changed Type1", "DateDiff", each Duration. We can get dynamic data differences by creating a measure ( [Periodto - Datex]) using the measure ( [date x). Message 5 of 5. I am trying the create a function that replicates the Workdays function typically found in Excel. @JKoivu , diff from previous date . I need to show the "days to expire" in a matrix-visual so I tried to make a DAX formula as it goes trying to get the "days to expire" from each product and it's expiration date uniquely, but the result was way far from what i wanted. PowerAppsDay1. Go back to Report mode. Here is how it works: Day of Year = DATEDIFF (STARTOFYEAR ('Date' [Date]),'Date' [Date],DAY)+1. technically i should date and time rightIt is easiest to use DATEDIFF with MONTH on the DAX side, but in Power Query you can use the formula below. Forum Posts: 5. In the function below, if the start and end dates are between Monday and Friday (weekdays from 2 to 6), their difference will be in the -4 (start on Friday. We will discuss the emergence of generative AI and how we are changing the way makers build and use Microsoft Power Apps with the support of Copilot. This function takes two arguments: the start date and the end date. I tried to apply both your porposals, but still not there yet. Similarly to the number of minutes. DATEDIFF( date_part , start_date , end_date) Code language: SQL (Structured Query Language) (sql) The DATEDIFF() function accepts three arguments: date_part, start_date, and end_date. When you calculate weekends using the expression. It only requires 3 inputs, start date, end date, and interval. I am very new to Power BI and trying to create a new column Aging and Logic will be. I tried it,but the results are not accurate and i need the difference in years. Then, use Duration. g if the difference in months is 16 months and 16 days, it rounds it up to 17 months . Thank you so much for helping. chiibosoil 293 • 2 yr. Etc. Fraction of the year. LocalNow functions, however, I'm new to. Modified 3 years, 6 months ago. 01-26-2020 11:38 PM. if possible to show a negative amount when the Date Req is. So how does that work? We start out by generating the current datetime value in Power Query by using the DateTime. . We want to see, how many hours was the item on stock. (see below): and my custom column has the the if and else statements as follows. How to get values in PowerBI between two dates in two different columns. Using Search to Find Answers and Unanswered Topics - Power Apps , Power Automate, Power Virtual Agents, Power Pages. Please try pasting this code into advanced editor of a new blank query and see if you are happy with the results: let Source =. DATEDIFF= DATEDIFF ('cs exit' [when did you start with XYZ company?],today (),DAY) Solved! Go to Solution. DATEDIF ( <start_date> ,<end_date>,interval)RETURN. 09-30-2022 02:52 AM. DATEDIFF in DAX doesn't have a concept of whole months, it simply counts the number of boundaries crossed between the two dates, so DATEDIFF ( DATE (2018, 2, 28), DATE (2018, 3, 1), MONTH) returns 1 because 1 month boundary has been crossed, even though there is only 1 day. Date1. If the departure date is blank, the value will accumulate as the days go by, if there is any value in the exit, it will be entry-exit. And create a card visual to display the result. A single value for column 'DateOfBirth' in table 'Contacts' cannot be determined. Here is how I proceed: 1. In Power Query it should just be as easy as. To calculate the difference between two dates in Power BI, you can create a New Column and use the DATEDIFF DAX formula, use the Duration. Days (DateTime. Select which requires a list as its first parameter and then a condition as its second parameter. From ( [EndDate] - [StartDate]) Then you can use Duration. Value = "Work", DateDiff ( DateTimeValue (DataCardValue33. Days function in Power Query: = Table. 4: Add Months to the start date so you can get the remaining days. 1. @AvPowerBI You don't need the LOOKUPVALUE to other tables to do this, you can do all of it in Power Query since you're adding columns (Not measures). You are passing table columns into DATEDIFF instead of scalar dates that it expects. Thanks to the PowerAutomate Gods. You can write Power Query formulas. From previous repair = datediff (MaxX(filter(Table,[Vehicle_id] =earlier([Vehicle_id]) && [Date] <earlier([Date. If within the same year, you can use Date. How to Append Columns in Power Query; Power BI DAX Max Date [With 15+ Real Examples]. The result is a number from 1 to 7 indicating which day of the week it is. I want to calculate the total minutes between Start Date/Time and End Date/Time. The Direct Query Table does not have all dates showing only the completion date. Topic Options. HrDiff = DATEDIFF (Table1 [StartTime],Table1 [EndTime],HOUR) HrDiff = DATEDIFF (Table1 [StartTime],Table1 [EndTime],MINUTE) Thanks. What I would like power bi to do is lable any row in resolved date column that is blank with the text "open" This way I know the ticket is still open and has not been resolved. Imagine if we could write SQL. Description. this time I've tested more cases and I hope it works now. Community Calls Conversations. Power Query; GCC, GCCH, DoD - Federal App Makers (FAM). When you use week as the date part, DATEDIFF returns the number of Sundays between the two dates, including the second date but not the first. So interested in doing it in DAX measures without creating any additonal columns in power pivot data model. in the fields above i would like to calculate the datediff between the trained date and the date and have a value filled into. I am facing issue while computing date difference if I use power query using the fomula below . In "Tasks" data base, I click on "Add Column" tab and "Custom Column" icon. The syntax of the DATEDIFF function is: DATEDIFF (start_date, end_date, interval) Where start_date and end_date are values of the DateTime data type, and interval is a string. There are multiple items on the purchase order so the PO Order Date is a single date (all items were ordered on the same day) but the Receive Date is different for each line (each item was delivered on different. The Course, Completion Dates and Rep_ID's are in the Direct Query PBI. The result is a whole number of units. If you plan on using this in a table or graph, using the function "Selectedvalue" will add the current context. It does exactly what you would expect: calculate the amount of time in between two dates, and express that value as either seconds, minutes, hours, days, weeks, months, quarters or years. DaysLastChange = VAR _currentStatusChangeDate = [StatusChangeDate] VAR _currentEnrollId = [EnrollId] RETURN DATEDIFF(. Step2: Select the result column then click Transform->date&time column->Duration. Steps. 2 Cách truy cập dữ liệu Google Sheets từ Power BI, Power Query hay Excel. This is an incredible opportunity to connect with members of the Power Apps product team and ask them anything. . It does exactly what you would expect: calculate the amount of time in between two dates, and express that value as either seconds, minutes, hours, days, weeks, months, quarters or years. TechNet6 hours ago · 22m ago. Date. com. DAX関数なら DATEDIFF関数の出番なんだけど、Power Queryでやるとどうなるのか。 DATEDIFFもどきを作る|Power Query - Qiita. In Power BI Desktop, Click on Data Mode. Age = DATEDIFF (Event [Date],Contacts [DateOfBirth],YEAR) Tells me that. Returns a Duration value from a text value. Big thanks to both of you for taking time looking at my challenge. Power BI tutorial for beginners on how to find the number of days or week or months or quarter or year between two dates using the power bi datediff function. Days in your case. RELATED('Table 2'[Action Date]). Selected. ago. DateDiff in Power Automate is a String? 08-05-2021 01:05 AM. If the argument is a string, it is translated into a DateTime value using the same rules applied by the DATEVALUE function. I tried to apply both your porposals, but still not there yet. The following works for days difference between DateTime values folding against SQL Server: Table. You can do this using two different approaches Power Query or DAX. This is my query:-. However, I can't get the column's formulas to update on ther Power BI Service. LocalNow ()) - [Your Date Column] ) In DAX you can add a calculated column and use this formula. From previous repair = datediff (MaxX(filter(Table,[Vehicle_id] =earlier([Vehicle_id]) && [Date] <earlier([Date. IntegerDivide( TheTotalDays, 30) That would give you an approximation of the months. If I use DATEDIFF (List1 [Date 1]. Resolved Duration = DATEDIFF('FreshService Data RAW' [Created Date],'FreshService Data RAW' [Resolved Date],DAY) Solved! Go to Solution. We’re about to examine its simplicity. Our hope is that this information will help each of our community members grow in their. The table has a lot of infos like date, name, email, mobile number, etc. I just need to know how many days are between those two columns. Days (DateTime. Message 4 of 4. Seconds(#duration(5, 4, 3, 2))The two dates are located in the same column, and I want to find the number of days between two chronologically adjacent dates when there are multiple date values - eg. Date (DateTime. Determine various quarters ran based on start and end date in google sheets. i have attached the snap of the cell. A date in datetime format that represents the end date. It does have Duration, but this only for days, hours. The following table lists all the valid datepart values. Examples in this article can be used with the sample Adventure Works DW 2020 Power BI Desktop model. The point of this coulmn is to be able to select it as a pivot table selector. To calculate Month End, I would duplicate the column that you want to count from month end - so of it's 1st Date's month end, duplicate 1st Date. Message. Job 200 = new status "B" = old status TG. You can use the Duration functions. Accountnumber =. If I want to create a column, what is the dax for it. You can do this by using a measure that calculates the maximum date in the column. DATEDIFF is available in DAX but not in Power Query Editor. Then write the Dax formula: No. 3. RoundDown (DateDiff (StartDate. Text . So, when i try to change it from Direct Query it accepts the Date Format, but the DataType still remains as a Varchar/STR. Take a guided tour. For example select GetDate() as D1, GetDate() as D2 from SomeTable may return two different values for the two columns, but they will not vary from one row to the next. Go to Power Query tab; Entered Power Query table/query editor; Select Add Column tab; Select Custom Column button; Name the. Use the DateDiff function in VBA code. From([EndDate]-[StartDate]))) Did I answer your question?When I'm using the DateDiff Function to get the difference between two dates it works fine, however it rounds up my dates and I would like to round this down. 10-28-2018 10:45 PM. For this example, we will use the employee’s table data to get the number of working days between the last date and date of joining column using the Duration. then we'll look for the Last date that is less than Feb 2, 17 (the date on the current row) only for data that has a GroupID of 1. 06-22-2020 01:25 AM. DateDiff in Hours = DATEDIFF(MIN(B),MAX(B),HOUR) View solution in original post. e order date and ship date to find the difference in months. technically i should date and time rightPower Query recognizes the column data types as datetimes. ‘Date' [Date] means the column named “Date” under the table. Also in Report mode, for this Hours column, click Column Tools tab. Is there any way this can be accomplished in Power. Call it [Sales Date]. @JKoivu , diff from previous date . When I try to create a column using the following . @RonRosenfeld You are right. Then write the Dax formula: No. Value = "Day Shift", DateDiff (StartTime, EndTime, Hours), If ( EndTime < StartTime, DateDiff. I have a date diff column that added , but i'd like it to show up in my power query. To do so you use the DATEPART function with the WEEKDAY parameter. A correct Power Query solution can be found in this topic. add new column (for sure startdatetime and enddatetime have to be in your columns somehow) and then write like this =fxHoursBetweenDates ( [startdatetim], [endtdatetime])Hello @bsteinacher, Thank You for posting your query onto the Forum. 4979 - this is the correct result. Big thanks to both of you for taking time looking at my challenge. Your solution: agetest = FLOOR(DATEDIFF(date(2017,02,05), date(2020,02,05), DAY) / 365. datepart The units in which DATEDIFF reports the difference between the startdate and enddate. 1 Answer. /* FUNCTION: Emulate Excel's. The Power of Community Impact Reflecting on their experiences, Geetha and Ben emphasize the profound impact that community engagement has had on both their professional and personal lives. From([EndDate]-[StartDate]))) Did I answer your question? Mark my post as a solution! Proud to be a PBI Community Champion. Power Query is for Data Modeling. Duration. . Seconds = DATEDIFF ( Log [StartTime], Log [EndTime] , SECOND ) Then you can write a measure that references that column: CALCULATE ( AVERAGE ( Log [Seconds] ), ALLEXCEPT ( Log, Log [Type] ) )This is how to apply the filter using the DateDiff function measure in Power BI. datediff into power query. this will calculate the difference between the Birthdate column, and the current date and time. 0. . To do that, we’ll be using a function called List. DATEDIFF is available in DAX but not in Power Query Editor. SP List#2 (Area, Frequency, Task, Tools, Date_Completed, Initials) is log where task completion is recorded. The 1 stands for the day is work day. For 2 and 3 I'll just drop this blog here so you can read the details. I am using PowerApps in Teams and I created a Power Automate to change the field value if the selected date is smaller than today. it will be evaluated as (1-52) = -51 * 2 = -102. so a date this month would be 0 a date last month would be 1 ect. EVALUATE VAR StartDate = DATE ( 2019, 07, 01 ) VAR EndDate = DATE ( 2021, 12,. I've also tried to make columns for each step, use datediff instead, and just do it in excel and import only the values to power bi. Does anyone know how to do this? To make it easier to find I’ve placed a few methods to count the number of days between two dates in Power Query, here, in the M Code Showcase category. = Duration. yyyy") should be 2,2 Thanks in advance for your helpUnited States (English) Brasil (Português) Česko (Čeština) Deutschland (Deutsch) España (Español) Česko (Čeština) Deutschland (Deutsch) España (Español)If (Radio3. Raj. Get Help with Power Apps; Power Query; DateDiff between rows of Status changes; Reply. However, the age that you see in the. When a user creates a record or edits a record in powerapps, this coumn gets set to the difference between teh DateFrom Column and teh dateTo Column. How can I ahieve this? I am trying to create categories based on the amount of time difference between the two dayss ie. The DAX DATEDIFF function calculates the time interval between two dates, and presents the result in seconds, minutes, hours, days, weeks, months, quarters or years. Hack Together: Power Platform AI Global Hack. let WorkdayDiff = (StartDate as date, EndDate as date) as number => let DateList = List. 3. It also closes the item. Measure = IF(MAX('Project-Activity'[PLANNED_START_DATE])<'Project. The DatesInPeriod function in DAX will give you all dates within a period. View solution in original post. If you want to calculate the number of days between two dates in Power Query you can use. If you want to achieve DATEDIFF in Power Query Editor then use Duration. i created a calculated column for an age in months as follows: No of months old = -DATEDIFF (TODAY (), '01_Calendar' [Date], MONTH) It works out the value correctly for me. It appears to take fractional parts of the days and if there is more than half a day remainder, round up the result, which looks like there is an extra day. Insert a index column into the table to help you create DAX. Based on my test, it is supported to add datediff calculated column in Direct query mode, plz see below capture: Community Support Team _ Dina Ye If this post helps , then please consider Accept it as the solution to help the other members find it more04-04-2018 08:33 AM. The syntax for DATEDIFF in Power BI is as follows: diff = DATEDIFF(<start date>, <end date>, <interval>) Demonstration. DATEDIFF(TableA[Dates],MAX(TableB[Dates]),WEEK) If I understand correctly then datediff only takes the difference between 2 dates and not a column. Syntax: NETWORKDAYS (<start date>, <end date> [, <weekend>, <holidays>]) Unlike the function DATEDIFF, you can edit parameters to specify which and how many days are weekend days. However, you can create a measure instead. TimeDiff = SUMX (Table, Table [TimeColumn1] - Table [TimeColumn2] or. Interval: How you want the difference to be expressed. BR, AlonYou have to use M functions rather than just pasting in SSRS code and hoping it works. The Power Platform community, they note, is a wellspring of resources and opportunities, fostering continuous learning, skill enhancement, and. Lets say you want to calculate duration between Start & End column in any table, first create a query as advised above and name it networkdays. ---. And add a Date table to your model. 03. 3 - rename query like fxHoursBetweenDates. Usage Power Query M Duration. returns 3. Well you can simply use the “DATEDIFF” function to calculate the Time Scheduled. So essentially, the last value of every ticket should always count between the DateTimeStamp and NOW(). 2. Divide the difference in ticks by 864000000000 to find the difference in days. 07-05-2020 07:30 PM. , NextDate, DATEDIFF("D", Date, NextDate) FROM ( SELECT ID, AccountNumber, Date, ( SELECT MIN(Date) FROM YourTable T2 WHERE T2. If I use DateDiff function it disregards the fact that there are weekend days in the calendar. Interval is the unit of time intervals this function returns. Team, I want to find duration in hours (upto 2 decimal places) from two datetime formatted cells. how can I do this. Hi @roebern. Adds timezone information to the datetime value. Days and input the last date minus the first date. Click on "Transform data" icon to switch in Power Query mode. Hours(Duration. I have a start date and time and an end date and time and I'd like to use DateDiff() to determine the hours:minutes:seconds of elapsed time. Make a new column with this formula: Hours = DATEDIFF (StartDateTime, EndDateTime, MINUTE)/60. You need to take the values from the datacards for the date and time and put them together to get a DateTime. Duration.