Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
krishna20
Specialist II
Specialist II

Date Format

Hi Friends,

I'm having a problem in Retrieving the date format.

I'm having the field Ret_Month and need to use it as dimension.

My Ret_Month is in 01,02,03,04......

I need show like it as full names January....December.

I used like below.

=if(date(Ret_Month,'MMMM'),Ret_Month)

But, i'm getting as January, December, January, January,January......January.

Please anyone suggest me what may be the problem is...

Thanks & Regards

Krishna

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Have a look at attached application.

Edit:

You can even use the below code too.

Date(Date#(MONTH,'MM'),'MMMM') as TestField,

Regards

ASHFAQ

View solution in original post

15 Replies
ecolomer
Master II
Master II

You need to see the SET sentence in the begining script .... and see the QV  file attacheddate.png

MK_QSL
MVP
MVP

Load

  *,

  Date(Date#(SubField('$(MonthNames)',';',Ret_Month),'MMM'),'MMMM') as Ret_MonthFull

Inline

[

  Ret_Month

  01

  02

  03

  04

  05

  06

  07

  08

  09

  10

  11

  12

];

ashfaq_haseeb
Champion III
Champion III

Hi,

Can you post a sample qvw file.

Regards

ASHFAQ

ecolomer
Master II
Master II

Attaced a Qv file

krishna20
Specialist II
Specialist II
Author

Hi Colomer,

i used the expression which you suggested me.but its not working.

regards

Krishna

ashfaq_haseeb
Champion III
Champion III

Post your sample file.

Regards

ASHFAQ

ecolomer
Master II
Master II

Get me the QV file to see

In my QV they are another file xls in charge script

Here you have all

MarcoWedel

Maybe also:

Date#(SubField('$(LongMonthNames)',';',Ret_Month),'MMMM')

?


Regards


Marco

krishna20
Specialist II
Specialist II
Author

Hi Colomer,

Please find the below attachment and guide me further.

Regards

Krishna