Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
QFanatic
Creator
Creator

Apostrophe in Field Name value

hi all,

I am creating a Calculated Dimension with a field. However, the field contents contains an 's at the back (see code below)

Obviously Qlik doesnt like it....how do I code it, for it to be acceptable as a field name?

My code is..

if(CostName = '[House API's & VSP]',Value) as [House API's & VSP]...

Much appreciated.

 

 

Labels (2)
1 Solution

Accepted Solutions
eddie_wagt
Partner - Creator III
Partner - Creator III

Hello  @QFanatic 

Use this:

if(CostName = 'House API'&chr(39)&'s & VSP',Value) as [House API's & VSP]

If you face many descriptions/values where there are characters like apostrophe, you could consider to replace these characters.

Regards Eddie

View solution in original post

2 Replies
eddie_wagt
Partner - Creator III
Partner - Creator III

Hello  @QFanatic 

Use this:

if(CostName = 'House API'&chr(39)&'s & VSP',Value) as [House API's & VSP]

If you face many descriptions/values where there are characters like apostrophe, you could consider to replace these characters.

Regards Eddie

MayilVahanan

HI @QFanatic 

Try like below

if(CostName = 'House API''s & VSP',Value) as [House API's & VSP].

double single quotes will help ..

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.