Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
rubyotero
New Contributor III

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

Re: date formating prob

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

Regards,

Kiran Rokkam.

4 Replies
Not applicable

Re: date formating prob

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

Regards,

Kiran Rokkam.

Not applicable

Re: date formating prob

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

Re: date formating prob

A great resource for understanding date and timestamp data is

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

-Rob

rubyotero
New Contributor III

Re: date formating prob

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

Community Browser