Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date Filtering Issue While Loading

Hi All,

Please find the attached QVW and QVD.

When i filter the date field in the Load Script, I am getting some 225 records but there are actually 625 records.

Can someone please check the Qvw.

Thanks in advance.

Regards,

Keerthi KS

1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

Hi,

It seems there are 4 different timestamp formats (with single space,double space) in the qvd. first convert it, then check.

Alt(Date#(LastModifiedOn,'MMM  DD YYYY  hh:mmTT'),

      Date#(LastModifiedOn,'MMM DD YYYY hh:mmTT'),

      Date#(LastModifiedOn,'MMM  DD YYYY hh:mmTT'),

      Date#(LastModifiedOn,'MMM DD YYYY  hh:mmTT'))) as New


Edit

Sample Attached

View solution in original post

9 Replies
Gysbert_Wassenaar

It's all the double spaces. Try replacing the double spaces with single spaces:

TimeStamp(TimeStamp#(Replace(LastModifiedOn,'  ',' '), 'MMM D YYYY h:mmTT'))


talk is cheap, supply exceeds demand
Not applicable
Author

When i load complete data and check it was around 625 where the dates are greater than 13 Feb 2016.

Chanty4u
MVP
MVP

why this condition

it gives u the  the date  > than records only i think

Where Timestamp#(LastModifiedOn, 'MMM D YYYY hh:mmTT')

>Timestamp#('13/2/2016', 'DD/M/YYYY');

Not applicable
Author

Yes i need only records that are greater than 13/2/2016.

But its not giving correct data.

settu_periasamy
Master III
Master III

Hi,

It seems there are 4 different timestamp formats (with single space,double space) in the qvd. first convert it, then check.

Alt(Date#(LastModifiedOn,'MMM  DD YYYY  hh:mmTT'),

      Date#(LastModifiedOn,'MMM DD YYYY hh:mmTT'),

      Date#(LastModifiedOn,'MMM  DD YYYY hh:mmTT'),

      Date#(LastModifiedOn,'MMM DD YYYY  hh:mmTT'))) as New


Edit

Sample Attached

Not applicable
Author

Please find the attached qvw. I Have selected the data and it shows only 626 records

tamilarasu
Champion
Champion

You can try,


LOAD LastModifiedBy,

     LastModifiedOn,

     Uniqueid

FROM

(qvd) Where  Date(Floor(TimeStamp#(Replace(LastModifiedOn,'  ',' '), 'MMM D YYYY hh:mmTT')), 'DD/MM/YYYY') > '13/02/2016' ;

Chanty4u
MVP
MVP

but chk this..

Kushal_Chawda

try

WHERE Date(Floor(TimeStamp#(purgechar(LastModifiedOn,' '), 'MMMDDYYYYhh:mmTT')), 'DD/MM/YYYY') > date#('13/02/2016' ,'DD/MM/YYYY');