Skip to main content
Announcements
Happy New Year! Cheers to another year of collaboration, connections and success.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

expression issue

hello guys,

can you help on below matter? This below is the expression using causing the issue.

=If(Num#(Time#(interval(CLOSEDDATEFORMAT) - Interval(CREATETS),' d h:mm:ss')) - HolidayCount < 0,OPEN_DAY_FRACTION,

   (Num#(Time#(interval(CLOSEDDATEFORMAT) - Interval(CREATETS),' d h:mm:ss')) - HolidayCount))

   

Note1: the first record from the below table is cauing the issue bcz of holidaycount.

Note 2: Input & output (looking for

EXPECTEDOUTPUT

column information) :

  Data:

     

QIDCREATETSOPEN_DAY_FRACTIONCLOSEDDATEFORMATCLOSED_DAY_FRACTIONHolidayCountTASK_DURATIONEXPECTEDOUTPUT
QWS17088504346013/04/2017 09:27:150.60608796314/04/2017 09:35:370.399733796310.00581357061.0058135706
QWS17088944547013/04/2017 21:40:550.09659722214/04/2017 10:23:210.432881944410.09659722220.096597222
QWS17135440660906/06/2017 17:14:260.28164351907/06/2017 12:23:030.515995370400.79764440.7976444
QWS17088159556712/04/2017 23:52:360.00513888919/04/2017 12:23:120.516111111142.52125000002.5212500000
QWS17054431772904/03/2017 23:59:380.00026620406/03/2017 16:28:280.686435185210.68670138890.6867013889
9 Replies
vinieme12
Champion III
Champion III

try

=If((interval(CLOSEDDATEFORMAT- CREATETS,'d h:mm:ss') - HolidayCount) < 0,

               OPEN_DAY_FRACTION,

                 interval(CLOSEDDATEFORMAT- CREATETS,'d h:mm:ss') - HolidayCount)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable
Author

not working Pujari,thanks.

vinieme12
Champion III
Champion III

can you post sample app or excel?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable
Author

attached.

vinieme12
Champion III
Champion III

Try

=if(((CLOSEDDATEFORMAT-CREATETS)-HolidayCount)<0

,OPEN_DAY_FRACTION

,(CLOSEDDATEFORMAT-CREATETS)-HolidayCount)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
vinieme12
Champion III
Champion III

Check the attached

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable
Author

hello pujari,

thanks for ur time,but still getting output as 0.00581xx instedof 1.00581xx.

i'm expecting the output as 1.00581xx for QWS170885043460.


kindly look into it.

vinieme12
Champion III
Champion III

Can you derive that output in an excel and show me? as per your conditions 0.00581xx  seems to be the correct answer!!

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
rohitraut
Creator
Creator

Try this:

if(Num#(Time#(interval(CLOSEDDATEFORMAT) - Interval(CREATETS),' d h:mm:ss')) - (HolidayCount <0) <0,OPEN_DAY_FRACTION,(Time#(interval(CLOSEDDATEFORMAT) - Interval(CREATETS),' d h:mm:ss')) )