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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

If & Len

Can anyone tell what is the issue in this formula?

 

Trying to extract the numbers then after looking at the first digit assign valid or invalid status
using it in custom column in editor
if (Text.Start(Text.Select([StoreCode], {"0".."9"})) ) = 5 then "Valid" else "Not Valid"

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

Text.Start takes 2 parameters.

5 is not a text value.

That's my initial thoughts.

Break it down to get it working, then build it back up

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Tried "5" as well nothing changed.

 

Formula isn't showing any error in syntax but when I apply it says

 

Expression.Error: 1 arguments were passed to a function which expects 2.
Details:
Pattern=
Arguments=[List]

HotChilli
Super User
Super User

Text.Start takes 2 parameters.

5 is not a text value.

That's my initial thoughts.

Break it down to get it working, then build it back up

Anonymous
Not applicable

Yes i was missing the second parameter of count.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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