Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
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
Partner - Master

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