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

Comparing Dates with timestamp in WebI: Is timestamp considered?

$
0
0

Hi,

Requirement is:

 

Step 1:

From BEx query i get two dates in sring format: Closing date and PSR KPI1

 

Step 2:

I convert both these dates into 'DATE' datatype

 

[Closing date]= ToDate([Closing date];"dd.MM.yyyy HH:mm:ss")

[KPI1 Date]    = ToDate([PSR KPI1];"dd.MM.yyyy HH:mm:ss")

 

Step 3: I need to check whether KPI is met or not by comparing two dates as well as timestamp

 

       i can do it in 2 ways:

         1. Meet KPI1 = If ([KPI1 date]>[Closing Date]) Then "YES" Else "NO"   (i.e. KPI is met when service request close before KPI1 Date)

 

          2. Meet KPI1 = If DaysBetween([KPI1 Date];[Closing Date])>0 Then "YES" Else "NO"

 

 

Now my question is if we have a scenario where we have same date and different timestamp

[Closing date]   = 15.08.2012 09:50:55

[KPI1 Date]       = 15.08.2012 15:20:45

 

Will above logic consider timestamp too. In our example i am looking for output as Meet KPI1= Yes

 

 

If timestamp is not considered then request you to please let me know how can i achieve this logic where timestamp is also considered.

 

Thanks much,

Ashish


Viewing all articles
Browse latest Browse all 5402

Trending Articles



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