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: 
aslam24196
Creator
Creator

How to include a single quote (') within a String?

Hey,

So suppose I wanted to have this Set Expression where I want to Calculate the Sales in the country, Cote D'Ivorie

I used

Sum ( { $< Country = { 'Cote D'Ivore'} >} Sales).


But the problem is The String ends after it reads the ( ' ) after the D in the country name.


What is the workaround for this?

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

You can read more about what Rob has suggested here

Escape sequences

View solution in original post

2 Replies
rwunderlich
MVP
MVP

Code the single quote twice.

Sum ( { $< Country = { 'Cote D''Ivore'} >} Sales)


-Rob

http://masterssummit.com

http://qlikviewcookbook.com

sunny_talwar
MVP
MVP

You can read more about what Rob has suggested here

Escape sequences