Any way to filter a column by data type?
I am working with a data set that has multiple contributors. Unfortunately many of them enter data their own way.
Specifically, I am looking at Diabetic A1C data. One person might enter it is as 5.765, another 5.76%, yet another 5.764444E3, and then another would enter something as 93 MG/L.
Is there any formula or DOMO tool that I can use to only accept the decimal version of this data? Or, can I tell DOMO to convert bad data into nulls so I can get rid of them? It's annoying that when someone enters data wrong, it can no longer be read as a number.
Answers
-
In Magic ETL you can write a REGEX expression to strip out everything that's not a number or number-related,
REGEXP_REPLACE(
your value
,'[^0-9,.]','')however an additional problem is that 5.76% would get turned into 5.76 which is a totally different number. So I think your idea to turn bad data to nulls is safer. You can do this with an Alter columns tool, cast the data to a decimal and click the gear to add the option to convert bad values to NULL
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
- 102 SQL DataFlows
- 627 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive