Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
cena_abhishek
Contributor
Contributor

How to create a line chart to show difference in sales month by month

I have a scenario where i have month on month sales available with me.

Month     Sales     Growth

Dec'13     40         

Jan'14      55          15

Feb'14     60           5

Mar'14     65           5

Apr'14     70            5

Now if i select a time period "YTD" on my dashboard the data fetched will be

Month     Sales     Growth

Jan'14      55          15

Feb'14     60           5

Mar'14     65           5

Apr'14     70            5

I have to calculate the growth and represent the same as line chart

5 Replies
Anonymous
Not applicable

Abhishek,

If you have the data and the growth, just add the expression for growth in the expressions tab

=sum(Growth)

Please, elaborate further your requirement.

Marc.

cena_abhishek
Contributor
Contributor
Author

I don't have growth... I need to calculate it and then create a chart of growth

Anonymous
Not applicable

ok. One way to do it is: having the expression of Sales, add  another one, equals to first, and select accumulate 1 step back and select invisible. Add a third expression =expression2-expression1.

Marc.

Not applicable

Hi,

Lets try this

In line chart write this in the Exppression tab.hope this will work

Sum({YTD={1}>} Growth)

cena_abhishek
Contributor
Contributor
Author

Can you please help me with an example?