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: 
lishuang
Contributor III
Contributor III

num(sum({<年={$(current_year)}, 月={$(current_month)}>} 售价金额)/sum({<年={$(last_year)}, 月={$(last_month)}>} 售价金额)-1

Hi friends,

What's meaning of this expression " num(sum({<年={$(current_year)}, 月={$(current_month)}>} 售价金额)/sum({<年={$(last_year)}, 月={$(last_month)}>} 售价金额)-1, '#,##0.00%') "?

Thanks!

1 Reply
sushil353
Master II
Master II

Hi,

it is calculating the growth% from current month to same month last year...

Basis of the expression is Growth = (CurrentMonthSales - PreviousMonthSales)/PreviousMonthSales

so the same formula can be written as Growth = (CurrentMonthSales/ PreviousMonthSales)-1

HTH