Writing a Case Statement select another field value if primary field value is blank
So I am trying to write a Case statement to select a different field to pull a value when the primary field has a blank value… Something like:
CASE Parent Carrier ID
WHEN 'null' THEN Carrier Name
ELSE Parent Carrier Name
END
I don't know what to enter as a valid term for ‘null’ to represent looking for empty values?
0
Answers
-
Figured it out:
CASE IFNULL(
Parent Carrier ID
, 'null')
WHEN 'null' THENCarrier Name
ELSEParent Carrier Name
END0
Categories
- All Categories
- 1.9K Product Ideas
- 1.9K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 310 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3K Transform
- 113 SQL DataFlows
- 650 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 791 Beast Mode
- 78 App Studio
- 43 Variables
- 753 Automate
- 187 Apps
- 478 APIs & Domo Developer
- 71 Workflows
- 17 DomoAI
- 40 Predict
- 17 Jupyter Workspaces
- 23 R & Python Tiles
- 407 Distribute
- 118 Domo Everywhere
- 279 Scheduled Reports
- 10 Software Integrations
- 141 Manage
- 137 Governance & Security
- 8 Domo Community Gallery
- 47 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 113 Community Announcements
- 4.8K Archive