Skip to Content

How to get domain name from email address in a webi 4.2 report?

I have email addresses like,, etc. I want a variable formula in webi report  that will trim user names and .com and return output as gmail,ymail,hotmail

Like below.But in webi I cant use instr/charindex/substring_index.
select(SUBSTRING_INDEX(SUBSTR(email, INSTR(email,'@')+1),'.',1))as a,count(*)as c
FROMUsergroupby a orderby c desc;
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 22, 2019 at 09:27 AM


    We have to create a below variable = Substr([email]; Pos([email];"@")+1;Length([email]))

    Domainname =Substr([];0;Pos([];".")-1)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.