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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dynamic labels

Hi All,

I  need dynamic labels. I'm comparing last year current Month VS this year current Month.

Ex: last  May VS current May.

May-2016   =max([Month Period])

How can I get May-2015 .

Please help me out.

Thanks,

Krishna.

Month_period
Feb-2014
Mar-2014
Apr-2014
May-2014
Jun-2014
Jul-2014
Aug-2014
Sep-2014
Oct-2014
Nov-2014
Dec-2014
Jan-2015
Feb-2015
Mar-2015
Apr-2015
May-2015
Jun-2015
Jul-2015
Aug-2015
Sep-2015
Oct-2015
Nov-2015
Dec-2015
Jan-2016
Feb-2016
Mar-2016
Apr-2016
May-2016
1 Solution

Accepted Solutions
swuehl
MVP
MVP

If your Month-Year values show a numeric representation that represents a date, use QlikView date functions like AddYears():

=MonthName(AddYears(Max([Month Period]),-1))

View solution in original post

2 Replies
swuehl
MVP
MVP

If your Month-Year values show a numeric representation that represents a date, use QlikView date functions like AddYears():

=MonthName(AddYears(Max([Month Period]),-1))

Anonymous
Not applicable
Author

Thanks Swuehl