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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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 ..
Anonymous
Not applicable

@sharvan029,

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

Regards,
Lydia

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors