Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Community!
I am struggling with an issue that seems to be very straight forward.
I want to only keep the domain of an e-mail address. As I do not have access to the source, I need it to be a dax measure.
This is what I want to achieve:
John.Doe@powerbi.com -> powerbi
JaneDoe@computer.com -> computer
Please note that some e-mail addresses have following format (in case it might be relevant):
John.Doe@us.powerbi.com -> us.powerbi
Thank you in advance!
Solved! Go to Solution.
Hi @Anonymous ,
You can create a measure as below to get it:
Domain name =
VAR _selemail =
SELECTEDVALUE ( 'Table'[e-mail addresses] )
VAR _aposition =
SEARCH ( "@", _selemail, 1, 0 )
VAR _composition =
SEARCH ( ".com", _selemail, 1, 0 )
RETURN
MID ( _selemail, _aposition + 1, _composition - _aposition - 1 )
Best Regards
Hi Amitchandak!
Thank you for your reply - I've tried this but unfortunately it does not work as I get this message:
Therefore, I was thinking of a dax measure...
Hi @Anonymous ,
You can create a measure as below to get it:
Domain name =
VAR _selemail =
SELECTEDVALUE ( 'Table'[e-mail addresses] )
VAR _aposition =
SEARCH ( "@", _selemail, 1, 0 )
VAR _composition =
SEARCH ( ".com", _selemail, 1, 0 )
RETURN
MID ( _selemail, _aposition + 1, _composition - _aposition - 1 )
Best Regards
Thank you! This worked. 🙂
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |