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

Chart settings, adding value on data points

I have a 2 dimension bar chart with 2 expressions.

The expression values are stacked since it has 2 dimension.

I want to display a custom text inside the bars, but only for one of the bars.

When i enable plot data values inside segment, it adds it to both bars, is there a way to make it show only on one of the bar values ?

sample:

I want the text to show only on the red bars.

abcde01.JPG.jpg

24 Replies
Clever_Anjos
Employee
Employee

Is this what you want?

98890.png

Not applicable
Author

Please see the first post,

i have attached an image and the sample .qwv of what I'm trying to work with.

Notice the 2 set of bars.

Set A

Set B

Each Set have items 2, 15, 21

Each Item is a bar, produced by 2 expressions

exp [20]   --- 20 because this is a static value

exp [value]  --- value pulled from data table

By default, if [Values on data point] is enabled, the exp value is displayed on top of the bar.

When [Plot values inside segment] enabled, each exp will have its value displayed in the middle of its respective bar.

By adding a 3rd exp, and disabling the [bar] option, and enable [Values on data point],

i can show any custom value i want within the bars.

The problem i have here is, it is showing up twice.

I want it to show on the top bar only.

Not applicable
Author

yes, this exactly what i'm trying to produce

Clever_Anjos
Employee
Employee

A small trick

Two bars with same colors, one with height of 6, another yourvalue-6

Not applicable
Author

Am i missing something,

the =Dual(text, value) function is returning all 'AA' text

abcde01.JPG.jpg

Clever_Anjos
Employee
Employee

Could you post a print of my app, I want to see what you´re seeing

Those are my expressions

98890_2.PNG.png

Anonymous
Not applicable
Author

Anjos

I downloaded your qvw and it looks good to me as in it is, BB, CC, AA B B, CC, AA  when I look at it.

Not applicable
Author

It should be the same right ?

I downloaded your .qvw and open it as it.

But instead of the text in BB, CC, AA sequence, its all AA

not sure what is different exactly.

Clever_Anjos
Employee
Employee

Yes, should be exactly the same

Bumped...

Which QV version are you using?

Not applicable
Author

v 11.20.11718.0 SR1