Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
sagaraperera
Creator
Creator

Set Analysis Prior Month

Dear All

I want to get prior month max date using input box and i already use following expression

 

=date(AddMonths(max(MARKETING_DATE),-1))

then i select apr 2019 and come to result 30 mar 2019 but it should be 31 mar2019

please help

 

sagara

1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try this:

=MonthEnd(max(MARKETING_DATE),-1)

View solution in original post

3 Replies
tresB
Champion III
Champion III

Try this:

=MonthEnd(max(MARKETING_DATE),-1)

sagaraperera
Creator
Creator
Author

 

Dear tresesco

Thanks Dear its work

 

sagara

tresB
Champion III
Champion III

Sagara,
If you get your question answered, please mark it as correct/answered and 'like' it to close the thread. This will help other community members.