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: 
Not applicable

How to calculate the Growth

Dear All,

I here by attached my sample data, which i want to calculate the growth. can any one help me in this regard.

Rgds,

Priyantha.

19 Replies
anbu1984
Master III
Master III

Can you post expected output

Not applicable
Author

growth can be represented by Line chart or bar chart as required by user on the basis of different Dimension,

if you dont have clear requirement then show them all possible representation by grouping dimension in drill down or cyclic group and show both chart line and bar with the help of fast change option as in Image below or find a sample application in attachmentbar.png

line.png

koushik_btech20
Creator
Creator

You have post your desired output or the formula for calculating the growth.

Not applicable
Author

Dear Anbu,

My table like this,

   

PRD_CODEBCODMONTHYEARPTPRGROWTH
1AB100APR2012178740
1BB100APR2012214184
1CB100APR2012205433

  

1ABB00APR201348813
1BBB00APR201376630
1CBB00APR2013-36508

  

1ABB00APR2014128540
1BBB00APR20144402
1CBB00APR201451992

I want to calculate the Growth of 2013 against the results of 2012.  and 2014 growth against the year 2013.

What is the formula i should applied.

Simple example for 2014 1A product, = (128540-48813)/48813

Please help,

Rgds,

Priyantha.

anbu1984
Master III
Master III

Temp:
Load PRD_CODE,BCOD,MONTH,YEAR,PTPR From Excel.xlsx

Final:
NoConcatenate
Load *,If(PRD_CODE=Previous(PRD_CODE) And BCOD = Previous(BCOD) And MONTH = Previous(MONTH) And
Year = Previous(Year)+1, (PTPR - Previous(PTPR))/Previous(PTPR)) As Growth Resident Temp Order by PRD_CODE,BCOD,MONTH,YEAR;

Drop table Temp;

Not applicable
Author


Hi Priyantha,

You can achieve the desired output by the following steps:

1) create a grid chart.

2) Add BCOD,PROD_CODE as dimension

3) In expressions,use the following set analysis:

((sum({<Year ={"$(=max(Year))"}>}PTPR) - sum({<Year ={"$(=max(Year)-1)"}>}PTPR))/sum({<Year ={"$(=max(Year)-1)"}>}PTPR) )

and label it as growth

Output is for growth of 2014 against 2013:

PROD_CODE      Growth

1A                        1.633

1B                         -0.94

1C                         -1.14

The above output suffices the formula for 2014 1A product :(128540-48813)/48813 = 1.633

By default, the values displayed are for current year.On selection of any other year,the corresponding values would change according to the selected year and its previous one.

Hope this information is useful.

regards,

Snehal Nabar

Not applicable
Author

Dear Snehal,

Thanks a lot for the valuable reply,

In this case we want to consider the 'MONTH' also not only the year.

My attempt to calculate the growth against the previous year same month and same product.

Please help me to find the way...

Rgds,

Priyantha

Not applicable
Author

Dear Anbu,

Thanks for the early reply,

Your scrip change was tried and failed. Please give some solution with expression part in the table.

Rgds,

Priyantha.

krishna20
Specialist II
Specialist II

Hi,

Try like this,Please concentrate at the brackets

=if(PROD_CODE='1A' or if(PROD_CODE='1B' or if(PROD_CODE='1C' , (sum({<year={"$(=max(year))"}>}PTPR)-sum({<year={"$(=max(year)-1)"}>}PTPR)) /

sum({<year={"$(=max(year)-1)"}>}PTPR)))))

Regards

Krishna