Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Display numbers & percentages

I have the following chart...

Capture.PNG

...and I'd like to be able to include %'s on the 'Target Met' and 'Target Not Met' bars.  I have used the 'dual' expression previously but can't seem to get it to fit this chart.  The expression being used for the 'Target Met' figure is =Count({<TARGET_CODE = {'1'}>}TARGET_CODE) and for the 'Target Not Met' figure, =count({<[TARGET_CODE] = {'2'}>}TARGET_CODE) . The 'Total' is =Count(PRI_DESCRIPTION) .

I have been playing about with this for the past day or two and it is driving me up the wall.  I'm sure you wonderful people will have no problem in assisting with this.

As always, many thanks in advance.

1 Solution

Accepted Solutions
5 Replies
sunny_talwar

Do you have it in a sample qvw file for us to play around with it as well

Anonymous
Not applicable
Author

On the Chart you could create an additional expression for % and on the Expressions tab untick all the Display Options and then tick either Values on Data Points or Text on Axis as per which looks best for your needs.



Not convinced the Dual() function is a suitable thing to use in this scenario.

Anonymous
Not applicable
Author

Anonymous
Not applicable
Author

Take same expression change at the number tab percertage

Not applicable
Author

Thanks, this is really useful. Just need to tidy up the bar chart now

Many thanks.