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

How to remove the last "n" strings

Hi,

 

I wanted remove last two characters from the string 'demo"}' ie, i want to remove " and }

 

I tried using the below code but its not working

 

LEFT([column],,(LEN([column])-2)) and its not working .. can anyone help me please on this pls

2 ACCEPTED SOLUTIONS

errir.PNG

 

It is definitely a column and not a measure? Do you get an error or blank?

View solution in original post

It works , the error was because i had some null values in my column
Thanks a lot @gooranga1 for your help ..

View solution in original post

5 REPLIES 5
gooranga1
Power Participant
Power Participant

try left([column],(LEN([column])-2)) with 1 comma.

There is actually one comma .. still. not working

errir.PNG

 

It is definitely a column and not a measure? Do you get an error or blank?

It works , the error was because i had some null values in my column
Thanks a lot @gooranga1 for your help ..

@sharvan029,

Glad to hear the issue is solved, you can accept appropriate reply as answer to close this  thread.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the 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.