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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
saharadi
Contributor II
Contributor II

Add Option to Exclude NULLs in Measures for Bar Chart Objects

Description:
In the Bar Chart object, Qlik Sense currently provides the ability to exclude NULL values in dimensions using the "Include NULL values" checkbox. However, there is no equivalent option for measures.

I would like to request a feature that allows users to easily exclude rows where the measure is NULL, similar to how it's done for dimensions. This would be especially helpful when working with calculated measures that may return NULL based on business logic, and where the goal is to only visualize valid (non-null) results.

Use Case:
When a measure returns NULL (e.g., due to division by zero, missing data, or conditional logic), the bar chart still reserves space for that bar, resulting in an empty gap. This can be misleading or visually unappealing in dashboards. An option to automatically hide or ignore such bars (just like with NULLs in dimensions) would improve both clarity and usability.

1 Solution

Accepted Solutions
stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @saharadi 

In most cases you can do this by going to the Add-Ons option and desleect Include Zero Values:

stevedark_0-1754463568546.png

Another way to do it is to exclude the values in the expression using set analysis, so in the simplest example to avoid zeros in an expression result you could have:

sum({<Value*={"<>0"}>}Value)

This will remove all values which are null or zero when doing the calculation. If no values exist for a dimension then that dimension won't show on the chart. However, if the value nets out to zero (so some positive and some negative values) then it would still give a zero result.

Hope that helps.

Steve

View solution in original post

1 Reply
stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @saharadi 

In most cases you can do this by going to the Add-Ons option and desleect Include Zero Values:

stevedark_0-1754463568546.png

Another way to do it is to exclude the values in the expression using set analysis, so in the simplest example to avoid zeros in an expression result you could have:

sum({<Value*={"<>0"}>}Value)

This will remove all values which are null or zero when doing the calculation. If no values exist for a dimension then that dimension won't show on the chart. However, if the value nets out to zero (so some positive and some negative values) then it would still give a zero result.

Hope that helps.

Steve