Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
jim_chan
Specialist
Specialist

How to create a Last Month label?

Hi guys,

I have created the tablebox, now i need that label to state as Last Month Jan/Feb/Mar..... so on.

For example, if i have click on April, that column will show March figure, i need the label to be Last Month March.

I have below expression. but didnt seem to work.

='Last Month' & Month(addmonths(max(Month) ,- 1))

Rgds,

Jim

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

You can try this.

='Last Month' & Month(addmonths(max(Date) ,- 1))


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

You can try this.

='Last Month' & Month(addmonths(max(Date) ,- 1))


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Chanty4u
MVP
MVP

try wit max date

='Last Month' & Month(addmonths(max(Date) ,- 1))

Chanty4u
MVP
MVP

or else

='Last Month' & Num(Month([ Date]))-1)

or


LastMonth = max(Month)-1

and then:

='Last Month' & sum({$<Month={$(LastMonth)} >} Sales)