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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
niranjana
Creator II
Creator II

Scripting

Hi All,

I have a requirement wherein I have to multiply Units of Current Month Year (ex: Jan20) with Price of Previous month year(ex: Jan 19) in qliksense script. How to do that?

Thanks in advance!

2 Replies
jmartineze
Partner - Creator
Partner - Creator

Hi, 

you can use the previous() function with order by statement.

niranjana
Creator II
Creator II
Author

NO, I dont think it would work. Previous function is for previous record. But I have data for ex. from Jan 19 to Dec 20. I want sales from Jan 20 to Dec 20 multiplied by units from Jan 19 to Dec 19.ANy help is appreciated.

Thanks