on 07-09-2021 7:51 PM
Not sure what's wrong with the formula, trying to get the difference in date/time in minutes, please help!!
=(ToNumber(SubStr(FormatDate([Bed Assigned Date Time] ,"HH:MM:SS") ,1 ,2))*60) + (ToNumber(SubStr(FormatDate([Bed Assigned Date Time] ,"HH:MM:SS"), 4, 2))) + (ToNumber(SubStr(FormatDate([Bed Assigned Date Time] ,"HH:MM:SS"), 7, 2))/60) - ((ToNumber(SubStr(FormatDate([Last Bed Requested Date Time] ,"HH:MM:SS") ,1 ,2))*60) + (ToNumber(SubStr(FormatDate([Last Bed Requested Date Time] ,"HH:MM:SS"), 4, 2))) +(ToNumber(SubStr(FormatDate([Last Bed Requested Date Time] ,"HH:MM:SS"), 7, 2))/60) +((DaysBetween([Bed Assigned Date Time];[Last Bed Requested Date Time])*24)*60)
correct it to "HH:mm:ss"
and why you use this complex formula, just use TimeBetween
TimeBetween(first_date;last_date;period)
period: HourPeriod, MinutePeriod,SecondPeriod, MillisecondPeriod
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
©2010 - 2016 SAP SE or an SAP affiliate company. All rights reserved. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE in Germany and other countries. Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.
SAP BusinessObjects BI Platform 4.2 Support Pack 2 Patch 12
Version: 14.2.2.2484
www.sap.com/bi ©2010 - 2016 SAP SE. All rights reserved.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.