Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

WEBI forula query

$
0
0

Hi All,

 

I'm modifyig a report which was developed by another developer.

 

here the previous guy has used the folowig formula in a variable.


Business hrs = ((Truncate((DaysBetween([febStartDate ]; [febEndDate])+2) / 7 ; 0) * 5) +

ToNumber(Substr("1234555123444512333451222345111234500123450123455";

((DayNumberOfWeek([febStartDate ])-1)*7)+Mod((DaysBetween([febStartDate ];[febEndDate])+2);7) ; 1)))*7.6

 

 


Please note that only for the month of february we are gettig the incorrect number of hours (number of days * 7.6). for the rest of the moth figures are corrrect.

 

Also i test the febStartDate and the febEndDate and they are correct (01/02/13 and 28/02/13) can anybody tell me where it has gone wrong?

 

Correct figure should be 152. Istead i' getting 190. can anybody please help?

 

number of working days should be 20

 

Regards,

DTD


Viewing all articles
Browse latest Browse all 5402

Trending Articles