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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
kapil_arora1
New Member

Not able to add operator in conditional column

Hi, is there any way to add "begins with" in operator section drop down in Conditional column. I am only getting a smaller list of options. Refer screenshot below.

 

kapil_arora1_0-1738217831330.png

Thanks

 

 

3 ACCEPTED SOLUTIONS
bhanu_gautam
Super User
Super User

@kapil_arora1 , You cannot add it directly but you can use mcode for it

 

if Text.StartsWith([YourColumnName], "YourText") then "TrueResult" else "FalseResult"




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

rajendraongole1
Super User
Super User

Hi @kapil_arora1  - Power Query's Conditional Column UI does not provide a "begins with" operator directly.

 

you can create a custom column and use Text.starts logic.

Text.StartsWith - PowerQuery M | Microsoft Learn

 

this works, please check.





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

Proud to be a Super User!





View solution in original post

danextian
Super User
Super User

Hi @kapil_arora1 

 

Begins with is applicable only to text strings. Your Zip column is type number.

danextian_0-1738220527509.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

6 REPLIES 6
danextian
Super User
Super User

Hi @kapil_arora1 

 

Begins with is applicable only to text strings. Your Zip column is type number.

danextian_0-1738220527509.png

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thanks for the quick help.

rajendraongole1
Super User
Super User

Hi @kapil_arora1  - Power Query's Conditional Column UI does not provide a "begins with" operator directly.

 

you can create a custom column and use Text.starts logic.

Text.StartsWith - PowerQuery M | Microsoft Learn

 

this works, please check.





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

Proud to be a Super User!





Thanks Rajendra for the quick help.

bhanu_gautam
Super User
Super User

@kapil_arora1 , You cannot add it directly but you can use mcode for it

 

if Text.StartsWith([YourColumnName], "YourText") then "TrueResult" else "FalseResult"




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thanks Bhanu for the quick help.

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.