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

bar chart

HI

 

I am calculating some count.

example:

Count ( Employee) and I want to create the category based on this expression only
example:

 

if( count(employee)<=5, 'small',

if( count(employee)>=6 and count(employee)<=10,'medium','big') as EMP_category

now I want show this in bar chart wherein my dimention will be EMP_category and expression will be same as count(employee)

but when I m doing it m getting only one category in bar char even though my count (employee) is more than 10

 

please suggest

Labels (1)
2 Replies
justISO
Specialist
Specialist

Hi, let me guess, your 'only one category in bar char' is 'big'? Because, I believe, you need to aggregate this count(employee) on something, for example, per department, branch  etc. As I understand you creating this category in data load script, so if you are counting all employees, you are getting only one category.

vinieme12
Champion III
Champion III

As below 

Calculated dimension 

=Aggr(if(count(Employee)>=10,'big',if(count(Employee)>=6,'medium','small'),SomeDimension)

Measure 

Count(Something)

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.