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: 
richnorris
Creator II
Creator II

How to indicate the current month?

Hi, I am trying to show on a pivot a list of months for the last two years, but I want to be able to show as the name of the current month 'MonthName - MTD' to indicate it is not a full month. I've been hacking around with it for a while, and I got something like

=Month & if(Month = Date(Today(), 'MMM'), ' -MTD')

to work, but then the sort order of the months fails. Is there a way to manually then sort the months?

Thanks!

2 Replies
Not applicable

Hi,

If you can pad year/month ..then displaying the same in pivot table is easy ..you can sort the same numerically ...for eg. 201001, 201002, ...........200912,200910...

rgds

tapas

richnorris
Creator II
Creator II
Author

Thanks, but its a business requirement that it shows years, broken down into months in the format 'MMM' with the current month showing as 'MMM - MTD'.