Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

% difference Sales vs Targets

Hi,

How can i calculate Actual Sales vs Target 2016 (i.e  percentage difference)?

My column names in excel are: Total Sales and Total Target 2016.

I already have a bar chart on Qlik Sense which compares the sales rep performance  but i would like it to show in the same column the difference in %. (whether that's a growth or decrease)

Alex

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Usually it's something like =num(sum([Actual Sales])/sum([Target 2016]) -1,'0.00%')


talk is cheap, supply exceeds demand

View solution in original post

7 Replies
Gysbert_Wassenaar

Usually it's something like =num(sum([Actual Sales])/sum([Target 2016]) -1,'0.00%')


talk is cheap, supply exceeds demand
satishkurra
Specialist II
Specialist II

Hi

You can also use the Gysbert Wassenaar's expression by adding symbols,

For Increase it shows up and for Decrease it shows down symbol.

Like this:

Num(Sum([Actual Sales])/Sum([Target 2016])-1, '▲ 0.0%;▼ 0.0%')

Not applicable
Author

Thank you Satish.

How do i make the adding symbol and where do i write that expression?

Are there any other calculations you are aware of that will make my project shine?

satishkurra
Specialist II
Specialist II

Refer the attached app

Thanks

Not applicable
Author

Satish,

I've used the expression and works great.

Num(Sum([Actual Sales])/Sum([Target 2016])-1, '▲ 0.0%;▼ 0.0%')

How can I put a red color when their targets are below 0%

Not applicable
Author

Thank you,

I've used the expression, since I wanted to include an indicator as well and it's in the master file in measures:

Num(Sum([Actual Sales])/Sum([Target 2016])-1, '▲ 0.0%;▼ 0.0%')

How can I add red color if its negative and green color if its positive.

Alex

Gysbert_Wassenaar

You can use the Text color expression setting of the measure. See the image below for an example":

comm205217.png


talk is cheap, supply exceeds demand