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: 
harleen_singh
Creator III
Creator III

Plot Values Inside Segments and total in bar chart

Has anybody found the solution of showing values inside the 'Stacked Bar Chart' and also showing the Total on the top?

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

You need to create two same expression

For 1st expression

TICK BOTH

Value on Data Points in expression tab

Plot values inside segments in presentation tab

For 2nd Expression

TICK BOTH

Value on Data Point in expression tab

Invisible

View solution in original post

12 Replies
Siva_Sankar
Master II
Master II

To put values in the bars stacked in your Bar Chart :

  • For each expression, ,<tick> Values on Data Points
  • On Presentation tab, <tick> Plot Values Inside Segments

For Total Value above:

  • Create new expression to give Total Value number
  • <tick> Line
  • <tick> Values on Data Points
  • <tick> Invisible

Regards.

Siva

sujeetsingh
Master III
Master III

Se this

brijesh1991
Partner - Specialist
Partner - Specialist

Go to expression tab: check "Values on Data points"

Go to presentation tab: check "Plot Values inside segment"

jagan
Luminary Alumni
Luminary Alumni

Hi,

Please find attached file for solution, if there are less number of segments then values are displayed in the segments, otherwise the values are not displayed in the segments.

Regards,

Jagan.

MK_QSL
MVP
MVP

You need to create two same expression

For 1st expression

TICK BOTH

Value on Data Points in expression tab

Plot values inside segments in presentation tab

For 2nd Expression

TICK BOTH

Value on Data Point in expression tab

Invisible

Not applicable

I tried your method, however it did not work. Can you load an eg. Thanks.

Not applicable

Hi Harleen,

I have two dimensions(Date/Month,Category) and a Measure(Value), how do you achieve the same result. Can't go with as many expressions as catgories like

sum({<Category={'1'}>}Value) - bar chart - values inside segments

sum({<Category={'2'}>}Value) - bar chart - values inside segments

sum({<Category={'3'}>}Value) - bar chart - values inside segments ... and so on

total expression as

sum({<Category={'1'}>}Value)+sum({<Category={'2'}>}Value)+sum({<Category={'3'}>}Value)+... - values on data points and invisble option

here If Category values are known & fixed, can go with your method. Is there anyway if Category values are dynamic??

Not applicable

This will only work when you have two expressions, but if we have more than 1 dimension will not work.

Not applicable

I thank you  sir you have helped me ALLOT, been struggling with this for almost 3 hours using a dual function but the damn thing just didnt want to show my % calculation.

THANK YOU!!!