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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
gisellevaleta
Contributor III
Contributor III

Month No to Month Name

Hi Everyone,

Please can you assist, I need to change the field "MT NO" in below to return the Month Name and not the Month No.

LOAD

    "YR SEASON CODE" as "Year Season Code",

    "MT NO" as "Month",

    "WK NO" as "Week No",

    "YR NO" as "Year"

FROM [lib://QlikData.qvd]

(qvd);

4 Replies
narband2778
Creator II
Creator II

Hi,

Try this

=month(MakeDate(2000,'MT NO'))


Thanks,

Naresh

gisellevaleta
Contributor III
Contributor III
Author

Thanks works perfectly.

agigliotti
MVP
MVP

Let's try as below:

LOAD *,

     Month( MakeDate(Year, Month, 1) ) as New_Month;

LOAD

    "YR SEASON CODE" as "Year Season Code",

    "MT NO" as "Month",

    "WK NO" as "Week No",

    "YR NO" as "Year"

FROM [lib://QlikData.qvd]

(qvd);

in the UI you can use New_Month as dimension.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
undergrinder
Specialist II
Specialist II

hi Valeta,

Both should do the work:

=month(makedate(2018,'MT NO',1))

=date(makedate(2018,'MT NO',1),'MMM')

G.