Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to add percentage change in line chart

Dear community,

i would like to add the year to year change in percentage points to a graph like this (~ 4,3 % for 2016 and ~ 24,8% for 2017).

Is there a simple way to add this piece of information to the graph?

Thanks and Best regards

Chart.PNG

1 Solution

Accepted Solutions
MarcoWedel

Hi,

you could use the Dual() function to add this information to your expression like this:

Dual(Num(Sum(Value),'#.##0')&Chr(10)&Num(Sum(Value)/Above(Sum(Value))-1,'+0,0%;-0,0%'),Sum(Value))

QlikCommunity_Thread_283067_Pic1.JPG

QlikCommunity_Thread_283067_Pic2.JPG

hope this helps

regards

Marco

View solution in original post

3 Replies
MarcoWedel

Hi,

you could use the Dual() function to add this information to your expression like this:

Dual(Num(Sum(Value),'#.##0')&Chr(10)&Num(Sum(Value)/Above(Sum(Value))-1,'+0,0%;-0,0%'),Sum(Value))

QlikCommunity_Thread_283067_Pic1.JPG

QlikCommunity_Thread_283067_Pic2.JPG

hope this helps

regards

Marco

Anonymous
Not applicable
Author

Dear Marco,

Thank you very much for your rapid! and outstanding! support.

First, I copy pasted the expression into my file and adjusted it to my dimensions BUT the graph did not change accordingly. Instead the graph still looked like a regular "sum()" graph.

Then I copied the object from your attached qvw file into my sheet and adjusted the expression. It worked! I am still figuring out what I missed but I am very thankful.

Best regards

MarcoWedel

Hi,

you're welcome.

Glad it helped.

Maybe you had some number format applied to your chart expression (needs to be "expression default". see number tab in chart properties).

regards

Marco