case when something then blank
How would I write a case if I have a field 'link agency id' to the following, if the the link agency ID = BKR display blank or empty cell else display whateve the link agency id is
CASE
when `Link Agency ID` = 'BKR' then ''
else `Link Agency ID`
END
Best Answers
-
Just in case 'BKR' is something link ' BKR ' or ' BKR' or 'BKR ', try using:
CASE
when `Link Agency ID` LIKE '%BKR%' then ''
else `Link Agency ID`
END0 -
Definitely odd. Perhaps there are phantom characters?
Try this:
CASE
when `Link Agency ID` LIKE '%BKR%' then ''
else `Link Agency ID`
ENDOtherwise, I might try that beast mode on a clean card, make sure there isnt' a weird browser issue.
2
Answers
-
Here you go:
CASE WHEN `Link Agency ID` <> 'BKR'
THEN `Link Agency ID`
ENDBy omitting the ELSE, anything that doesn't match (not equal to BKR, so BKR) will get assigned a NULL value.
Let me know if that wasn't what you were looking for.
Sincerely,Valiant
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.0 -
that didn't seem to work, so what I'm looking for is if link agency id = BKR then show a blank value, else show whatever link agency id is
thanks
0 -
Hi,
Try This -
CASE
when `Link Agency ID` LIKE 'BKR' then ''
else `Link Agency ID`END
Thanks!
0 -
that didn't work either
0 -
What card type are you using?
Can you provide more detail around the error/result you are seeing?
0 -
just a table card....attached is what is showing when I have
CASE
when `Link Agency ID` LIKE 'BKR' then ''
else `Link Agency ID`
END0 -
Just in case 'BKR' is something link ' BKR ' or ' BKR' or 'BKR ', try using:
CASE
when `Link Agency ID` LIKE '%BKR%' then ''
else `Link Agency ID`
END0 -
Definitely odd. Perhaps there are phantom characters?
Try this:
CASE
when `Link Agency ID` LIKE '%BKR%' then ''
else `Link Agency ID`
ENDOtherwise, I might try that beast mode on a clean card, make sure there isnt' a weird browser issue.
2 -
thanks that worked
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 101 SQL DataFlows
- 622 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 748 Beast Mode
- 59 App Studio
- 41 Variables
- 686 Automate
- 176 Apps
- 453 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 396 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 125 Manage
- 122 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 109 Community Announcements
- 4.8K Archive