Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
rotero
Creator
Creator

date formating prob

hi,

i have a sql table that has a date fiel (complete  date up to time)

and i load it using date(datefield) as Date1

it gives me value with format 'MM/DD/YYYY', this is fine with me because i just want to get the proper date without the time...

and i use table object because i want to display the per record details, BUT when i want to filter per Date1 i have this --see picture below first field is the default value frm SQL table and 2nd field is the result of date(datefield) as PAFDate

datepic1.png <---i got this when i look up for a date see the multiple line even if its the same date?ex. 02/10/2012

datepic.png  this image when i filter it by date i selected

can anyone help me understand pls....

1 Solution

Accepted Solutions
Not applicable

Its because of the timestamp factor. If you want to remove it please try date(floor(datefield))

Regards,

Kiran Rokkam.

View solution in original post

4 Replies
Not applicable

Its because of the timestamp factor. If you want to remove it please try date(floor(datefield))

Regards,

Kiran Rokkam.

Not applicable

Hi,

You have multiple rows of data for a perticular date and if u want the total for that date remove the timestamp and you will get one row for that date.Try this in the script to remove timestamp:

=date(floor(Date),'DD-MM-YYYY')

Regards

Apurva

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

A great resource for understanding date and timestamp data is

http://community.qlik.com/docs/DOC-3102

-Rob

rotero
Creator
Creator
Author

tnx to all.. it did what i intend to do,,,

i think beginners should first understand how QV handles date value... and then how to format it