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
KevSan
Regular Visitor

Extract sequence of min 8 figures in a text

Hi everybody,

 

I'm trying to extract in powerquery an information of minimum length of 8 figures in a text. 

I don't know how to do that. Could someone please help me? 

Here is an example with the expected result

KevSan_0-1682504797096.png

 

2 ACCEPTED SOLUTIONS
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

https://1drv.ms/u/s!AiUZ0Ws7G26Rh1Ck2Fo9nETCIftF?e=hXieqJ

 

[
  f=   {"a".."z","A".."Z",";","-",",","(",")","/",".","-","_","#","№","@","?",":","!","%","&","$","#","*","+",">","<","""","<<","«","»"},
  to = Text.Combine(List.Select( Splitter.SplitTextByAnyDelimiter(f)([Noh]),(x)=> Text.Length(x)>=8))
 ][to]

 

Screen Capture #950.png

View solution in original post

I corrected it, try again, but it's better if you show me where code can't extract

View solution in original post

4 REPLIES 4
KevSan
Regular Visitor

First, thanks for your answer.

 

Many of my cases are good with your solution but I don't understand it, so can't adjust with some other not right cases.

 

Could you explain me?

show these cases

Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

https://1drv.ms/u/s!AiUZ0Ws7G26Rh1Ck2Fo9nETCIftF?e=hXieqJ

 

[
  f=   {"a".."z","A".."Z",";","-",",","(",")","/",".","-","_","#","№","@","?",":","!","%","&","$","#","*","+",">","<","""","<<","«","»"},
  to = Text.Combine(List.Select( Splitter.SplitTextByAnyDelimiter(f)([Noh]),(x)=> Text.Length(x)>=8))
 ][to]

 

Screen Capture #950.png

I corrected it, try again, but it's better if you show me where code can't extract

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.

Top Solution Authors