Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewwizard
Master II
Master II

Bar chart expression

Hi All,

I want to show the Marks Categories,No of Students,Percentage values in a bar chart for the below table data.

EMPNOENAMEMARKS
7369SMITH35
7499ALLEN45
7521WARD89
7566JONES65
7654MARTIN76
7698BLAKE63
7782CLARK98
7788SCOTT95
7839KING41
7844TURNER53
7876ADAMS87
7900JAMES88
7902FORD92
7934MILLER56
Marks CategoryNo of StudentsPersontage
Below 40%xx
40%-60%xx
60% to 70%xx
Above 70%xx
Totalxx
1 Solution

Accepted Solutions
mjayachandran
Creator II
Creator II

You can try something like attached

View solution in original post

4 Replies
mjayachandran
Creator II
Creator II

You can try something like attached

robert_mika
Master III
Master III

Create Calculated Dimension

=If(MARKS<40,'Below 40%',if(MARKS>=40 and MARKS<60,'40%-60%',if(MARKS>60 and MARKS <=70,'60% to 70%',if(MARKS >70,'Above 70%',0))))

2015-04-15 05_23_29-Edit Expression.png

Then Expression

Count(EMPNO)

Count(MARKS)/count(TOTAL MARKS)

2015-04-15 05_21_40-QlikView Personal Edition - [C__Users_Katarzyna_Desktop_vba-Trigger-Clearall.qvw.png

robert_mika
Master III
Master III

Or you can create this in Script:

Directory;

LOAD EMPNO,

     ENAME,

     MARKS,

     If(MARKS<40,'Below 40%',if(MARKS>=40 and MARKS<60,'40%-60%',if(MARKS>60 and MARKS <=70,'60% to 70%',if(MARKS >70,'Above 70%',0))))as Category

   

FROM

and the use Category as Dimension

To get the Total in Dimension Limit choose Show Total

2015-04-15 05_27_01-Chart Properties [1].png

qlikviewwizard
Master II
Master II
Author

Thank you all.