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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
qzqzjcjp
Regular Visitor

How to find a position of the text in a column that starts with a certain value

I would like to find out the position of the row that starts with or contain "DE" from the column or list below. The result should be 1. What function shall I use?  Appreciate it first!

 

Column1
ABC
DEFQF
ESSS
DDDA
1 ACCEPTED SOLUTION
ronrsnfld
Super User
Super User

 

= List.PositionOf(List.Transform(#"Previous Step"[Column1], each Text.StartsWith(_, "DE")),true)

 

or, possibly, depending on your real data and requirements:

= List.PositionOf(List.Transform(#"Previous Step"[Column1], each Text.StartsWith(_, "DE")),true,Occurrence.All)

 

View solution in original post

2 REPLIES 2
ronrsnfld
Super User
Super User

 

= List.PositionOf(List.Transform(#"Previous Step"[Column1], each Text.StartsWith(_, "DE")),true)

 

or, possibly, depending on your real data and requirements:

= List.PositionOf(List.Transform(#"Previous Step"[Column1], each Text.StartsWith(_, "DE")),true,Occurrence.All)

 

Amazing! Thank you ronrsnfld!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.