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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.