Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using special characters in Calculated Dimension in QLikView

I have a Calculated Dimension in a Pivot Table with some characters which may be interpreted as special characters. I suspect that this is the cause for the 'error in calculated dimension' which i get.

Characters include '/', '.', '&', '(', ')'. Which characters are indeed special characters, and how to make them been considered as normal characters ?

Thanks in advance

13 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Use chr(nnn) for special carachers

Not applicable
Author

thanks. that is to say chr(\), chr(&), etc... ?

Not applicable
Author

Additionally, there is a quote character ' inside a string. How to make it considered as a character in the string ?

thanks in advance

its_anandrjs

Use CHR() function in the calculated dimension

Ex:-

Chr(92) and Chr(38) in the calculated expression


shane_spencer
Specialist
Specialist

Have a look at this example using CHR(39) instead of '

Not applicable
Author

do i simply replace in the string the character by chr(xx) or what is the syntax ?

Thanks for your help

shane_spencer
Specialist
Specialist

Replace the special character such as ' with the corresponding CHR() i.e. CHR(39) is equal to '

its_anandrjs

Use Replace function with the Chr() function and use that Chr value to replace

Not applicable
Author

I cannot open the file in the Personal Edition. Would you accept to reproduce the expression here ?

Thanks