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
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
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.

Top Solution Authors