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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.