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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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

2 Replies
sarvesh
Creator III
Creator III

Try this:


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



Regard's

Sarvesh Srivastava

sunny_talwar

May be look into The As-Of Table