Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
manoranjan_d
Specialist
Specialist

single stack bar

hi

all,

below is my data

 

yearmonthdeptAMTID
2016JANCSE1001
2016FEBIT2002
2016MAREEE3003
2016APRCSE4004
2015JANCSE500
2015FEBIT600
2015MAREEE700
2015APRCSE80010
2015MAYEEE9001
2015JUNECSE100012

now i need the single bar chart of null and null values record count. how to achieve it?

where in the single bar it should differentiate the null and non null values

10 Replies
MK_QSL
MVP
MVP

Create a Flag inside Script something like this..

IF(IsNull(ID) or Len(TRIM(ID)) = 0, 'Null','NotNull') as IsNullFlag

Now you can use something like below

COUNT({<IsNullFlag = {'Null'}>}ID)

COUNT({<IsNullFlag = {'NotNull'}>}ID)

manoranjan_d
Specialist
Specialist
Author

i m asking how to do it in chart of design.

varshavig12
Specialist
Specialist

Something like this:

exp:1   =count({<ID={""}>}ID)

exp:2    =count(Total ID)-count({<ID={""}>}ID)

manoranjan_d
Specialist
Specialist
Author

expression i can easily use it, but in the graph how to show it in single bar chart

manoranjan_d
Specialist
Specialist
Author

yes can u attach the file for me

manoranjan_d
Specialist
Specialist
Author

varsha can u attach the file for me

varshavig12
Specialist
Specialist

Try this.

MK_QSL
MVP
MVP

Don't use any dimension..

use two expressions I have suggested

go to Style tab and select stacked..

manoranjan_d
Specialist
Specialist
Author

so we should use stacked bar right in style ?