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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sales growth by month

Hi all,

I'm trying to achieve something that looks simple enough, but I don't seem to get the right results.

I would like to have a table like this one:

MonthSalesSales
PrevMonth
% Growth
110050100,00%
2200100100,00%
330020050,00%
440030033,33%
550040025,00%
660050020,00%
770060016,67%
880070014,29%
990080012,50%
10100090011,11%
111100100010,00%
1212001100

9,09%

Can s.o. advice me on this!

Best!

Maya

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Hi Maya

This is a perfect example for InterRecords!

Make a Chart (Straigt or Pivot) and use Month as your Dimension.

Expression for Sales:


=Sales


Expression for SalesPerMonth:


=above(Sales,1)


Expression for Growth:


=Column(2) / column(1)


The Sort is the most importent thing! This example is for Month sortet Numeric Ascending. If it sortet the other way, type "-1" for the second parameter!
I would suggest to check out the Helpfile for InterRecords because there are lot fantastic functions like this!

Greets

View solution in original post

4 Replies
Not applicable
Author

Hi Maya

This is a perfect example for InterRecords!

Make a Chart (Straigt or Pivot) and use Month as your Dimension.

Expression for Sales:


=Sales


Expression for SalesPerMonth:


=above(Sales,1)


Expression for Growth:


=Column(2) / column(1)


The Sort is the most importent thing! This example is for Month sortet Numeric Ascending. If it sortet the other way, type "-1" for the second parameter!
I would suggest to check out the Helpfile for InterRecords because there are lot fantastic functions like this!

Greets

Not applicable
Author

Hello,

I think the expression for growth should be:

= Column(1)/Column(2) - 1

Steve

Not applicable
Author

Hi Maya

Look at this example about ABOVE

http://community.qlik.com/forums/p/24577/94050.aspx#94050

jj

Not applicable
Author

Thank you for your quick and perfect answers, those were really helpful!!

Best!

Maya