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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
carolinne88
Creator
Creator

Month before the selected one

Hello guys. I need help again.


I have the down table with the date fields and last month's variable (vMesRef).


vMesRef => PerID = {$(=Max(PerID))}


I need a variable that brings me the "MêsAno" before the selected one. I tried the variable "vMesRefAnt", but it does not work.


vMesRefAnt => PerID = {$(=Max(PerID)-1)}


Can someone help me?


tabela data.jpg


erro variável.jpg

Labels (1)
20 Replies
carolinne88
Creator
Creator
Author

Hello guys!

After some time and countless attempts, I discovered together with a colleague something that may have prevented the expression from working.

In the variable description field I had commented another expression and when I deleted the comment, it worked!

I believe that is the explanation, but there are some mysteries of qlik that I never discover.


Thank you all!