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: 
alexandermllr
Creator
Creator

Last year Sales in Script

Hello,

i want something like this:

if(Year = '2017',Price*Percent,Price) as New_Price

If the Year is '2017' it should take the Price from Year = '2016' and so on...

Always the last year Price.

Thank you

Labels (1)
2 Replies
sarvesh
Creator III
Creator III

Try this:


For last Year:-=  =Sum({$<Year={$(=Max(Year)-1)}>}Sales)



Regard's

Sarvesh Srivastava

sunny_talwar
MVP
MVP

May be look into The As-Of Table