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: 
Not applicable

value on Data Point only in total bar within bar chart

Hi QV Developers!,

I have problem connected with adding value on data point in bar chart in total bar:

Bez tytułu.jpg

I want to have % only in the last bar (total bar).


For changing color for total bar i used definition within background color something like that:

If(Dimensionality()=0,color(7))


Bez tytułu.jpg


I was trying to do the same with show value but it seems not possible in QV:


If(Dimensionality()=0,1,0).


Have you ever had similar problem to mine?


Please help me,


thank you in advance good people!


Best Regards,

Lukasz J.

2 Replies
Anonymous
Not applicable
Author

Hi,

the answer is simple:

On your image you there are bars with gray color and total bar is black.

So you can write something like this in Text Color of Value on Data Point:

Anonymous
Not applicable
Author

if(Dimensionality()=0,RGB(255,255,255),RGB(185,185,185))

dimensionality=0 is a total bar.

So font color is depends on bar color - simple

But it is only work around...maybe you have better idea.

Best Regards

Jacek Antek