How to Handle "null" Values in Visualizations in Kibana 8?

Hi everyone,

I’m facing an issue in Kibana 8 related to how fields with no data are handled in visualizations (e.g., Enhanced Table).

In Kibana 7, when a field had no data, it would return 0 if the field was set to number format. This allowed me to apply CSS conditions like if value == 0 in computed styles, ensuring the field wouldn’t display anything.

However, in Kibana 8, the same fields seems to return null when there’s no data. This behavior is problematic because:

  1. I can’t handle null values using the same conditions I used before.
  2. While if value <= 0 works, using if value == 0 or if value < 0 does not produce the expected result. And I get confused about that!

I want to understand:

  1. How does Kibana 8 handle fields with no data differently than Kibana 7?
  2. What is the correct approach to control or format these null values in visualizations?
  3. Is there a way to conditionally handle this without having to rewrite every CSS or computation rule?

Any help or suggestions on how to solve this would be greatly appreciated. Thank you!

Hi

Just to be clear, do you have a generic kibana issue, or do you have a specific issue with the specific Enhanced Table plugin? By which I mean the 3rd party plugin:

?

Maybe also share some (simple) sample docs that might illustrate the issue