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

Calculate the % change Sales

Hello,

I created the calculation of % Change Sales, with the function Above is right when he made no selection.

YearSalesLast Year's Sales% Change
20101800-  -
20112100180017%
20122300210010%
20133000230030%
2014325030008%
20154000325023%
201635004000-13%

But when I select a year, I lose the calculation of the previous year

YearSalesLast Year's Sales% Change
20143250--

Please, if you have another way to do this calculation.

Thanks in advance...!!!

Regards,

1 Solution

Accepted Solutions
sunny_talwar

May be try these expressions

1) =Sum({$< CONCEPT={'Sale'}>} AMOUNT)

2) =Above(Sum({$<CONCEPT={'Sale'}, YEAR>}AMOUNT)) * Avg(1)

3) =([Sales]/Above(Sum({$<CONCEPT={'Sale'}, YEAR>}AMOUNT))-1) * Avg(1)


Capture.PNG

View solution in original post

3 Replies
Not applicable

I need to do the same!

el_aprendiz111
Specialist
Specialist

Hi,

Relative.png

sunny_talwar

May be try these expressions

1) =Sum({$< CONCEPT={'Sale'}>} AMOUNT)

2) =Above(Sum({$<CONCEPT={'Sale'}, YEAR>}AMOUNT)) * Avg(1)

3) =([Sales]/Above(Sum({$<CONCEPT={'Sale'}, YEAR>}AMOUNT))-1) * Avg(1)


Capture.PNG