Syntax for null
Hi all,
I am trying to create a formula in ETL that deals with the null values in multiple columns. So far, no matter what kind of formula I use, I am unable to get the blanks filled in
Here is what I am trying right now based off of all of the other posts I have read
Again, nothing is turning up XYX like I would expect. I am still getting blanks in the data when I run this dataflow.
**I have tried = null, is blank, else 'xyx' and nothing is filling in.
Any thoughts or suggestions?
If this helps, feel free to agree, accept or awesome it!
Comments
-
It sounds like your data might actually not be null but an empty string. Try something like this to handle empty strings and strings with just spaces:
WHEN COALESCE(TRIM(`Building Status`), '') = '' THEN 'XYX'
coalesce returns the first non-null value in the parameters supplied. This forces null values to be an empty string.
TRIM strips all whitespace (spaces, newlines) from the start and end of a string. This simplifies the check for string values which are just 1 or more spaces.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**4 -
Beautiful. Thanks for the help.
Really awesome btw.
If this helps, feel free to agree, accept or awesome it!
0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 603 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 697 Beast Mode
- 43 App Studio
- 39 Variables
- 658 Automate
- 170 Apps
- 441 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 388 Distribute
- 111 Domo Everywhere
- 271 Scheduled Reports
- 6 Software Integrations
- 113 Manage
- 110 Governance & Security
- 9 Domo University
- 30 Product Releases
- Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive