How can I get the name of a product from the "Notes" field?
We have a bunch of missing product names, and I want to analyze the notes column and try to get the name from there.
I can create a dataset with all unique product names and start searching in the notes, and if there is a match, populate it in the product column.
Answers
-
The obvious way is to use AI. Review some of the recent forum AI Academy recording for examples.
You could try something like stripping punctuation, [clean notes]:
LOWER(REGEXP_REPLACE(`notes`, '[^a-zA-Z0-9 ]', ''))
and then use a beast mode to scan for keywords
CASE
WHEN `clean_notes` LIKE '%widget pro%' THEN 'Widget Pro'
WHEN `clean_notes` LIKE '%turbo blender%' THEN 'Turbo Blender'
WHEN `clean_notes` LIKE '%micro charger%' THEN 'Micro Charger'
ELSE NULL
ENDI have a process where I reclassify or standardize names. One example in particular is insurance company names. We get so many records with different abbreviations or spellings for an insurance company that I need to reclassify them to a single name. For that I do something like this:
WHEN `insurance_company` in ('name1','Name1','name_1') THEN 'Name - 1'
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
I like ArborRose's regex for cleaning the notes, but then the second part seems too manual, especially if you have a large number of company names.
If you have a list of clean names, you could join with an expression to see if those clean names are like the clean notes.
WHEN clean_notes LIKE concat('%', clean_names, '%') then clean_names
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 663 Datasets
- 119 SQL DataFlows
- 2.3K Magic ETL
- 823 Beast Mode
- Visualize
- 2.6K Charting
- 86 App Studio
- 46 Variables
- Automate
- 193 Apps
- 483 APIs & Domo Developer
- 86 Workflows
- 23 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 117 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 143 Governance & Security
- 11 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive