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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
francisvandergr
Partner - Creator II
Partner - Creator II

Increase or decrease in %

Hi,

I have a dashboard with an example:

column1    Year

column2   Turnover

column3   % increase or decrease to last year

So i want the following table :

YearTO% Increase
7320
20051000
200610101
20072020100
20081010-100
2009111110
201011110
20113333200


Can someone help me

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

I think (using your expression label TO from your sample, or replace with your expression to calculate the turnover):

=(TO-above(TO))/above(TO)

could be enough.

Format percentage in numbers tab, if you like.

Regards,

Stefan

View solution in original post

3 Replies
mphekin12
Specialist
Specialist

try this expression for the % Increase/Decrease:

=if(Turnover >= above(Turnover)

,((Turnover/above(Turnover))-1) * 100

, ((Turnover/above(Turnover))) * -100

)

swuehl
Champion III
Champion III

I think (using your expression label TO from your sample, or replace with your expression to calculate the turnover):

=(TO-above(TO))/above(TO)

could be enough.

Format percentage in numbers tab, if you like.

Regards,

Stefan

mphekin12
Specialist
Specialist

Stefan,

Your solution is much cleaner. Thanks for the suggestion!

Mike