Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to display 2 expressions

I want to display my attendance and non-attendance data in 1 bar graph per month.
This is the data:

Attendend or Not         July 2012      Aug 2012    Sept 2012Attendance                    1000              1500            2500non-attendance               200                 150                300
Now I am only able to display the attendance in 1 graph and the non attendance in another graph as the expression says error when I try to do SUM (attendance) SUM (non-attendance).
Can anyone assist with this? - Thanks













Attended
  or Not
JulyAugustSeptember
Non-Attendance496059444347
Attendance217592784611711
7 Replies
er_mohit
Master II
Master II

hi

see the attached file

Not applicable
Author

Hi

use 2 expr

1st expr

if(

Attended

  or Not

='Attendance',sum(july)+sum(august)+sum(september),Null())

2nd exp

if(

Attended

  or Not

='Non-Attendance',sum(july)+sum(august)+sum(september),Null())

Not applicable
Author

Thanks, however I cannot open the file as I am using the personal edition. Please can you send me the expression

Not applicable
Author

Thanks, but it says "Bad expression"

Not applicable
Author

Hi

can u give ur expressions

im using some sample data its work

plz see that image

it display empno=1 sum in one bar and 2 in another bar same like ur

ateendend, not-attend

Not applicable
Author

I think it does not find Attendance and Non-AttendanceUntitled.jpg

Not applicable
Author

Thanks, I have sorted it out.