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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Date Format

='Premium ' & (Max(R_YEAR)) &'-'& (Max(R_MONTH))

when I use above label in a chart the result is  2013-1   , 2013-2 etc.

I want the label  to display as follows   

2013-JAN    2013-FEB

pls help me to rewrite the above expression correctly

1 Solution

Accepted Solutions
Sokkorn
Master
Master

Hi Upali,

Use this

='Premium ' & (Max(R_YEAR)) &'-'& Pick(Max(R_MONTH),'JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC')

Regards,

Sokkorn

View solution in original post

10 Replies
sujeetsingh
Master III
Master III

Use this

='Premium ' & (Max(month(R_YEAR))) &'-'& (Max(month(R_MONTH)))

jjordaan
Partner - Specialist
Partner - Specialist

Use

='Premium ' & (MAX(YEAR(R_YEAR))) &'-'& (MAX(MONTH(R_MONTH)))

Anonymous
Not applicable


Can you try ='Premium' & (YEAR(MAX(R_YEAR))) & '-'&(MONTHNAMES(MAX(R_MONTH))).

MayilVahanan

HI

Try like this

='Premium ' & (MAX(YEAR(Today()))) &'-'& (MONTH(Today()))

Gives result as "Premium 2014-Feb"

Edit:

='Premium ' & (MAX(YEAR(Today()))) &'-'& Upper(Month(Max(Today())))

Gives result as "Premium 2014-FEB"

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Sokkorn
Master
Master

Hi Upali,

Use this

='Premium ' & (Max(R_YEAR)) &'-'& Pick(Max(R_MONTH),'JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC')

Regards,

Sokkorn

amit_saini
Master III
Master III

Hi Upali,

Try this:

Year(Datefield) & ' / ' & Month(Datefield)

Thanks,

ashwanin
Specialist
Specialist

='Premium ' & (MAX(YEAR(R_YEAR))) &'-'& (MAX(MONTH(R_MONTH)))

sunilkumarqv
Specialist II
Specialist II

Copy and past this in your script. Its working in my text box

='Premium' & (YEAR(MAX(R_YEAR))) & '-'&(month(MAX(R_YEAR)))

OR

='Premium' & (YEAR(MAX(Today()))) & '-'&(month(MAX(Today()-30)))  & '  '& 'Premium' &(YEAR(MAX(Today()))) & '-'&(month(MAX(Today())))

Not applicable

Hi Upali,

Try to this

='Premium ' & (Max(R_YEAR)) &'-'&

='Premium ' & (MAX(YEAR(Today()))) &'-'& Upper(Month(Max(Today())))

and jeroen also put right expression try to both

Regards,

DJ