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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Jitmondo
Helper III
Helper III

Expression.Error: 1 arguments were passed to a function which expects between 2 and 3. Details:

Hi All 

 

I am getting this error when making a custom column the syntax is accepted and closes, when I look at the column it has errors which reference the error message in the subject above.

Using custom column in PQE, I entered = Table.AddColumn(#"Added Campaign Class", "Custom", each if (not Text.Contains([Name], "Europe") and Text.Contains([Name])=" uk car sale") then " uk car sale" else "no")

 

I want a column that will tell me where the name is not europe but contains uk car sale then label this as uk car sale

 

any ideas on what I am doing wrong here ?

1 ACCEPTED SOLUTION
AntrikshSharma
Super User
Super User

@Jitmondo Text.Contains([Name])=" uk car sale") should be 

Text.Contains ( [Name], "uk car sale" )

 

View solution in original post

2 REPLIES 2
Jitmondo
Helper III
Helper III

Thanks Antriksh this seems to have worked !

AntrikshSharma
Super User
Super User

@Jitmondo Text.Contains([Name])=" uk car sale") should be 

Text.Contains ( [Name], "uk car sale" )

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Kudoed Authors