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: 
ssriramin19
Contributor III
Contributor III

previous year values using set analysis

Hello

My requirement is that I have a  month field called plan month . I need to find one month previous and two month previous values using set analysis.

I tried with addmonths but it is not proper for my requirement.

Can anyone tell me how to resolve with set analysis

Thanks

3 Replies
fdelacal
Specialist
Specialist

SEE QVW I ATACH

HOPE IT HELP

ssriramin19
Contributor III
Contributor III
Author

Can you please tell me why the below code is not proper

 

date(num(only(Plan_For_Month-2))) .The month must be two months before from the current month .But it is not calculating proper.

Can anyone tell me how to resolve the above error

sivarajs
Specialist II
Specialist II

try this addmonths(max(date),-2)