cancel
Showing results for 
Search instead for 
Did you mean: 

Need to Calculate Difference of Date/Times of Same Column

olekern
Ranger

I have data in the below format:

ResourceNameTxnDateTxnTypeNameContainerNameQtySpecNameProductName
SR10-481/23/23 3:41 PMMoveInAG6826626600F83_SU_SP00346-20016A
SR10-481/23/23 3:42 PMMoveStdAG6826626600F83_SU_SP00346-20016A
SR10-481/23/23 3:42 PMMoveInAG6826626600F83_FA_SP00346-20016A
SR10-481/23/23 3:43 PMMoveStdAG6826626600F83_FA_SP00346-20016A
SR10-481/23/23 3:43 PMMoveInAG6826626600F83_TU_SP00346-20016A

Please note:  in the below I don't want to aggregate the DateTime field - saying Max was the only way I could get it to display correctly.

I need to pivot the Transaction Types to take the difference of the times from MoveIn to MoveStd:

    ValuesTxnTypeName   
    Sum of Qty Max of TxnDate  
ResourceNameContainerNameProductNameSpecNameMoveInMoveStdMoveInMoveStdTimeDiff
SR10-48AG682662600346-20016AF83_FA_SP6006001/23/23 3:42 PM1/23/23 3:43 PM0:00:33
   F83_SU_SP6006001/23/23 3:41 PM1/23/23 3:42 PM0:01:10
   F83_TU_SP600 1/23/23 3:43 PM  

How could I do this in Incorta?
Excel file also attached.

2 REPLIES 2

RADSr
Captain
Captain

Check out this post - seems applicable here: 

 https://community.incorta.com/t5/data-schema-discussions/can-we-use-analytic-functions-like-lead-or-...

-- IncortaOne@PMsquare.com --

ZachBreimayer
Employee
Employee

I would recommend using a Pivot function in an MV for this as illustrated in the thread linked. It should be fairly easy for you to do if you read through it, but let us know if you need any further guidance and I would be happy to help further. https://community.incorta.com/t5/dashboards-analytics-discussions/what-is-a-simple-excel-reference-i...