Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
mohammadkhatimi
Partner - Specialist
Partner - Specialist

Trim the right and keep the Characters of Left

Hi,

I want to trim from right side Month and Year and keep the all the words except month and year in a new field.

Plan for the Month Apr-2015

New field= Plan for the Month

MonthYear= Apr-2015.

Regards,

Mohammad

1 Solution

Accepted Solutions
robert_mika
Master III
Master III

LEFT('Plan for the Month Apr-2015',LEN('Plan for the Month Apr-2015')-9)

and for month year use Peter suggestion

View solution in original post

3 Replies
prieper
Master II
Master II

Have you tried ordinary string-functions already?

RIGHT(YourFieldName, 😎     AS MonthYear

HTH Peter

robert_mika
Master III
Master III

LEFT('Plan for the Month Apr-2015',LEN('Plan for the Month Apr-2015')-9)

and for month year use Peter suggestion

mohammadkhatimi
Partner - Specialist
Partner - Specialist
Author

Thank You...........Robert...........