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
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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.