Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to show data that is 0 or null in line chart?

Hi,

I have the following data in Qlikview data model. 

                                                                                                                                

SA Record  NoStudent IDYearSA QuestionMasterIDSA QuestionData
SA 112345A2013TitleThis is a title 1
SA 112345A2013PublicationDetails of title 1
SA 112345A2013Status1
SA 122222B2013TitleTitle 2
SA 122222B2013PublicationNA
SA 122222B2013Status1
SA 133333C2013TitleTitle A
SA 133333C2013PublicationNA
SA 133333C2013Status1
SA 233333C2014TitleTitle B
SA 233333C2014PublicationDetails of Title B
SA 233333C2014Status2

Below is the line chart output.  I need to show zero values for residents who have not attempt any activities.  These are records not found in the table:

sample.jpg

Expression Used: =Aggr(COUNT(DISTINCT SA_Record_No),[Resident Full Name], [Year of Training])

I tried the following in presentation and dimensions tabs:

1) Unchecked Suppress Null values (Dimension Tab)

2) Checked Show All Values (Dimension Tab)

3) Unchecked Suppress Zero Values (Presentation Tab)

4) Checked Zero Bars (Presentation Tab)

Yet it din't show the expected result.  I saw other people in this forum did a count in their scripting.  It works for them as they have only numeric values.  For me I have both text and numeric values.  I tried to do a IsValue but it did not work.

Would like to ask for guidance on these.

There are some solutions below but it wont work in my context:

QlikView Zero Line Fix – Infinity Insight Blog

Chart show zero when no data for date

I put here so others can refer easily too.

Thanks

Chun Wey

6 Replies
amit_saini
Master III
Master III

Hi,

Check if this can help u:

NULL handling in QlikView

Thanks,
AS

tresesco
MVP
MVP

Can you post your sample qvw?

Not applicable
Author

Hi Tresesco,

Attached for your reference.  Please refer to Scholarly Activities Tab.

You can see the issue clearly for John Woo in Year 2014.

Thanks

Chun Wey

amit_saini
Master III
Master III

Hi,

Like this???

Thanks,
AS

Not applicable
Author

Nope, I need the line to go down to 0 at x axis for the student.

Not applicable
Author

Hi All,

Do need advise/ guidance on this.

Thanks

Chun Wey