Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
viveksingh
Creator III
Creator III

Distinct date from timestamp

Hi Experts,

I have CALENDAR_DATE field in Time stamp format, which is like 2001-01-13 00:00:00.000000

I  extracted Date from the Time stamp with  Date(Timestamp(CALENDAR_DATE),'MMM-YY')

and the output shows as

JAN-01

JAN-01

FEB-01

JAN-02

FEB-02

FEB-02

JAN-03

FEB-03

I want this as which is unique records along with sort.

JAN-01

FEB-01

JAN-02

FEB-02

JAN-03

FEB-03

Thanks,

Vivek

12 Replies
swuehl
MVP
MVP

Try

Date(Monthstart(CALENDAR_DATE),'MMM-YY')

vinieme12
Champion III
Champion III

use

DUAL(DATE#( Date(Timestamp(CALENDAR_DATE),'MMM-YY')),Num(Date(Timestamp(CALENDAR_DATE),'YYYYMM')) )

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
viveksingh
Creator III
Creator III
Author

Thank you very much Stefan. It worked well..

Thanks to all Experts for guiding me.