Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
mario-sarkis
Creator II
Creator II

Growth Expression

Hey all,

I need to know how can i calculate the growth in a line chart in several time.

Example:

Suppose that we have this data:

Date.            Data

Dec-12.        100

Dec-13.         150

Dec-14.          200

The groth that i need to show is :

Date.         Growth

Dec-13.    ((150-100)/2)*100

Dec-14.    ((200-150)/2)*100

Ps:i have these three dates but in the growth formula i need to show on the line chart Dec-13 and Dec-14 only.

In my you can see attached file the QVW and its source

Thank you.

7 Replies
MK_QSL
MVP
MVP

(Above(SUM(DATA))-SUM(DATA))*100/2

sunny_talwar

Do you need the Categorie_Flag drilldown to be one of your dimension in the chart as well??? or you just need the Date as dimension??

Best,

S

mario-sarkis
Creator II
Creator II
Author

Hi Sunindia,

Yes the Categorie_Flag drilldown to be one of your dimension in the chart as well, and i need to calculate the Growth as i sent in the Example.

Hope that you can help.

Thank you,

mario-sarkis
Creator II
Creator II
Author

Re: Congratulations ! Gysbert Wassenaar
Please fine attached QVW and it source Thank Gysbert

sunny_talwar

Are you looking to calculate growth across different different categorie_flag? I mean how is it useful in knowing what was the growth from 2012 Retail to 2015 Commercial? It would make sense if everything else stays the same and the only change is in the year.


Are you sure that the sample Excel file you have provided is complete in the sense that it will give you the output you are looking for? (because there are only 3 rows and categorie_flag has only 1 repetition, whereas categories flag has none.


Please let me know if you still want to know the growth rate regardless of your drill_down selection?


Best,

S

mario-sarkis
Creator II
Creator II
Author

this is  a sample data, my data it looks the same but of caurse eac field has a repetition ex:

Categorie_FlagSub-CategoriesCategoriesCreditLoansDatesVolume
CommercialForestryAgricultureTotal LendingDec-143372.000000
CommercialCommercial Sea FishingAgriculture, Fisheries, and ForestryTotal LendingDec-1332457.000000
Retail carsIndivdualsTotal LendingDec-12254535.000000
CommercialAnimal HusbandryAgricultureTotal LendingDec-1312000000
CommercialxAgricultureTotal LendingDec-1215000000
CommercialyAgriculture, Fisheries, and ForestryTotal LendingDec-1415000001
Retail houseIndivdualsTotal LendingDec-1415000002
Retail education Individuals Total LendingDec-121200000

my demensions on the line chart will be exactly as i sent in the QVW file in growth will from year to year  the formule should be exactly as i sent before.

If u can help please .

mario-sarkis
Creator II
Creator II
Author

example of Growth

Date          Volume-Sub-Categories     Volume-Categories    Volume-CategorieFlag

Dec-12      200                                           500                              1000     
Dec-13      300                                           600                              1200    

Dec-14      400                                           800                              1600

the Growth Shows in a line Chart will be calculated as:

Date          Volume-Sub-Categories     Volume-Categories    Volume-CategorieFlag

Dec-13       (300-200)/200                      (600-500)/500             (1200-1000)/1000

Dec-14       (400-300)/300                      (800-600)/600             (1600-1200)/1600

My dimenssions on a line Chart will be :

1-Date

2-GroupFields ( Category Flag >>Category>>Sub-Categories)

Hope this will help More and much clearer then the first example.

Thanks Again,