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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Community Champion
Community Champion

@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
Community Champion
Community Champion

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

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

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors