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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
lmo
Contributor
Contributor

Annualize volumes

I need to calculate an annualized volume for the current year.  I have 7 years worth of data and only half a years worth of data for 2018.  I want to sum the volumes for years 2011-2017, but want to multiply the 2018 volume by 2 to get an annualized estimate.  I am trying the "if then else" function to no avail, i.e., if Year='2018', then (volume*2), else volume.  Seems like it should be simple but I am not making progress.  Any direction you could provide would be greatly appreciated...thank you!!!

2 Solutions

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try sum(if(Year=2018,2,1)*volume). If that doesn't work we'll need more information. Please post a small Qlikview or Qlik Sense app that demonstrates the problem.


talk is cheap, supply exceeds demand

View solution in original post

lmo
Contributor
Contributor
Author

That worked perfectly, thank you so much!!!

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try sum(if(Year=2018,2,1)*volume). If that doesn't work we'll need more information. Please post a small Qlikview or Qlik Sense app that demonstrates the problem.


talk is cheap, supply exceeds demand
lmo
Contributor
Contributor
Author

That worked perfectly, thank you so much!!!