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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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