Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
aashok
Contributor III
Contributor III

How not to show the zero data in the chart.

Hi ,I have a chart as shown below. I do not want to show the line graph with the 0 % data shown in 2021.

How to change the expression to make it happen. 

This is the current expression for the line graph.

Sum({<[16 Category] = {'Resignation'} >}[16 SB_Avg_Reg_Rate])

 

aashok_0-1664285590485.png

If I use  the expression  in this manner,- if([16 SB_Avg_Reg_Rate]<>0,[16 SB_Avg_Reg_Rate],null()) it is not giving me the correct answer.

Could anyone help?

 

Labels (1)
1 Solution

Accepted Solutions
rubenmarin

Hi, you can go tho chart properties -> add-ons -> remove the check to show zero values.

Or use this expression: If(Sum({<[16 Category] = {'Resignation'} >}[16 SB_Avg_Reg_Rate])<>0, Sum({<[16 Category] = {'Resignation'} >}[16 SB_Avg_Reg_Rate]))

View solution in original post

2 Replies
rubenmarin

Hi, you can go tho chart properties -> add-ons -> remove the check to show zero values.

Or use this expression: If(Sum({<[16 Category] = {'Resignation'} >}[16 SB_Avg_Reg_Rate])<>0, Sum({<[16 Category] = {'Resignation'} >}[16 SB_Avg_Reg_Rate]))

aashok
Contributor III
Contributor III
Author

@rubenmarin  I had tried the 1st option earlier.  It didn't work.not sure why. I have faced this  earlier too.

Anyway, the expression is fine. It works. Thank you.