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

growth over previous Year

Dear Members,

If I'm to get the growth on each latest Year as shown  in column G (Coloured in yelow), what expression is possible?

TR_YEARBRANCHPRODUCTTR_MONTHSUM(PREMIUM)//(SUM(PREMIUM)/before(SUM({<Year>}PREMIUM))-1)*AVG(1)


(Sum(PREMIUM)/ABOVE(Sum({<TR_YEAR>}PREMIUM)) - 1) * Avg(1)
//Avg(Aggr(Sum(Measure)/Above(Sum(Measure)), Year))

//or

//Avg(Aggr(Sum(PREMIUM)/Above(Sum(PREMIUM)), TR_YEAR,TR_MONTH))
Growth from latest Year Vs Previous Year
2018RAMOTORJan43,892- 
2018RAMOTORFeb27,390-38% 
2018RAMOTORMar42,63356% 
2018RAMOTORApr68,82461% 
2018RAMOTORMay54,516-21% 
2018RAMOTORJun71,92432% 
2018RAMOTORJul55,227-23% 
2018RAMOTORAug27,392-50% 
2018RAMOTORSep51,84389% 
2018RAMOTOROct38,746-25% 
2018RAMOTORNov59,10153% 
2018RAMOTORDec59,3560% 
2018Total  600,844- 
2019RAMOTORJan55,549-27%
2019RAMOTORFeb41,576-25%52%
2019RAMOTORMar38,623-7%-9%
2019RAMOTORApr72,56288%5%
2019RAMOTORMay74,4353%37%
2019RAMOTORJun65,511-12%-9%
2019RAMOTORJul53,412-18%-3%
2019RAMOTORAug63,17518%131%
2019RAMOTORSep57,960-8%12%
2019RAMOTOROct60,6425%57%
2019RAMOTORNov52,491-13%-11%
2019RAMOTORDec44,053-16%-26%
2019Total  679,989-13%
2020RAMOTORJan58,549-5%
2020RAMOTORFeb26,165-55%-37%
2020RAMOTORMar67,332157%74%
2020RAMOTORApr38,466-43%-47%
2020RAMOTORMay66,80174%-10%
2020RAMOTORJun38,034-43%-42%
2020RAMOTORJul45,56820%-15%
2020Total  340,915- 
Total   1,621,748- 

Thanks

 

Neville

 

 

 

 

5 Replies
nevilledhamsiri
Specialist
Specialist
Author

 
nevilledhamsiri
Specialist
Specialist
Author

Can any one please see to this?

Thanks

Neville

Brett_Bleess
Former Employee
Former Employee

You can try the following Design Blog post, but I know there are other Community posts regarding year over year comparisons, have you searched and reviewed those too?  It would likely be most helpful if you attach your QVW file for things, as people are going to need to see the data model most likely in order to know how to structure the expression...

https://community.qlik.com/t5/Qlik-Design-Blog/Year-over-Year-Comparisons/ba-p/1462927

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
Kushal_Chawda

Please share more sample data which contains more products and branch 

nevilledhamsiri
Specialist
Specialist
Author

Hi Kush,

Could you please check the data in the table. When there are three Years involved with Months may be in certain Years, some Months are not yet passed like being in July.What I need is to calculate the growth in the latest Year (Monthly) as against the immediate preceeding Year. In the case of Year is not yet completed may be half way through, then the growth calculation should end up the latest Month as against the Immediate previous Year.Also the subtotal under each year, should do the same calculation (Hint; both year having current & previous Year fully completed). In the case of latest Year gone up to say July & last Year we have data for twelve Months, the then the total calculation should be the comparision between the sum of seven Months Vs last Year same seven Months. There are quite a few more Branches with the same periods involved. Please suggest the formula to handle this