Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to get the latest full month

How to get latest full month. If latest date is 16 march 2017  then period should show Feb 2017. i.e. latest full month

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

May be

Max(MonthEnd(Date),2)

or

MonthName(Max(MonthEnd(Date),2))

Regards,

Antonio

View solution in original post

4 Replies
sunny_talwar

May be like this

Sum({<Date = {"$(='>=' & Date(If(Max(Date) = Floor(MonthEnd(Max(Date))), MonthStart(Max(Date)), MonthStart(Max(Date), -1)), 'DateFieldFormatHere') & '<=' & Date(If(Max(Date) = Floor(MonthEnd(Max(Date))), Floor(MonthEnd(Max(Date))), Floor(MonthEnd(Max(Date), -1))), 'DateFieldFormatHere'))"}>}Measure)

antoniotiman
Master III
Master III

May be

Max(MonthEnd(Date),2)

or

MonthName(Max(MonthEnd(Date),2))

Regards,

Antonio

Anonymous
Not applicable
Author

try

MonthName(MonthEnd(YOURDATEFIELD,-1))

Anonymous
Not applicable
Author

Thank you.