cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Need help on creating a calculated column

Hi,

 

I've column with Country names listed as "Hong Kong Geo", Japan Geo", etc. I need help on creating a new column with only country names like "Hong Kong", "Japan" etc.

Any help on this would be appreciated.

2 ACCEPTED SOLUTIONS
Super User IV
Super User IV

@Mahesh_Gupta 

You can do it in Power Query, Under Add Column Tab > Extract and choose Before Delimiter, Leave one space and type Geo in Delimiter, press ok

 

Fowmy_0-1604573609206.png

 

Result

Fowmy_1-1604573669517.png

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

 

 





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

Proud to be a Super User!




View solution in original post

Community Support
Community Support

Hi @Mahesh_Gupta ,

 

You can also create a calculated column like so:

 

Column = LEFT([Country names],LEN([Country names])-4)

 

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

View solution in original post

2 REPLIES 2
Community Support
Community Support

Hi @Mahesh_Gupta ,

 

You can also create a calculated column like so:

 

Column = LEFT([Country names],LEN([Country names])-4)

 

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

View solution in original post

Super User IV
Super User IV

@Mahesh_Gupta 

You can do it in Power Query, Under Add Column Tab > Extract and choose Before Delimiter, Leave one space and type Geo in Delimiter, press ok

 

Fowmy_0-1604573609206.png

 

Result

Fowmy_1-1604573669517.png

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

 

 

 





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

Proud to be a Super User!




View solution in original post

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors