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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
daanp
Helper I
Helper I

How can i extract the last numbers (32) of characters from a column and keeping query folding

Hello all,

 

I'm trying to extract the last 32 chars from a column. When i do this, query folding is no longer possible.

 

How can i extract the last 32 chars AND keep query folding? What M code should i use?

 

Best regards,

 

Daan

1 ACCEPTED SOLUTION

Hi @daanp,

 

It will be help if you share sample file/data for troubleshooting and analysis.

 

BTW, if you want to get last 32 characters for column, you can add a custom column with 'Text.End' function.

 #"Added Custom" = Table.AddColumn(#"PreviousSteps", "Last32", each Text.End([ColumnName],32))

13.PNG

 

Regarads,
Xiaoxin sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
Abduvali
Skilled Sharer
Skilled Sharer

Hi @daanp,

 

 

Have you tried the following:

 

  • Column 2 = LEFT(Sheet1[Item_name],2) or Column 2 = RIGHT(Sheet1[Item_name],2) 
  • In your case number would be 32

 

Regards

Abduvali

Right or Left isn't a valid M statement. 

 

 

Hi @daanp,

 

It will be help if you share sample file/data for troubleshooting and analysis.

 

BTW, if you want to get last 32 characters for column, you can add a custom column with 'Text.End' function.

 #"Added Custom" = Table.AddColumn(#"PreviousSteps", "Last32", each Text.End([ColumnName],32))

13.PNG

 

Regarads,
Xiaoxin sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.