Beast Mode Calculation for Specific Email Domain

MichaelClark Wichita Falls, Texas ⚪️

I have a column called Owned by Email and I want to create a calculated field that displays "Yes" if the email address is @mydomain. Two part question, would that be accomplished better with a dataflow or would a Beast Mode shared on the dataset work as well?  To clarify, there are half a million rows of data in the dataset.


Thanks in advance


Best Answers

  • MarkSnodgrass
    MarkSnodgrass Portland, Oregon 🟤
    Accepted Answer

    You could do this pretty easily in a beast mode with like this:

    CASE WHEN `emailaddress` LIKE '%@mydomain%' THEN 'Yes'
    ELSE 'No' 

    If you have Magic ETL 2.0, then you can use the formula tile and include this in there and that would work well. If you think you might need to edit this formula often, making it a beast mode might make more sense as people find that more accessible. 

  • GrantSmith
    GrantSmith Indiana 🔴
    Accepted Answer

    As a minor tweak I'd recommend not including the wildcard at the end as it might cause incorrect matching. For example if your domain was "" it would also capture "".


    CASE WHEN `emailaddress` LIKE '%@mydomain' THEN 'Yes'
    ELSE 'No'