Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show the % variance of dimension in a bar chart.

Hello,

I would like to create a bar chart which will compare different category sales by selected MonthYear and show the % variance of MonthYear.

I created the bar chart, but I have no idea on showing the % variance of MonthYear like below.

sales bar chart.png

Thank you for all suggestions.

1 Solution

Accepted Solutions
awhitfield
Partner - Champion
Partner - Champion

Hi Eddie,

convert the chart to a combo and add the following second expression:

=sum(Quantity*UnitPrice)/above(sum(Quantity*UnitPrice))-sum(Quantity*UnitPrice)/(sum(Quantity*UnitPrice))

set this expression to Values on data points and you end up with something like this:

You may need to play with the options, sample app attached

REgards

Andy

View solution in original post

7 Replies
Not applicable
Author

Can you load an example QVW ?

Not applicable
Author

I have already uploaded my QVW.

awhitfield
Partner - Champion
Partner - Champion

Hi Eddie,

convert the chart to a combo and add the following second expression:

=sum(Quantity*UnitPrice)/above(sum(Quantity*UnitPrice))-sum(Quantity*UnitPrice)/(sum(Quantity*UnitPrice))

set this expression to Values on data points and you end up with something like this:

You may need to play with the options, sample app attached

REgards

Andy

Not applicable
Author

Thank you very much Andrew

syedsaqib
Contributor II
Contributor II

Hi, Can you please share qvf of the example ? 

Thanks

qlikapple
Creator
Creator

 
syedsaqib
Contributor II
Contributor II

Hi,

Can you please share Qliksense sample app as well?

Thanks