Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can someone help me With this:

I need a formula for a growth rate by year in a combo Chart:

  1. Dimension (years 2011-2016);
  2. First measure - sum(sales)
  3. Second measure - i need a growth rate comparing the previous year. Example  2012 grew 10% from 2011, 2013 grew 5% from 2012...
6 Replies
Gysbert_Wassenaar

Try sum(sales)/above(sum(sales))-1


talk is cheap, supply exceeds demand
sunny_talwar

May be this:

Sum(Sales)/Above(Sum(Sales)) - 1

Not applicable
Author

Thanks,

But The formula don´t work and returns "error in expression".

sunny_talwar

Do you have a sample you can share?

Not applicable
Author

Sorry, i´m new here. What kind of sample you want?

Not applicable
Author

if(year=2011),sum(sales),if(sum(sales)>above(sum(sales))),((sum(sales)-above(sum(sales)))/above(sum(sales)))*100,((above(sum(sales)-sum(sales)))/above(sum(sales)))*100

or

if(sum(sales)>above(sum(sales)),((sum(sales)-above(sum(sales)))/above(sum(sales)))*100,(above(sum(sales))-sum(sales))/above(sum(sales)))*100)