Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9080

Re: BO 3.1 WEBI Time format variable not showing correctly

$
0
0

Hi,

 

Let me try.

This is your formula.

 

=FormatNumber(Floor([Column_Name]/3600) ;"0") + ":" + FormatNumber(Floor(Mod([Column_Name];3600)/60);"00") + ":" + FormatNumber(Mod(Mod([Column_Name] ;3600) ;60) ;"00")

 

Issue with this formula is only when you have used negative seconds.I have break the formula =FormatNumber(Floor([Column_Name]/3600) ;"0")  and found this is giving the wrong result.If you divide -720/3600 you will get 0.2 and nearest integer is 0 but in this case 1 is coming.

 

Same time it is working properly with 720 and  the result  will be 0.

 

In this case i have  created one variable  which  convert the negative values to positive.If you enter -720 then it will convert 720 and you will get the 0 from first part.

 

=If([Column_Name]<0) Then ([Column_Name]*-1) Else [Column_Name]

 

Second part is if you entered the negative values then output should be in the negative.but with above condition you will get the positive values.

 

Again i have created the formula If([Column_Name]<>[Column]) Then "- which compare the object values and see if I have changed anything.

 

Like i have entered -720 so first variable will convert to 720 then in next formula it will check -720 is not equal to 720 (Which is not) then add - (minus sign) and same calculation else part if is equal then use the same formula which you have put.

 

 

Hope this is clear to you.

 

Regards,

Amit


Viewing all articles
Browse latest Browse all 9080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>