Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Ramu_i
Creator II
Creator II

Remove the ' s values in dimension values

Hi All,

I have dimension, here data have Vijaya's, Rajesh's, Kamal's.

Here remove the 's in the name dimension.

Out put:

Vijaya

Rajesh,

Kamal

 

Thanks advance.

4 Replies
abhijitnalekar
Specialist II
Specialist II

Hi @Ramu_i ,

You can write expression as below

load *,
left(name,Index(name,'''')-1) as newName ;

Load*

Inline
[ name
Ajay's
vijay's
dk's
asdasdas's

];

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
Ramu_i
Creator II
Creator II
Author

Hi Abhijitnalekar,

I tried but it's not working.

Thanks.

Ram

BrunPierre
Partner - Master II
Partner - Master II

What precisely was the issue with the suggestion from @abhijitnalekar? In any case, try this

Replace(name, '''s', '') as name

Ramu_i
Creator II
Creator II
Author

Hi BrunPierre,

I got a solution.

By  using this formula,   Left(Fieldname, Len(trim(Fieldname))-2)   

 

Thanks ,

Ram