on 10-22-2019 1:40 AM
I have email addresses like use@gmail.com,user2345@ymail.com,user3@hotmail.com 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;
Hi,
We have to create a below variable
domainwith.com = Substr([email]; Pos([email];"@")+1;Length([email]))
Domainname =Substr([domainwith.com];0;Pos([domainwith.com];".")-1)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.