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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
New-Qlik
Creator III
Creator III

Exclude Zero bars

HI ,

I have a requirement to exclude zero bar form a bar chart.

I have two dim and one exprsssion bar chart.

For dim who has no entry wrt to count are also coming in bar chart  just name on axis.

how can I exclude this.

I have tried all supress zero, null etc nothing working

23 Replies
MK_QSL
MVP
MVP

Script

Data:

LOAD

  Dim1,

  Dim2,

  Sales,

  Dual(Dim1 & chr(10) & Dim2, autonumber(Dim1) & Ord(Dim2)) as TempDim1

Inline

[

Dim1, Dim2, Sales

2001,Jan,100

2001,Feb,150

2002,Jan,200

2002,Mar,100

2003,Jan,250

2003,Apr,400

2004,May,150

2004,Jun,350

];

Concatenate

LOAD Distinct

  Dim1,

  'Z1' as Dim2,

  Dual('', AutoNumber(Dim1) & Ord('Z')) as TempDim1,

  '0' as Sales

Resident Data;

Bar Chart

Dimension

=Aggr(TempDim1, Dim1, Dim2)

Tick Suppress When Value is Null

Expression

SUM(Sales)

Anil_Babu_Samineni

Manish Bhai, Why do we need Concatenate Table? Without Table we can achieve, right?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
New-Qlik
Creator III
Creator III
Author

ok I missed something

1. I have three dimen

2. my expression is count(status)

now if I assign '0' as Status it is coming in legend also like status closed, opem and 0

I can exclude it but now sure howz this behaving.

Manish can u share your app the test one only.

Anil_Babu_Samineni

You can use same Manish recommend

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
MK_QSL
MVP
MVP

avneet85

Better you provide your application, along with the output you needed in excel file. We will work on it.

MK_QSL
MVP
MVP

Not a good idea to use three dimensions on x axis. As a rule, when you have 3 dimensions, you should show chart as two dimensions on x axis with stacked chart based on 3rd dimension values and 3 rd dimension as legend.

New-Qlik
Creator III
Creator III
Author

Can u please share Qvw for same

New-Qlik
Creator III
Creator III
Author

ok let me create one same app as replica , will share soon

kamal_sanguri
Specialist
Specialist

I understand your concern although mrkachhiaimp‌ has given a possible solution. Still you can think of changing a chart type.

Use of Block chart instead of Bar will solve your problem.

Capture.PNG

New-Qlik
Creator III
Creator III
Author

Hi Please find attached sample application