Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
vidyasagar159
Creator II
Creator II

Year over Year Average growth Rate of two measures

Hi All,

I want to calculate the Average growth rate of all my sales amount and the budget amount from the day the product launched. 

Here is the sample data. I was able to achieve the Year of Year growth rate of each product. But I need Average growth for each product. So that I can see which product is performing better from the below plot.

ProductLaunch DateSales Date Sales Amount Sales GrowthRate Year Over Year Budge Amount Budget GrowthRate Year Over year
Apple20152015 $                 100.00  $              1,000.00 
Apple20152016 $                 200.00100% $              1,500.0050%
Apple20152017 $                 150.00-25% $              2,500.0067%
Apple20152018 $                 170.0013% $              2,600.004%
Apple20152019 $                 210.0024% $              7,000.00169%
Samsung20142014 $                   80.00  $                 150.00 
Samsung20142015 $                 110.0038% $                 300.00100%
Samsung20142016 $                 150.0036% $                 350.0017%
Samsung20142017 $                 130.00-13% $                 380.009%
Samsung20142018 $                 120.00-8% $                 400.005%
Samsung20142019 $                 200.0067% $                 450.0013%

 

Expected ResultSet:

ProductAverage SALES GrowthRate of Each Product Since it LaunchedAverage Budget GrowthRate of Each Product Since it Launched
Apple28%72%
Samsung24%29%

 

Scatter Plot :

Scatterplot.PNG

 

Thanks in advance!!!

-Vidya

 

4 Replies
Taoufiq_Zarra

attached a qvf version

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
vidyasagar159
Creator II
Creator II
Author

Thanks for your response. But I really can't use the attached file. Our firm only allows us to develop Apps in the Qliksense web version. If you don't mind can you please share the script and expression.

Thanks,

-Vidya

Taoufiq_Zarra

just add a table with

product as dimension

and mesure1==avg([Budget GrowthRate Year Over year])

and mesure2=avg([Sales GrowthRate Year Over Year])

 

and for the chart the same dimension and mesures

on complement add reference line and personalise axis

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
vidyasagar159
Creator II
Creator II
Author

Thank you for your response. Your solution works only when I have Growth Rate Year over Year on Load Script level. How Can you achieve avg([Budget GrowthRate Year Over year]) and avg([Sales GrowthRate Year Over Year]) without having Growth Rate Year over Year on the script level? I can able to create a growth rate only on a measure expression.

 

Thanks,

-Vidya