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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
nokia447
Frequent Visitor

Create column in Table view based on another column's Text

I have tried to use the following formula to have only the text before the period (.) into another column. But I can't get it to work:

Values in [Host] column is like:  de.webiste.com or fr.website.com. So I would like to have a new Column with only "DE" or "FR"

 

NewColumn = LEFT(Append1[host], FIND(".", Append1[host]) - 1)

 

Anyone that can figure out why it is not working?

Error message says: The search Text provided to function 'FIND' could not be found in the given text.

 

 

1 REPLY 1
HotChilli
Super User
Super User

It looks alright from here but we don't have the real data just what's been shown.

--

Start with following the error.  Create a new column with this part:

FIND(".", Append1[host])  

Does it work or not? If you get the same error, investigate why the "." is not being recognised.  It might be something unusual like a special character (use the UNICODE function to try and identify this) 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.