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: 
manoranjan_d
Specialist
Specialist

Bar chart

Hi,

In my bar chart i have 5 bars which shows with the counts and  with different departments such as IT, CSE,EEE, ECE, MECH

all these has to be displayed as  single bar with there counts how to do that?

pls help me

11 Replies
MK_QSL
MVP
MVP

Remove Departments from Dimension Tab

manoranjan_d
Specialist
Specialist
Author

@ manish when i remove dept from dimension i getting single bar only but the dept is not segregated in a single bar, its showing over all total count only...

jonathandienst
Partner - Champion III
Partner - Champion III

Your requirement is not very clear. Do you mean a single bar with coloured segments for each department?

Of so, remove the dimension and make one expression for each department:

     =Sum({<Department = {'IT'}>} Values)

     =Sum({<Department = {'CSE'}>} Values)

     ...

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
manoranjan_d
Specialist
Specialist
Author

yes with single bar , that has to show the count of eact dept.

  

departmentCount per Department
IT50
CSE100
MECH200
EEE150
ECE130
MK_QSL
MVP
MVP

Create a Bar Chart

Add a Calculated Dimension

=1

Untick Show Legend

Lebel

use

department as 2nd Dimension

Expression

Whatever your expression is

Tick Values on Data Points

Go to Style tab and select Stacked..

Go to Presentation tab and tick

Plot Values inside segments

still show total on top

Go to color tab and tick persistent color

manoranjan_d
Specialist
Specialist
Author

how to show these data in percentage

manoranjan_d
Specialist
Specialist
Author

@manish how to show these single bar in precentage

MK_QSL
MVP
MVP

COUNT(Department)/COUNT(Total Department)

manoranjan_d
Specialist
Specialist
Author

all things good but when i reviewed ur file u r using same fields of department.

but my data is having like this

  

departmentCount per Department
IT50
CSE100
MECH200
EEE150
ECE

130