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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
matthewp
Creator III
Creator III

Expression calculation for last 12 months not including this month

I'm trying to create an expression calculation for last 12 months not including this month.

So for February it would be 2016 FEB to 2017 JAN

I tried

=Count({1<MMMYY ={'>=$(=Date(AddMonths(Today(), -13),'MMM-YY'))<=$(=Date(Today(), 'MMM-YY'))'}>} DISTINCT [MYID])/12

But it didn't work.

21 Replies
matthewp
Creator III
Creator III
Author

managed top do it using a variable, see answer

thanks for the help

sunny_talwar

I am glad it finally worked, but its amazing that one way it worked and other way it did not work. But I guess as long as you get what you wanted, we should be all good