Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I show "zero bars" on a Bar chart?

I have a bar chart with one calculated dimension:

I wrote this formula so I would only see data for the past 7 days including the current day (nulls are suppressed):

=if(ChangeOpenDate<=today() and (ChangeOpenDate>=today()-6), Date(ChangeOpenDate, 'MM/DD')&' '&Weekday(ChangeOpenDate), null())

and the following expression:

Count({$<[Change Success Rating]={'Failed','Activation Issue'}, [Change Environment Description]={'Production'}>} Distinct [Change ID])

When there is no data for one of the days being shown, I want that bar to still appear, but with a "0".. I tried a few things such as un-supressing nulls, "show zero bars" etc. but nothing has worked so far..

7 Replies
vinieme12
Champion III
Champion III

Start your scale with -1 !

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
sunny_talwar

Would you be able to share where you have tried this for us to play around with?

beck_bakytbek
Master
Master

Hi Julian,

i think you want to achieve to make visible bar-chart on the base of zero-values,

i think this topic can contribute to solve your issue:

Qlikview Nulls() on a Bar Chart by RFB 185 - YouTube

i hope that helps

beck

antoniotiman
Master III
Master III

Probably, "When there is no data for one of the days" doesn't exixsts ChangeOpenDate,

so You don't have bar.

Not applicable
Author

Here is a sample of one chart.. i dont have data past Jan. 2016 in this example so you'll have to modify the calculated dimension.

anagharao
Creator II
Creator II

Hi ,

Is this what you were after?

tyagishaila
Specialist
Specialist

Expression:

if(ChangeOpenDate,

Count({$<[Change Success Rating]={'Failed','Activation Issue'}, [Change Environment Description]={'Production'}>} Distinct [Change ID]) ,0)

and go to Presentation Tab , click on Zero on Bars