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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
dominikkeller
Contributor III
Contributor III

Bar Chart difference between Values in Dimension

Hey,

i found an Image of a Tableau Bar Chart with a pretty helpful feature.

Has anyone an idea how two build the %-move of the values?

I tried Text on Axis, but this ends up in overlapping my dimension. 

Bildschirmfoto 2019-10-18 um 12.02.47.png

 

This is my actual chart so far

Bildschirmfoto 2019-10-18 um 12.11.41.png

Labels (1)
1 Solution

Accepted Solutions
Stoyan_Terziev
Partner - Creator III
Partner - Creator III

Hello Dominikkeller,

 

Here is how you can plot symbols (positive / negative):

1. You need to use the Combo Chart.

2. You need to create 4 measures as follows:

Sales 2016, Sales 2017 , Positive %, Negative %

3. Sales 2016 and Sales 2016 -> Set them as bars from the Chart Properties -> Expressions -> Display Options segment

4. Positive % and Negative % -> Set them as Symbol >> But those use different symbol types (triangle up and triangle down) , so you need to write the expression like this:
Positive % = if([Sales 2017]>[Sales 2016],[Sales 2017]/[Sales 2016], null())

Negative % = if([Sales 2017]<=[Sales 2016],[Sales 2017]/[Sales 2016], null())

5. Uncheck the checkbox for Expressions as Legend for the % measures

6. Chart Properties -> Presentation tab -> Increase size to 8pt

7. Chart Properties -> Axes -> Expressions Postivie and Negative % should be set to Position Right (Top)

Result:

Fig 1Fig 1

Hope that helps!

S. T.

View solution in original post

2 Replies
Stoyan_Terziev
Partner - Creator III
Partner - Creator III

Hello Dominikkeller,

 

Here is how you can plot symbols (positive / negative):

1. You need to use the Combo Chart.

2. You need to create 4 measures as follows:

Sales 2016, Sales 2017 , Positive %, Negative %

3. Sales 2016 and Sales 2016 -> Set them as bars from the Chart Properties -> Expressions -> Display Options segment

4. Positive % and Negative % -> Set them as Symbol >> But those use different symbol types (triangle up and triangle down) , so you need to write the expression like this:
Positive % = if([Sales 2017]>[Sales 2016],[Sales 2017]/[Sales 2016], null())

Negative % = if([Sales 2017]<=[Sales 2016],[Sales 2017]/[Sales 2016], null())

5. Uncheck the checkbox for Expressions as Legend for the % measures

6. Chart Properties -> Presentation tab -> Increase size to 8pt

7. Chart Properties -> Axes -> Expressions Postivie and Negative % should be set to Position Right (Top)

Result:

Fig 1Fig 1

Hope that helps!

S. T.

dominikkeller
Contributor III
Contributor III
Author

Yeah, perfect! This is pretty close perfect. 

Now i have to play with the split axes to make it readable.

Thank you!