Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
paulwalker
Creator III
Creator III

Need Help

Hi Community,

I have one issue in Expression Label..

In my bar chart comparing Current month and Previous Month data.

in label i have used Max(Month) but it showing Number... I want to show Month name..

based on selection i want to change...

Thanks in advance..............

14 Replies
settu_periasamy
Master III
Master III

Hi,

like the below snapshot.

Capture1111.JPG

PFA.

paulwalker
Creator III
Creator III
Author

I got it..

Thanks everyone..

CurrentMonth:

=left(MonthName(Max(DDMonthYear)),3)

Previous Month:

=Date(addmonths(max(DDMonthYear), -1),'MMM')

paulwalker
Creator III
Creator III
Author

Thanks for help Settu..

I hit Correct Answer............

Anonymous
Not applicable

Although it is resolved - I'd recommend to use date/time functions rather than string functions.  That is, the current month should be simple:

=date(Max(DDMonthYear),'MMM')

paulwalker
Creator III
Creator III
Author

Yes Michael,

Your right....