extract domain in beast move

Has any successfull extracted the domain out of an email address using Beast Mode?
Best Answers
-
Hello @MReznick,
Sadly there is not an effective way to accomplish this through a beastmode. However we can accomplish this through a SQL dataflow.
To do this we are going to take advantage of the SQL function SUBSTRING_INDEX().
For example:
Email: [email protected]SUBSTRING_INDEX('[email protected]','@',-1) --> domain.com
If you would like to remove the ".com" we can remove this by adding another SUBSTRING_INDEX() to the query.
SUBSTRING_INDEX(SUBSTRING_INDEX('[email protected]','@',-1),'.',1) ---> domain
Here is a great link to a resource that explains how SUBSTRING_INDEX() works further.
http://www.w3resource.com/mysql/string-functions/mysql-substring_index-function.php
If you have any further questions in regards to this, you can email Domo support at [email protected] A support tech will be able to help answer any additional questions you may have.1 -
Obviously very late but this is how I do it:
RIGHT(`Email Address`,((LENGTH(`Email Address`))-(INSTR(`Email Address`,'@'))))
3
Answers
-
Similar question was posted in the Dojo recently... I posted the following (link) suggestion related to doing it in DataFlow, but the same might work in BeastMode. I have found that MySQL functions will work in Beast Mode even though they are not reflected as part of the Beast Mode function list.
Extract Domain from Email Address
Good luck, please let me know if that works or not.
0 -
No, that locate is not a function in beast mode and I cannot find a similar funtion
0 -
I really don't wat to run my data through a flow just to be able extract the domain in a card.
0
Categories
- 10.6K All Categories
- APAC User Group
- 12 Welcome
- 36 Domo News
- 9.6K Using Domo
- 1.9K Dataflows
- 2.4K Card Building
- 2.2K Ideas Exchange
- 1.2K Connectors
- 337 Workbench
- 250 Domo Best Practices
- 11 Domo Certification
- 460 Domo Developer
- 47 Domo Everywhere
- 100 Apps
- 703 New to Domo
- 83 Dojo
- Domopalooza
- 1.1K 日本支部
- 4 道場-日本支部へようこそ
- 22 お知らせ
- 62 Kowaza
- 295 仲間に相談
- 649 ひらめき共有