---
updatedAt: 2026-01-24T01:42:48.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# How do I prevent lost columns?

Log data might have a field with a value (such as `Customer="Acme"`), or a field with no value (such as `Customer=""`), or no field at all. When you need to chart or evaluate that field or column, missing data can be frustrating. To avoid this problem, use [`if_null`](https://docs.observeinc.com/docs/function-if_null#/).

Use [`if_null`](https://docs.observeinc.com/docs/function-if_null#/) to get the value from `Prospect` if there is no value for `Customer`. Note that both values must be the same type.

<OpalCodeBlock
  code={
`make_col organization:if_null(string(Customer), string(Prospect))
`}
/>

Use [`if_null`](https://docs.observeinc.com/docs/function-if_null#/) to set the value to `Unknown` if there is no value for `PrimaryContact`.

<OpalCodeBlock
  code={
`make_col Contact:if_null(string(PrimaryContact), "Unknown")
`}
/>