Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
aslam24196
Contributor III
Contributor III

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?

1 Solution

Accepted Solutions
sunny_talwar

You can read more about what Rob has suggested here

Escape sequences

View solution in original post

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Code the single quote twice.

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


-Rob

http://masterssummit.com

http://qlikviewcookbook.com

sunny_talwar

You can read more about what Rob has suggested here

Escape sequences