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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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