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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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?

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