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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Number as text

Hi,

I have a few tables representing month as numbers 0, 1, 2 ... to 12. I no want to change the display of these numbers to text; Jan, Feb, March ... and so on. How do I do this?

Cheers,

Nils

1 Solution

Accepted Solutions
rustyfishbones
Master II
Master II

Nils,

Just add the Expression in your list box instaed of selecting Month

see attached

Regards

Alan

View solution in original post

27 Replies
sandeepprasad_j
Creator
Creator

Hello Nils,

Use Month() function

hope it helps

Sandeep.

christian77
Partner - Specialist
Partner - Specialist

Hi.

In your script:

Month(MakeDate('2222',Month,'22'))   as Month

First you create a date with your month.

After apply Month funktion.

MK_QSL
MVP
MVP

There are multiple ways

You can add an INLINE table in your script...

Load * INLINE

[

     Month, MonthName

  1, Jan

  2, Feb

  3, Mar

  4, Apr

  5, May

  6, Jun

  7, Jul

  8, Aug

  9, Sep

  10, Oct

  11, Nov

  12, Dec

   ];

Or just use the below function to get MonthName from MonthNumber

=Month(MakeDate(Year(Today()),MonthNumber))

CELAMBARASAN
Partner - Champion
Partner - Champion

Use Month function.

It will give you Both Number and text on using like

Text(FieldName), Num(FieldName)

Ex:

Month(DateField) As FieldName

Clever_Anjos
Employee
Employee

You can use something like

LOAD

  SubField('$(MonthNames)',';',yournumfield) as yourmonthfield

Not applicable
Author

thanks, this answer worked half-way . i am now getting the month names to appear, however i would like to also hide the numbers, so that only the month names are showing.

Not applicable
Author

as with the answer below, this is also getting em half-way . am now getting the month names to appear, however i would like to also hide the numbers, so that only the month names are showing.

Not applicable
Author

hi all,

i still havent gotten a full solution to this, anyone who can give it another try?

I have now gotten the month to appear together with the number of the month, however i need to number to be gone . any ideas?

Anonymous
Not applicable
Author

Nils

Just use this :

     Month (  Date# ( num( [YourMonthNumberField] , '00' )   , 'MM' ) )

Should ok in either your load script or your dashboard.

No need to do any Inline Loads.

Best Regards,     Bill