Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

To calculate growth% for two years

Hi All,

I want to calculate growth% for consecutive two years

expression for current year

=sum(if(Sold_Date <= MakeDate(2018,month(To),day(To)) and Sold_Date >= MakeDate(2018,month(From),day(From)) and [Season Code] = $(Master_CurrentSeason), quantity_sold))

-

sum(if(Sold_Date <= MakeDate(2018,month(To),day(To)) and Sold_Date >= MakeDate(2018,month(From),day(From)) and [Season Code] = $(Master_CurrentSeason), quantity_returns))


Expression for previous year

=sum(if(Sold_Date <= MakeDate(2017,month(To),day(To)) and Sold_Date >= MakeDate(2017,month(From),day(From)) and [Season Code] = $(Master_PreviousSeason), quantity_sold))

-

sum(if(Sold_Date <= MakeDate(2017,month(To),day(To)) and Sold_Date >= MakeDate(2017,month(From),day(From)) and [Season Code] = $(Master_PreviousSeason), quantity_returns))


7 Replies
shiveshsingh
Master
Master

What is the format for your Sold_Date? And what is the error?

Anonymous
Not applicable
Author

I want to calcultae growth%. how to calculate that?

Anonymous
Not applicable
Author

Hi

may be like below

growth%=(Current year Sales-Previous year Sales/current year)*100

Anonymous
Not applicable
Author

This formula i Know but if i have two different expressions for current year and previous year can I use following formula :-

column 2-column 1/ column1

or

=sum(if(Sold_Date <= MakeDate(2018,month(To),day(To)) and Sold_Date >= MakeDate(2018,month(From),day(From)) and [Season Code] = $(Master_CurrentSeason), quantity_sold))

-

sum(if(Sold_Date <= MakeDate(2018,month(To),day(To)) and Sold_Date >= MakeDate(2018,month(From),day(From)) and [Season Code] = $(Master_CurrentSeason), quantity_returns))


-

(sum(if(Sold_Date <= MakeDate(2017,month(To),day(To)) and Sold_Date >= MakeDate(2017,month(From),day(From)) and [Season Code] = $(Master_PreviousSeason), quantity_sold))

-

sum(if(Sold_Date <= MakeDate(2017,month(To),day(To)) and Sold_Date >= MakeDate(2017,month(From),day(From)) and [Season Code] = $(Master_PreviousSeason), quantity_returns))

/

sum(if(Sold_Date <= MakeDate(2017,month(To),day(To)) and Sold_Date >= MakeDate(2017,month(From),day(From)) and [Season Code] = $(Master_PreviousSeason), quantity_sold))

-

sum(if(Sold_Date <= MakeDate(2017,month(To),day(To)) and Sold_Date >= MakeDate(2017,month(From),day(From)) and [Season Code] = $(Master_PreviousSeason), quantity_returns))


sunny_talwar

Do you have year or date or monthyear as the dimension?

shiveshsingh
Master
Master

What are the dimensions?

Anonymous
Not applicable
Author

week and gender are the dimensions

Paint1.png