Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to load distinct dates?

Hi All,

My table is having one column only as Date

Date
3/13/2013
3/13/2013
3/13/2013
3/13/2013
3/14/2013
3/14/2013

I want to load only distict dates is another table like:

Date
3/13/2013
3/14/2013

How to do this?

Thanx in advance..

1 Solution

Accepted Solutions
Not applicable
Author

Try with this. your dates have decimals (hours, minutes, etc, are difrerentes)

Audits:

LOAD 

     Date(DayStart(Timestamp)) as Calendar_Date

FROM Logs\Audit*.log

(txt, utf8, embedded labels, delimiter is '\t', msq)

where Date(Timestamp)>='01/01/13';

Ricardo

 

View solution in original post

5 Replies
Not applicable
Author

LOAD DISTINCT

   Date

FROM Table;

jagan
Luminary Alumni
Luminary Alumni

Hi,

try

LOAD

     DISTINCT Date

FROM DataSource;

Regards,

Jagan.

Not applicable
Author

It is not working. Pl find attched application.

Not applicable
Author

Try with this. your dates have decimals (hours, minutes, etc, are difrerentes)

Audits:

LOAD 

     Date(DayStart(Timestamp)) as Calendar_Date

FROM Logs\Audit*.log

(txt, utf8, embedded labels, delimiter is '\t', msq)

where Date(Timestamp)>='01/01/13';

Ricardo

 

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

You can use like this way also

Audits:

LOAD

     Date(Floor(Timestamp)) as Calendar_Date

FROM Logs\Audit*.log

(txt, utf8, embedded labels, delimiter is '\t', msq)

where Date(Timestamp)>='01/01/13';

Before doing this type of operation make sure that you don't need time(hours and minutes) for analysis.