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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
romellm
New Member

Extract word/text string from a cell

Hi,

Im using power query to transform the security logs I have taken from a domain controller to create a report.

Im interested in getting the value of the account name - as shown in the screengrab.

I have tried using custom columns and different kinds of text filters but it always return an error...

I may have missed testing some other functions as I have just started exploring powerbi... would greatly appreciate your help.

 

romellm_0-1667369598321.png

 

1 REPLY 1
BA_Pete
Super User
Super User

Hi @romellm ,

 

If the values in [Column6] always have the same entries, you can use Text.BetweenDelimiters.

Add a new new custom column something like this:

Text.BetweenDelimiters([Column6], "Account Name:", "Account Domain:")

 

This should give you your account name in a new column, which you can then Trim/Clean to remove spaces/tabs/CR/LF etc.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.