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