Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
colliers_sn
Contributor II
Contributor II

Year over Year Sales Growth

Hi,

How would I create a set expression that would calculation sales growth over a series of years?

It would look like this.

YearSalesGrowth
201610,0000
2017

12,000

20%
201815,00025%

Thanks for any help.

1 Solution

Accepted Solutions
sunny_talwar

Depending on the sorting, you can use one of these:

When Ascending Year

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

When Descending Year

Sum(Sales)/Before(Sum(Sales)) - 1

View solution in original post

8 Replies
sunny_talwar

Depending on the sorting, you can use one of these:

When Ascending Year

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

When Descending Year

Sum(Sales)/Before(Sum(Sales)) - 1

colliers_sn
Contributor II
Contributor II
Author

Is it possible to do something like

sum(sales)/sum({<Year= {Year -1}>} sales)

???

sunny_talwar

Yes, but only when Year is not your dimension. Because when year is your dimension, this will only work for the most recent year.

colliers_sn
Contributor II
Contributor II
Author

Thank you for your insight.

sunny_talwar

No problem at all

vikasmahajan

Hi sunny,

This will work with company and year month dimesions ad well?

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
sunny_talwar

It should... you just have to be careful of the sorting and use After/Before if the year is pivoted dimension

vikasmahajan

Thanks

vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.