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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Jay2022
Helper III
Helper III

IF Text Starts With in Power Query

Hi all how do i use the Text.StartsWith in Power Query in this scenario if i had a column saying something like London Region or London Area etc but i just wanted to say if coln starts with london then....

 

What would be the correct formula ?

1 ACCEPTED SOLUTION
Einomi
Helper V
Helper V

Hi,

 

Please try this 

 

if Text.StartsWith([RegionColumn], "London") then "London Group" else "Other"

 

If this workes, please consider accepting as a solution and give kudo 🙂

View solution in original post

2 REPLIES 2
Jay2022
Helper III
Helper III

Excellent, thank you 

Einomi
Helper V
Helper V

Hi,

 

Please try this 

 

if Text.StartsWith([RegionColumn], "London") then "London Group" else "Other"

 

If this workes, please consider accepting as a solution and give kudo 🙂

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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