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: 
Anonymous
Not applicable

advanced bar chart

Hi everyone,

i want to calculate attendence of an employee for a month ,with Weekname as my dimension and his sum(attendance) as  expression , but the problem is i want to show all the employees who are having attendance less than 3 days for that particular week as below the axes..just like when we are plotting graph .

thanks in advance

11 Replies
Anonymous
Not applicable
Author

All you need to do is to make the result negative if the attendance <=3.  For example:

if(sum(Attendance)>3, sum(Attendance), -sum(Attendance))

ramoncova06
Partner - Specialist III
Partner - Specialist III

see if this is what you are looking for

sum({< employee= {"$(=sum(attendance) < 3)"}>}attendance)

Anonymous
Not applicable
Author

i want to show color in green and red

if(sum(sales)>15, sum(sales), Green(),

if(sum(sales)<15,-sum(sales),blue()))

this expression is not working pls help

Anonymous
Not applicable
Author

To define color, you have to use "Background Color" expression, not the "main" expression itself which stays as is..  Click on the "+" sign at the expression name to see it.  The color background expression will be:

if(sum(sales)>15, green(), blue())

Anonymous
Not applicable
Author

i dont want the minus signs on red bars , what to do ??

i dont want  minus.PNG

maxgro
MVP
MVP

try to hide the negative numbers with text color (replace column(1) if needed with your exp)

if(column(1)<=0,argb(0,0,0,0),black())

1.png

Anonymous
Not applicable
Author

I'm not sure if it is possible.  In general, I'd rather use a clearer presentation.  Instead of showing the <=15 sales below the axes, I'd use a "normal" expression

sum(Sales)

But I'd add a reference line =15.  So, the lower numbers will be at or below the reference line.  In my example here the ref line is 100:

Anonymous
Not applicable
Author

i used the same expression i see no values on red bars ,, and could you please why you used column there ,, wht was the logic ?

lost all.PNG

Anonymous
Not applicable
Author

To get rid of the minus for the bars below the line add another expression of say Sum (Value)  and for it untick Bar and tick Value in Data Points

Rough mock up qvw attached.