Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to show dates format

Hi All,

Below is my format

 

Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Feb - 17
Feb - 17
Feb - 17
Feb - 17
Feb - 17
Mar - 17
Mar - 17
Mar - 17
Mar - 17
Apr - 17
Apr - 17
Apr - 17

May - 17

out put be like

Jan -17

Feb -17

Mar -17

Apr -17

May -17

Regards,

Labels (1)
6 Replies
prieper
Master II
Master II

LOAD DISTINCT ??

tresB
Champion III
Champion III

Where are you getting the data from? Excel?

Anonymous
Not applicable
Author

Nope!!

Actuval data is like this:

 

1/10/2017
1/11/2017
1/12/2017
1/12/2017
1/17/2017
1/17/2017
1/17/2017
1/17/2017
1/18/2017
1/25/2017
1/27/2017
2/6/2017
2/8/2017
2/8/2017
2/14/2017
2/28/2017
3/8/2017
3/22/2017
3/22/2017
3/23/2017
4/7/2017
4/10/2017
4/25/2017
5/1/2017
tresB
Champion III
Champion III

You are probably using date() to format it to see the MMM-YYYY format. Instead try using monthname(), like:

MonthName(Date) as Month

tresB
Champion III
Champion III

And if you need that '-' too, try like:

Date(MonthStart(Date), 'MMM-YYYY') as Month

el_aprendiz111
Specialist
Specialist

hI,


LOAD Distinct Date;
LOAD * Inline
[
Date
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Jan - 17
Feb - 17
Feb - 17
Feb - 17
Feb - 17
Feb - 17
Mar - 17
Mar - 17
Mar - 17
Mar - 17
Apr - 17
Apr - 17
Apr - 17
May - 17
]
;