Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Haz
New Member

Email address in string

Hi ,

 

Can someone advise me how can i obtain the email address from this string using Powerbi DAX ?

 

[{"displayName":null,"modifiedProperties":[],"userPrincipalName":"murray.mclaren@abc.com","id":"ecf6f9a6-1bca-4733-a9a6-623071a5c416"}]

 

 

1 REPLY 1
PattemManohar
Community Champion
Community Champion

@Haz Please try this.. I've intentionally made it into different steps so that it will be easy to debug and for understanding as well.

 

Email = 
VAR _Search1 = SEARCH("userPrincipalName",Test53StrExtraction[Data])
VAR _SearchVal1 = MID(Test53StrExtraction[Data],_Search1,LEN(Test53StrExtraction[Data]))
VAR _Search2 = SEARCH(":",_SearchVal1)
VAR _SearchVal2 = MID(_SearchVal1,_Search2+2,LEN(_SearchVal1))
VAR _Search3 = SEARCH(",",_SearchVal2)
RETURN MID(_SearchVal2,1,_Search3-2)

image.png

 

I suggest to transform all these kind of data in Power Query rather in DAX.





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.