Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to create a varaible which will give previous month of maximum month

Please help me to create a varaible which will calculate previous month of maximum Month.

So if  maximum date is 8/8/2014 it should give output as July 2014.

max(date)=8/8/2014

month(max(date)& year(max(date)=August 2014

so previous month of August 2014 is July 2014.I want to create variable which will give this as output.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

=Date(AddMonths(Max(Date),-1),'MMMM YYYY')

View solution in original post

2 Replies
MK_QSL
MVP
MVP

=Date(AddMonths(Max(Date),-1),'MMMM YYYY')

Not applicable
Author

Thanks a lot Manish !!

Thanks for quick response