Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
jamesjames
Contributor II
Contributor II

How to show negative values in bar chart?

Hi there,

I am learning how to create negative charts in Qlik Sense.

Basically I am trying to make chart below (from the Excel as an example), with positive and negative values.

For current bar chart in Qlik view I have two dimensions: 

1. Day (number of days)

2.  Name (that consists of cash it and cash out values)

Measures:

1. Amount EUR

 

How can I make negative values, meaning put red color opposite blue color?

 

 

1 Solution

Accepted Solutions
kaanerisen
Creator III
Creator III

Hi James,

Create dimensions for Day and Name fields.

After that, edit the Name dimension for giving colors to the values of that field.

Untitled1.png

Create a measure for Amount EUR field and the expression should be : Sum(IF(Name='Cash Out',-1,1)*Amount EUR)

After creating the bar chart and adding your dimensions and measure, go the measure properties of charts and make the modifications.
Untitled2.png

Change your bar chart appearance to stacked and it should be as you want.

Untitled.png

Hope it helps...

View solution in original post

2 Replies
kaanerisen
Creator III
Creator III

Hi James,

Create dimensions for Day and Name fields.

After that, edit the Name dimension for giving colors to the values of that field.

Untitled1.png

Create a measure for Amount EUR field and the expression should be : Sum(IF(Name='Cash Out',-1,1)*Amount EUR)

After creating the bar chart and adding your dimensions and measure, go the measure properties of charts and make the modifications.
Untitled2.png

Change your bar chart appearance to stacked and it should be as you want.

Untitled.png

Hope it helps...

jamesjames
Contributor II
Contributor II
Author

Thank you!