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
Sue_Sue
New Member

functions names are not recognized

Hi. I've just started using PowerBI and am trying to create a Custom Column based on the value in another column. 

The problem is that my functions names "are not recognized". See the example I tried in the formula bar that looks like this:

= Table.AddColumn(#"Removed Columns", "Name.1", each text.middle("hello world",6,5))

Even this creates an error "Expression.Error: The name 'text.contains' wasn't recognized. Make sure it's spelled correctly.". 

Is it something wrong with my settings in PowerBI Desctop?

1 ACCEPTED SOLUTION
Dinesh_Suranga
Continued Contributor
Continued Contributor

@Sue_Sue 

Hi,

M codes in power query are case sensitive.

Normaly first letter should be a capital letter.

ex. 'text.contains' is wrong it should be 'Text.Contains' 

Thank you.

View solution in original post

2 REPLIES 2
Dinesh_Suranga
Continued Contributor
Continued Contributor

@Sue_Sue 

Hi,

M codes in power query are case sensitive.

Normaly first letter should be a capital letter.

ex. 'text.contains' is wrong it should be 'Text.Contains' 

Thank you.

Thanks so much. A simple solution after 2 hours of struggle 😂

 

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.